Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache Read Error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
xdamnx
n00b
n00b


Joined: 29 Oct 2002
Posts: 61
Location: Germany

PostPosted: Mon Sep 29, 2003 10:30 am    Post subject: Apache Read Error Reply with quote

Hi,

i got following problem with apache 1.3X after emerging i started the daemon but it gave me following error-msg:

Code:
Mon Sep 29 11:45:57 2003] [alert] apache: Could not determine the server's fully qualified domain name, using 192.168.0.2 for ServerName                 [ ok ]


but in my /etc/hosts it says:
Code:
127.0.0.1       localhost
192.168.0.2     fr0z3nGat3


but anyway i tried to connect to my page with: http://localhost/
all i get is another error:
Code:
Forbidden
You don't have permission to access / on this server.

Apache/1.3.28 Server at 192.168.0.2 Port 80


but all relevant dirs are world readable:
Code:
rwxrwxr-x    5 root     users     120 Aug 29 18:31 httpd
drwxrwxr-x    3 root     users        1160 Sep 29 12:00 htdocs
-rw-r--r--    1 root     root         1700 Sep 29 10:58 index.html.se


my apache.conf says:
Code:
DocumentRoot /home/httpd/htdocs


my apache error logs says:
Code:
[Mon Sep 29 12:01:05 2003] [alert] mod_unique_id: unable to gethostbyname("fr0z3
nGat3")
[Mon Sep 29 12:01:38 2003] [alert] mod_unique_id: unable to gethostbyname("fr0z3
nGat3")
[Mon Sep 29 12:01:52 2003] [alert] mod_unique_id: unable to gethostbyname("fr0z3
nGat3")
[Mon Sep 29 12:02:16 2003] [alert] apache: Could not determine the server's full
y qualified domain name, using 192.168.0.2 for ServerName
[Mon Sep 29 12:02:17 2003] [notice] Apache/1.3.28 (Unix)  (Gentoo/Linux) configu
red -- resuming normal operations
[Mon Sep 29 12:02:17 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin
/suexec)
[Mon Sep 29 12:02:17 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Sep 29 12:02:31 2003] [error] [client 127.0.0.1] client denied by server co
nfiguration: /home/httpd/htdocs


maybe someone got a helpfull tip =)
_________________
..:: xDAMNx ::..
Back to top
View user's profile Send private message
MaDmAsTeR
n00b
n00b


Joined: 31 Jul 2002
Posts: 39
Location: somewhere in Bavaria

PostPosted: Mon Sep 29, 2003 12:12 pm    Post subject: Reply with quote

Hi!

a couple of days ago, i read the same on another forum, also an gentoo Installation.
The only thing that solves the problem is to comment out the line which loads the "mod_unique" module.

The thing with the Fully Qualified Domain Name is, that u have set an ServerName in the conf, that is not located in ur hosts.conf or someone else... try to comment it out, to test it...
Back to top
View user's profile Send private message
xdamnx
n00b
n00b


Joined: 29 Oct 2002
Posts: 61
Location: Germany

PostPosted: Mon Sep 29, 2003 2:27 pm    Post subject: Reply with quote

erm the mod_unique errors aren't there but the hostname failure and file-permissions remain:

Code:
[Mon Sep 29 16:00:59 2003] [alert] apache: Could not determine the server's fully qualified domain name, using 192.168.0.2 for ServerName
[Mon Sep 29 16:00:59 2003] [notice] Apache/1.3.28 (Unix)  (Gentoo/Linux) configured -- resuming normal operations
[Mon Sep 29 16:00:59 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Sep 29 16:00:59 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Sep 29 16:01:11 2003] [error] [client 127.0.0.1] client denied by server configuration: /home/httpd/htdocs

_________________
..:: xDAMNx ::..
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Mon Sep 29, 2003 2:43 pm    Post subject: Reply with quote

I suppose you have a part like this in httpd.conf:

Code:
<Directory /home/httpd/htdocs>
... some stuff here ...
</Directory>


Please paste that snippet here.

And do you have a proper index.html in place? Does the index.html.se get counted as an index file?
_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Back to top
View user's profile Send private message
xdamnx
n00b
n00b


Joined: 29 Oct 2002
Posts: 61
Location: Germany

PostPosted: Mon Sep 29, 2003 3:30 pm    Post subject: Reply with quote

seems my emerge to have fucked up my local folders in commonapache.conf

after altering them apache seem to work but my php won't be rendered. although i got the variables set...
APACHE_OPTS="-D SSL -D PHP4"
_________________
..:: xDAMNx ::..
Back to top
View user's profile Send private message
xdamnx
n00b
n00b


Joined: 29 Oct 2002
Posts: 61
Location: Germany

PostPosted: Mon Sep 29, 2003 3:30 pm    Post subject: Reply with quote

seems my emerge to have fucked up my local folders in commonapache.conf

after altering them apache seem to work but my php won't be rendered. although i got the variables set...
APACHE_OPTS="-D SSL -D PHP4"
_________________
..:: xDAMNx ::..
Back to top
View user's profile Send private message
xdamnx
n00b
n00b


Joined: 29 Oct 2002
Posts: 61
Location: Germany

PostPosted: Mon Sep 29, 2003 3:35 pm    Post subject: Reply with quote

seems my emerge to have fucked up my local folders in commonapache.conf

after altering them apache seem to work but my php won't be rendered. although i got the variables set...
APACHE_OPTS="-D SSL -D PHP4"
_________________
..:: xDAMNx ::..
Back to top
View user's profile Send private message
xdamnx
n00b
n00b


Joined: 29 Oct 2002
Posts: 61
Location: Germany

PostPosted: Mon Sep 29, 2003 3:39 pm    Post subject: Reply with quote

seems my emerge to have fucked up my local folders in commonapache.conf

after altering them apache seem to work but my php won't be rendered. although i got the variables set...
APACHE_OPTS="-D SSL -D PHP4"
_________________
..:: xDAMNx ::..
Back to top
View user's profile Send private message
glory452
n00b
n00b


Joined: 27 Sep 2003
Posts: 27

PostPosted: Mon Sep 29, 2003 4:31 pm    Post subject: Reply with quote

i am having the exact same problem. I had to comment out the mod_unique_id just to get the server to start, however it still gives:
Code:
Forbidden
You don't have permission to access / on this server.

Apache/1.3.28 Server at apark.gotdns.com Port 80


My document root is /home/httpd/htdocs as specified in the apache config file. Any help would be awesome....i'm pulling my hair out here! :)
Back to top
View user's profile Send private message
glory452
n00b
n00b


Joined: 27 Sep 2003
Posts: 27

PostPosted: Mon Sep 29, 2003 4:47 pm    Post subject: Reply with quote

RESOLVED:

Make sure in your config and common config files do not reference the old /var/www/blah blah anymore. I modified all those appropriate lines to /home/httpd/correct.value.here and wala, it worked right away.
Back to top
View user's profile Send private message
glory452
n00b
n00b


Joined: 27 Sep 2003
Posts: 27

PostPosted: Mon Sep 29, 2003 4:48 pm    Post subject: Reply with quote

RESOLVED:

Make sure in your config and common config files do not reference the old /var/www/blah blah anymore. I modified all those appropriate lines to /home/httpd/correct.value.here and wala, it worked right away.
Back to top
View user's profile Send private message
xdamnx
n00b
n00b


Joined: 29 Oct 2002
Posts: 61
Location: Germany

PostPosted: Mon Sep 29, 2003 5:47 pm    Post subject: Reply with quote

glory: thx =) this made my apache working =)

but there still remains my php problem...
it won't render my php files....

if i re-emerge mod_php and do the ebuild command:

Code:
# ebuild /var/db/pkg/dev-php/mod_php-4.3.2-r4/mod_php-4.3.2-r4.ebuild config
 * Due to some previous bloopers with PHP and slotting, you may have
 * multiple copies of mod_php installed. Please look at the autoclean
 * output at the end of the emerge and unmerge all but relevant
 * copies.

_________________
..:: xDAMNx ::..
Back to top
View user's profile Send private message
xdamnx
n00b
n00b


Joined: 29 Oct 2002
Posts: 61
Location: Germany

PostPosted: Mon Sep 29, 2003 5:49 pm    Post subject: Reply with quote

glory: thx =) this made my apache working =)

but there still remains my php problem...
it won't render my php files....

if i re-emerge mod_php and do the ebuild command:

Code:
# ebuild /var/db/pkg/dev-php/mod_php-4.3.2-r4/mod_php-4.3.2-r4.ebuild config
 * Due to some previous bloopers with PHP and slotting, you may have
 * multiple copies of mod_php installed. Please look at the autoclean
 * output at the end of the emerge and unmerge all but relevant
 * copies.

_________________
..:: xDAMNx ::..
Back to top
View user's profile Send private message
glory452
n00b
n00b


Joined: 27 Sep 2003
Posts: 27

PostPosted: Mon Sep 29, 2003 6:35 pm    Post subject: Reply with quote

have you tried doing an
Code:
emerge unmerge mod_php

before you re-install it?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum