I'm running httpd-2.4.6-31.el7.centos.1.x86_64 under CentOS-7 (kernel 3.10.0-229.14.1.el7.x86_64).
I cannot get the httpd userdir facility working; when I try to access localhost/Menloe I get the message "You don't have permission to access /Menloe on this server."
I see in /var/log/httpd/error_log "Symbolic link not allowed or link target not accessible: /var/www/html/Menloe" while in /var/log/httpd/access_log I see "GET /Menloe HTTP/1.1" 403 208
In /etc/httpd/conf.d/userdir.conf I have UserDir public_html and <Directory "/home/*/public_html"> AllowOverride All Require all granted Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Require method GET POST OPTIONS </Directory>
The directory ~/public_html/Menloe/ is owned by me, and has permissions drwxr-xr-x.
I wonder if anyone has met this problem? Or if anyone is using the apache userdir facility in CentOS 7?
Timothy Murphy wrote:
I'm running httpd-2.4.6-31.el7.centos.1.x86_64 under CentOS-7 (kernel 3.10.0-229.14.1.el7.x86_64).
I cannot get the httpd userdir facility working; when I try to access localhost/Menloe I get the message "You don't have permission to access /Menloe on this server."
Incidentally, httpd -l returns Compiled in modules: core.c mod_so.c http_core.c
But when I add LoadModule userdir_module modules/mod_userdir.so to /etc/httpd/conf/httpd.conf and restart httpd I get the message "AH01574: module userdir_module is already loaded, skipping"
I notice that under Apache 2.2 there were a dozen or more LoadModule commands in httpd.conf but they no longer appear there in Apache 2.4 .
Look in /etc/httpd/conf.d/ for userdir.conf.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Timothy Murphy Sent: Friday, September 25, 2015 1:04 PM To: centos@centos.org Subject: Re: [CentOS] httpd userdir problem
Timothy Murphy wrote:
I'm running httpd-2.4.6-31.el7.centos.1.x86_64 under CentOS-7 (kernel 3.10.0-229.14.1.el7.x86_64).
I cannot get the httpd userdir facility working; when I try to access localhost/Menloe I get the message "You don't have permission to access /Menloe on this server."
Incidentally, httpd -l returns Compiled in modules: core.c mod_so.c http_core.c
But when I add LoadModule userdir_module modules/mod_userdir.so to /etc/httpd/conf/httpd.conf and restart httpd I get the message "AH01574: module userdir_module is already loaded, skipping"
I notice that under Apache 2.2 there were a dozen or more LoadModule commands in httpd.conf but they no longer appear there in Apache 2.4 .
also if selinux is enabled, the boolean httpd_enable_homedirs should be set
On Fri, Sep 25, 2015 at 1:11 PM, Richard Mann rmann@ilsworld.com wrote:
Look in /etc/httpd/conf.d/ for userdir.conf.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Timothy Murphy Sent: Friday, September 25, 2015 1:04 PM To: centos@centos.org Subject: Re: [CentOS] httpd userdir problem
Timothy Murphy wrote:
I'm running httpd-2.4.6-31.el7.centos.1.x86_64 under CentOS-7 (kernel 3.10.0-229.14.1.el7.x86_64).
I cannot get the httpd userdir facility working; when I try to access localhost/Menloe I get the message "You don't have permission to access /Menloe on this server."
Incidentally, httpd -l returns Compiled in modules: core.c mod_so.c http_core.c
But when I add LoadModule userdir_module modules/mod_userdir.so to /etc/httpd/conf/httpd.conf and restart httpd I get the message "AH01574: module userdir_module is already loaded, skipping"
I notice that under Apache 2.2 there were a dozen or more LoadModule commands in httpd.conf but they no longer appear there in Apache 2.4 .
-- Timothy Murphy gayleard /at/ eircom.net School of Mathematics, Trinity College, Dublin
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Tony Schreiner wrote:
also if selinux is enabled, the boolean httpd_enable_homedirs should be set
I have set SELINUX=permissive
I'm running httpd-2.4.6-31.el7.centos.1.x86_64 under CentOS-7 (kernel 3.10.0-229.14.1.el7.x86_64).
I cannot get the httpd userdir facility working; when I try to access localhost/Menloe I get the message "You don't have permission to access /Menloe on this server."
Richard Mann wrote:
Look in /etc/httpd/conf.d/ for userdir.conf.
Here is my userdir.conf ------------------------- <IfModule mod_userdir.c> # # UserDir is disabled by default since it can confirm the presence # of a username on the system (depending on home directory # permissions). # #.# UserDir disabled
# # To enable requests to /~user/ to serve the user's public_html # directory, remove the "UserDir disabled" line above, and uncomment # the following line instead: # UserDir public_html </IfModule>
# # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # <Directory "/home/*/public_html"> #.# AllowOverride FileInfo AuthConfig Limit Indexes AllowOverride All Require all granted Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Require method GET POST OPTIONS </Directory> -------------------------
I'm running httpd-2.4.6-31.el7.centos.1.x86_64 under CentOS-7 (kernel 3.10.0-229.14.1.el7.x86_64).
I cannot get the httpd userdir facility working; when I try to access localhost/Menloe I get the message "You don't have permission to access /Menloe on this server."
On Sep 25, 2015, at 12:33 PM, Timothy Murphy gayleard@eircom.net wrote:
when I try to access localhost/Menloe
In article mu3t01$c2l$1@ger.gmane.org, Timothy Murphy gayleard@eircom.net wrote:
I'm running httpd-2.4.6-31.el7.centos.1.x86_64 under CentOS-7 (kernel 3.10.0-229.14.1.el7.x86_64).
I cannot get the httpd userdir facility working; when I try to access localhost/Menloe I get the message "You don't have permission to access /Menloe on this server."
I see in /var/log/httpd/error_log "Symbolic link not allowed or link target not accessible: /var/www/html/Menloe" while in /var/log/httpd/access_log I see "GET /Menloe HTTP/1.1" 403 208
In /etc/httpd/conf.d/userdir.conf I have UserDir public_html and <Directory "/home/*/public_html"> AllowOverride All Require all granted Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Require method GET POST OPTIONS
</Directory>
The directory ~/public_html/Menloe/ is owned by me, and has permissions drwxr-xr-x.
You need to include your username in the URL, otherwise it doesn't know whose public_html directory to look for. The username must be preceded by a tilde, for example:
http://localhost/~timothy/Menloe
Cheers Tony
Tony Mountifield wrote:
I'm running httpd-2.4.6-31.el7.centos.1.x86_64 under CentOS-7 (kernel 3.10.0-229.14.1.el7.x86_64).
I cannot get the httpd userdir facility working; when I try to access localhost/Menloe I get the message "You don't have permission to access /Menloe on this server."
You need to include your username in the URL, otherwise it doesn't know whose public_html directory to look for. The username must be preceded by a tilde, for example:
Yes, thanks, I discovered that later.