View previous topic :: View next topic |
Author |
Message |
thejadeer n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 May 2004 Posts: 14
|
Posted: Tue Jun 15, 2004 11:46 pm Post subject: apache "not starting properly" |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jknutson n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Apr 2004 Posts: 63
|
Posted: Wed Jun 16, 2004 2:24 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
thejadeer n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 May 2004 Posts: 14
|
Posted: Wed Jun 16, 2004 2:38 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
msimplay Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1766922549414a03eccadee.gif)
Joined: 20 Jun 2004 Posts: 161
|
Posted: Thu Jul 01, 2004 9:48 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|