Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache "not starting properly"
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
thejadeer
n00b
n00b


Joined: 26 May 2004
Posts: 14

PostPosted: Tue Jun 15, 2004 11:46 pm    Post subject: apache "not starting properly" Reply with quote

ok, so i installed apache2 without a problem at all and then i ran
Code:
/etc/init.d/apache2 start
and it at first gives an error stating that
Code:
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName   
and then i go into /etc/apache2/conf/apache2.conf and uncoment the "servername localhost" line and then when i run /etc/init.d/apache2 start it seems to start and only says starting apache2 but then i cannot connect to localhost i get a connection refused. i was thinking that ther server might not be started and when i do /etc/init.d/apache2 stop i get a "apache2 was not started" error so i am wondering how to get it to start properly
Back to top
View user's profile Send private message
jknutson
n00b
n00b


Joined: 30 Apr 2004
Posts: 63

PostPosted: Wed Jun 16, 2004 2:24 am    Post subject: Reply with quote

Try editing your /etc/hosts file. Add a line with the machine's IP and it's hostname (or domain name if you have one), and I think that will do the trick.
Back to top
View user's profile Send private message
thejadeer
n00b
n00b


Joined: 26 May 2004
Posts: 14

PostPosted: Wed Jun 16, 2004 2:38 am    Post subject: Reply with quote

ok, well i added the machines ip and its hostname to /etc/hosts and that did not fix the problem, i added the local lan ip "192.168.1.103" and the hostname, but that did not fix the problem

i also changed "servername localhost" to "servername gateway" gateway is my hostname and that also did not fix the problem,

i was wondering if i should use the public ip for that computer but the thing is ime going to be using a dyndns.org domainnaim because i have a dynamic ip and i think if i would be to put the public ip in /etc/hosts than i would half to be changing it manually all the time
Back to top
View user's profile Send private message
msimplay
Apprentice
Apprentice


Joined: 20 Jun 2004
Posts: 161

PostPosted: Thu Jul 01, 2004 9:48 am    Post subject: Reply with quote

jknutson wrote:
Try editing your /etc/hosts file. Add a line with the machine's IP and it's hostname (or domain name if you have one), and I think that will do the trick.


thank you that worked i used the default name they supplied in the gentoo install tutorial
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