Mates,
I feel like an idiot not being able to serve pages from apache in Suse
10 from the users public_html directories. Each time I try I get the 403
forbidden access error message. The permissions on the directories and
contents are all 755. The actual error in /var/log/apache2/error_log is:
[Mon Apr 17 20:55:27 2006] [error] [client 192.168.6.97] (13)Permission
denied: access to /~david/test.html denied
[Mon Apr 17 20:55:48 2006] [error] [client 192.168.6.97] (13)Permission
denied: access to /~david/test.php denied
/etc/sysconfig/apache2 includes userdir
APACHE_MODULES="access actions alias auth autoindex cgi dir include
log_config mime negotiation setenvif status userdir asis imap php4"
I added the following line to default-server.conf
Include /etc/apache2/mod_userdir.conf
The mod_userdir.conf file is present and contains:
nemesis:/etc/apache2 # cat mod_userdir.conf | grep -v '#'
<IfModule mod_userdir.c>
UserDir disabled root
On Monday 17 April 2006 22:12, David Rankin wrote:
Mates,
I feel like an idiot not being able to serve pages from apache in Suse 10 from the users public_html directories.
Your only real mistake is not checking the archives. Check out this thread: http://marc.theaimsgroup.com/?l=suse-linux-e&m=114477100506167&w=2 Hint: Here are the last ten lines from my /etc/apache2/default-server.conf: Include /etc/apache2/conf.d/*.conf # The manual... if it is installed ('?' means it won't complain) Include /etc/apache2/conf.d/apache2-manual?conf ServerName linux ServerAdmin root@linux UserDir public_html Include /etc/apache2/mod_userdir.conf regards, Carl
From: "Carl Hartung"
On Monday 17 April 2006 22:12, David Rankin wrote: Mates,
I feel like an idiot not being able to serve pages from apache in Suse 10 from the users public_html directories.
Your only real mistake is not checking the archives.
Check out this thread:
http://marc.theaimsgroup.com/?l=suse-linux-e&m=114477100506167&w=2
Hint: Here are the last ten lines from my /etc/apache2/default-server.conf:
UserDir public_html Include /etc/apache2/mod_userdir.conf
Thank's Carl, I have tried all of that and still no joy. I can't think of what else it could be. My default-server.conf is now the same as yours and my mod_userdir.conf is the unmodified version that was installed by default with 10.0. Any other ideas of what to check? -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 www.rankinlawfirm.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.3/316 - Release Date: 4/17/06
On Tuesday 18 April 2006 00:12, David Rankin wrote:
Thank's Carl, I have tried all of that and still no joy. I can't think of what else it could be. My default-server.conf is now the same as yours and my mod_userdir.conf is the unmodified version that was installed by default with 10.0. Any other ideas of what to check?
Hi David,
Does the <Directory> section in moduser_dir.conf look like this?:
# the UserDir directive is actually used inside the virtual hosts, to
# have more control
#UserDir public_html
From: "Carl Hartung"
On Tuesday 18 April 2006 00:12, David Rankin wrote: Thank's Carl, I have tried all of that and still no joy. I can't
think
of what else it could be. My default-server.conf is now the same as yours and my mod_userdir.conf is the unmodified version that was installed by default with 10.0. Any other ideas of what to check?
Hi David,
Does the <Directory> section in moduser_dir.conf look like this?:
# the UserDir directive is actually used inside the virtual hosts, to # have more control #UserDir public_html
AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit>
<LimitExcept GET POST OPTIONS PROPFIND> Order deny,allow Deny from all </LimitExcept>
</Directory>
Yes, all except your +Includes. I don't see how that could make any
difference, but I'll try anything now. Is there any setting I could check
with phpinfo()? Here is my mod_userdir.conf directory statement.
On Tuesday 18 April 2006 00:44, Carl Hartung wrote: <snip> Ooops! You already posted it (gettin' late here) You have run rcapache2 restart after changing the config files, right? Carl
From: "Carl Hartung"
On Tuesday 18 April 2006 00:44, Carl Hartung wrote: <snip> Ooops! You already posted it (gettin' late here)
You have run rcapache2 restart after changing the config files, right?
Yes, every time. (I'd shoot myself if I hadn't). I'm at a loss. It seems like I must be missing something incredibly simple, but I can't identify it to save my life. I've check throught /etc/sysconfig/apache2, I've read through the output of phpinfo(), I've been through /etc/apache2/httpd.conf and /etc/apache2/httpd.conf.local. I've been through /etc/apache2/mod_userdir.conf and /etc/apache2/default-server.conf. I've check permissions, etc.. If you can think of anything else to check, let me know. The funny thing is my SuSE 9.0 (apache 1.3) box that sits next to the 10.0 box works just fine. I've been through those configs as well and I still can't make heads or tails of it. Go figure? Thanks again...... -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 www.rankinlawfirm.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.3/316 - Release Date: 4/17/06
On Tuesday 18 April 2006 07:22, David Rankin wrote:
From: "Carl Hartung"
On Tuesday 18 April 2006 00:44, Carl Hartung wrote: <snip> Ooops! You already posted it (gettin' late here)
You have run rcapache2 restart after changing the config files, right?
Yes, every time. (I'd shoot myself if I hadn't). I'm at a loss. It seems like I must be missing something incredibly simple, but I can't identify it to save my life. I've check throught /etc/sysconfig/apache2, I've read through the output of phpinfo(), I've been through /etc/apache2/httpd.conf and /etc/apache2/httpd.conf.local. I've been through /etc/apache2/mod_userdir.conf and /etc/apache2/default-server.conf. I've check permissions, etc..
If you can think of anything else to check, let me know. The funny thing is my SuSE 9.0 (apache 1.3) box that sits next to the 10.0 box works just fine. I've been through those configs as well and I still can't make heads or tails of it. Go figure?
There must be a 'userdir' in the APACHE_MODULES variable in /etc/sysconfig/apache2. If that is missing, add it there (and do 'SuSEconfig; rcapache2 restart' afterward). Cheers, Leen
From: "Leendert Meyer"
On Tuesday 18 April 2006 07:22, David Rankin wrote: From: "Carl Hartung"
On Tuesday 18 April 2006 00:44, Carl Hartung wrote: <snip> Ooops! You already posted it (gettin' late here)
You have run rcapache2 restart after changing the config files, right?
Yes, every time. (I'd shoot myself if I hadn't). I'm at a loss. It seems like I must be missing something incredibly simple, but I can't identify it to save my life. I've check throught /etc/sysconfig/apache2, I've read through the output of phpinfo(), I've been through /etc/apache2/httpd.conf and /etc/apache2/httpd.conf.local. I've been through /etc/apache2/mod_userdir.conf and /etc/apache2/default-server.conf. I've check permissions, etc..
If you can think of anything else to check, let me know. The funny thing is my SuSE 9.0 (apache 1.3) box that sits next to the 10.0 box works just fine. I've been through those configs as well and I still can't make heads or tails of it. Go figure?
There must be a 'userdir' in the APACHE_MODULES variable in /etc/sysconfig/apache2. If that is missing, add it there (and do 'SuSEconfig; rcapache2 restart' afterward).
For all I share my stupidity, The problem was the permission set on /home/david. They were 700. All permission under david were fine (755). But since the default ownership was david:users, in order to prevent read access by anyone but me, I had set the top level permissions to 700. I have reset them to 755 and all is well. Thanks for everyone's help -- David C. Rankin, J.D., P.E. RANKIN LAW FIRM, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankinlawfirm.com --
participants (4)
-
Carl Hartung
-
david rankin
-
David Rankin
-
Leendert Meyer