paul at city-fan.org
Fri Jun 16 08:05:37 UTC 2006
On Fri, 2006-06-16 at 08:19 +0200, adel.essafi wrote:
> I have created the public_html directory and done the
> suggested modifications in httpd.conf. I have alors disabled
> the SElinux and the firewall. When trying to access my home
> space I got this :
> You don't have permission to access /~adel/ on this server.
> Apache/2.2.0 (Fedora) Server at 127.0.0.1 Port 80
> I have alghout give the 777 rights to all my files (just to be
> sure the all processes will access to my files).
Please don't do that. It's very insecure. Read permission for files and
read+execute permission for directories will be fine.
In your httpd.conf file, immediately below the UserDir section, is a
commented-out section like this:
You need to uncomment that as well.
There is no need to turn off SELinux protection to do this.
All you should need is:
# restorecon -r /home/*/public_html
# setsebool -P httpd_enable_homedirs 1
More information about the users