Re: [Discuss] apache server

2014-12-10 Thread John Hall
For all your htm / html files and links to them. chmod 644 or chmod 664 ​Do not set the execute permissions bit for htm, html or image files. It's not the right permission for these file types and there could be an access restriction directive some place that blocks access to content files with

Re: [Discuss] apache server

2014-12-10 Thread Edward Ned Harvey (blu)
From: discuss-bounces+blu=nedharvey@blu.org [mailto:discuss- bounces+blu=nedharvey@blu.org] On Behalf Of dan moylan Become root. Although you could do this with sudo, it's more of a pain. You must ensure the auditd service is installed and started. yum -y install auditd

Re: [Discuss] apache server

2014-12-10 Thread Greg Rundlett (freephile)
To be more clear, Apache WON'T serve content out of home directories. It doesn't matter if FollowSymlinks is on. You can move the content to /var/somewhere and symlink to it - ensuring that FollowSymlinks is on. (E.g. ln -s /var/somewhere /var/www/html/foo) and http://localhost/foo will display

Re: [Discuss] apache server

2014-12-10 Thread dan moylan
well, browsing the web somewhere (and i forget where), it was suggested that i touch /.autorelabel and reboot. i did that and now all is well. thank you all for your suggestions. now, all i need to do is get my cgi scripts working again. life is hard. ole dan j. daniel moylan 84 harvard ave

[Discuss] apache server

2014-12-09 Thread dan moylan
running fc 20 on acer aspire one. apache (httpd) running: /etc/httpd/conf/httpd.conf # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations.

Re: [Discuss] apache server

2014-12-09 Thread Derek Martin
On Tue, Dec 09, 2014 at 04:45:21PM -0500, dan moylan wrote: /var/www/off-lnk.htm (linked to /home/moylan/www/lnk/off.htm -- same file) produces the following: Forbidden You don't have permission to access off-lnk.htm on this server. Most likely explanation is that your home directory, or a

Re: [Discuss] apache server

2014-12-09 Thread Greg Rundlett (freephile)
Apache also has a module (mod_userdir) and related directives for serving content from user home directories. See http://httpd.apache.org/docs/current/howto/public_html.html If you remove the symbolic link 'moylan' and specify (in httpd.conf, or conf.d/mysite.conf) UserDir www Then sudo a2enmod

Re: [Discuss] apache server

2014-12-09 Thread John Abreau
/root is probably chmod'ed 700, so group apache cannot follow the link. Everything in the path /home/moylan/www/link probably has at least the executable bit set in the third digit of its chmod settings, so apache can locate the /home/moylan/www/link/off.htm file, but apache doesn't have

Re: [Discuss] apache server

2014-12-09 Thread Edward Ned Harvey (blu)
From: discuss-bounces+blu=nedharvey@blu.org [mailto:discuss- bounces+blu=nedharvey@blu.org] On Behalf Of dan moylan Forbidden You don't have permission to access off-lnk.htm on this server. Also check selinux. Become root. Although you could do this with sudo, it's more of a pain.

Re: [Discuss] apache server

2014-12-09 Thread Matthew Gillen
It's easier to just turn on the appropriate boolean: (as root): setsebool -P httpd_enable_homedirs on On 12/9/2014 5:51 PM, Edward Ned Harvey (blu) wrote: From: discuss-bounces+blu=nedharvey@blu.org [mailto:discuss- bounces+blu=nedharvey@blu.org] On Behalf Of dan moylan Forbidden

Re: [Discuss] apache server

2014-12-09 Thread Richard Pieri
On 12/9/2014 4:45 PM, dan moylan wrote: what am i missing? An excerpt from your Apache error log that would indicate the reason for the behavior that you are seeing. Plenty of excellent suggestions have been made for correcting various possible problems but you should check the logs so that

Re: [Discuss] apache server

2014-12-09 Thread Edward Ned Harvey (blu)
From: discuss-bounces+blu=nedharvey@blu.org [mailto:discuss- bounces+blu=nedharvey@blu.org] On Behalf Of Matthew Gillen It's easier to just turn on the appropriate boolean: (as root): setsebool -P httpd_enable_homedirs on Don't take medicine until you know what you're treating - If

Re: [Discuss] apache server

2014-12-09 Thread dan moylan
derek martin writes: Most likely explanation is that your home directory, or a path component in it, is not readable by the user as which the server runs. moylan ~[1045] ls -ld /home/moylan drwxr-xr-x. 79 moylan moylan 4096 141209:1347 /home/moylan/ moylan ~[1046] ls -ld /home/moylan/www