On Sun, 2005-05-08 at 20:00 +1200, Andrew Errington wrote:
> 
> /var/www/html is probably owned by root or a special user, or a special 
> group.  Your problem is due to you (or rather the username you are using) 
> not having sufficient permissions.  It is possible, but unlikely, to be 
> disk space.

What about this as a simple solution?

In your home dir create a directory called "mywebdata"

su to root and then:

cd /var/www/html

Now create a link to your home directory

ln -s /home/myusername/mywebdata mywebdata

Now you can happily edit files in your /home/myusername/webdata
directory without having to mess around with permissions and they will
show up at just fine at  http://localhost/mywebdata/

As far as apache is concerned the data is located in /var/www/html/

There may be some security issues as the files will have user and group
of the user, rather than 'root' or 'apache' etc.  

Can someone more knowledgeable please comment on this?




Reply via email to