Re: Permissions for apache directory

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

 



Jon Jahren wrote:
Hi.
I've set up a webserver at home now, which works fine, however, I've set
documentroot to /var/www/htdocs, and this is not writeable by my regular
user, and I would like to know what's the most elegant approach for
making html writable to a regular user? I could do chown -R
<user> /var/www/htdocs, but I don't want to put my system at risk, and
using /home/<user>/public_html gives me "permission denied" when trying
to access it via a browser.

This may be an SELinux issue. Make sure you have UserDir enabled in httpd.conf, then do:

# setsebool -P httpd_enable_homedirs 1
# chcon -R -t httpd_sys_content_t ~user/public_html

(see "man httpd_selinux" for details)

Paul.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux