[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache-Perl cant create directories...sort of



On Tue, May 20, 2003 at 08:20:55PM +0200, Juan Antonio Agudo wrote:
> Rob Weir wrote:
> >On Mon, May 19, 2003 at 07:43:12PM +0200, Juan Antonio Agudo wrote:
> >>"An error occurred:
> >>mkdir /www: Permission denied at 
> >/www?  As in in /?
> 
> Oh boy...you were right! Thanks a lot for that one.
> I was about to loose faith in LAMP, but now I'm just loosing faith
> about my Linux skills ;)

Also, you'll note that /var/www/ is, by default, owned by root.root, and
drwxr-xr-x.  This means that no one aside from root, especially Apache
itself (it runs as www-data.www-data), can write to that directory.
This is so that your web site contents cannot be modified if you get
cracked...you'll need to change this, too, if you want your web server
to be able to write to it.

-- 
Rob Weir <rweir@ertius.org>  |   mlspam@ertius.org   |   http://www.ertius.org/
GPG keys: 1024D/1E73B7CD, 4096R/3ABDE5EC     |      Do I look like I want a CC?
Words of the day:     Qaddafi JSOFC3IP UOP 2600 Magazine mailbomb STARLAN ASLET

Attachment: pgphbJ_MBEwOu.pgp
Description: PGP signature


Reply to: