
1st June 2007, 18:11
|
|
Junior Member
|
|
Join Date: Dec 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Apache not working on localhost
Hello,
I've noticed in ISPCONFIG that Apache was not working, but all the hosted websites are accesible... Strange.
I've checked apache with "apachectl status" and get following:
Code:
Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://localhost/server-status
I've tried to telnet to port 80 and get an error (port 21, 81, etc have no problem).
Any idea?
|

2nd June 2007, 15:02
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
What's the output of ? Any errors in Apache's error log?
|

4th June 2007, 09:39
|
|
Junior Member
|
|
Join Date: Dec 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
The output of httpd -t is
|

5th June 2007, 19:10
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Ok, any errors in Apache's error log?
What's he output of ?
|

5th June 2007, 19:29
|
|
Junior Member
|
|
Join Date: Dec 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
netstat shows
Code:
tcp 0 0 server1.xxx:www *:* LISTEN 32034/apache
The hostname is server1.xxx.com
I've checked the apache error log, but there aren't errors related with this (just some "File does not exist: /var/www/sharedip/search.php", etc)
I've also checked apache config (httpd.conf), dind't found nothing strange (for example "ServerName localhost")
If it helps Apache is version 1.3.33 using ispconfig 2.2.13.
|

6th June 2007, 17:18
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Quote:
|
tcp 0 0 server1.xxx:www *:* LISTEN 32034/apache
|
Apache is listening on a specific IP address only, not on all IP addresses. ISPConfig probes the Apache on the IP address 127.0.0.1. Because your Apache is not listening on 127.0.0.1, ISPConfig thinks that it's offline.
|

6th June 2007, 17:36
|
|
Junior Member
|
|
Join Date: Dec 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks...
I have corrected the httpd.conf file to:
Code:
Listen xx.xx.xx.xx:80
Listen 127.0.0.1:80
and all is working now!
Would it be better (more secure) to change it to
I have a server with various IP, and have some IP only configured for mail, dns, etc
|

7th June 2007, 15:57
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Both solutions are ok. With the latter Apache will listen on all IP addresses.
|

19th September 2009, 07:10
|
|
Junior Member
|
|
Join Date: Sep 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
to original thread opener:im not hijacking your thread. i just have a similar problem and hate to open a new thread for the same thing.
i have the same problem. im not exactly a noob at linux but i am at linux servers and stuff.
httpd fails to start ive already set it to listen correctly and still nothing
the only way i can get it to start is with
which doesnt give any errors or anything. after that it works percfectly. though i think i shouldnt be running it like that what should i do about it?
|

19th September 2009, 10:59
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
please post the output of:
httpd -t
and
netstat -tap | grep http
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 17:51.
|
|
Recent comments
16 hours 30 min ago
21 hours 35 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 17 hours ago
1 day 18 hours ago
1 day 23 hours ago
2 days 5 hours ago
2 days 6 hours ago
2 days 7 hours ago