Apache2 running but not?
Hello, I have a problem with apache. I recently installed Mandrake 9.2 and there is no localhost.localdomain or only localhost... Before, I had Mandrake 9.0 and it worked ok. If I understand good - Mandrake 9.2 uses apache2.
With apache2, I installed mysql and php if that makes any changes... apachectl status Code:
Apache is running. Code:
Looking up localhost After Googling didn't find anything. Someone said how to check if apache is running: netstat -ant|grep :80|grep LISTEN That printed out what is supposed to be ok for apache running Code:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN apachectl configtest Code:
Checking configuration sanity for Apache 2.0: [ OK ] Code:
VirtualHost configuration: "default server omega-fleet.homelinux.org (/etc/httpd/conf/httpd.conf:1219) " and "port 80 namevhost omega-fleet.homelinux.org (/etc/httpd/conf/httpd.conf:1219)" ps aux (relevant:) Code:
root 3462 0.0 0.9 4988 2216 ? S 15:49 0:00 httpd2 Code:
telnet: connect to address 127.0.0.1: Connection timed out Relja Arandjelovic P.S. Sorry for the long post |
Can you post the apache2 config-file here?
|
Thanks for the answer.
Well, it's huge if I've got the right file (/etc/httpd/conf/httpd2.conf) Code:
### Main Configuration Section |
###
### IP Address/Port and Proxied configuration section ### # The APACHEPROXIED setting can be set in /etc/rc.d/init.d/httpd if you # are using a proxy or accelerator, like the Apache-SGI or khttpd, so that # the fast web server serves static content while Apache handles the # cgi or php files #BindAddress * <IfDefine APACHEPROXIED> Listen 8080 </IfDefine> <IfDefine !APACHEPROXIED> Listen 80 </IfDefine> This is not good. Replace all of this with ### ### IP Address/Port and Proxied configuration section ### # The APACHEPROXIED setting can be set in /etc/rc.d/init.d/httpd if you # are using a proxy or accelerator, like the Apache-SGI or khttpd, so that # the fast web server serves static content while Apache handles the # cgi or php files #BindAddress * #<IfDefine APACHEPROXIED> # Listen 8080 #</IfDefine> #<IfDefine !APACHEPROXIED> # Listen 80 #</IfDefine> Listen 80 |
Tried, restarted apache - nothing changed
|
Since Apache seems OK, I wonder if the problem is at a lower level with the networking. If you haven't, it might be worth double-checking by running these at the command-line:
ping -a localhost ping 127.0.0.1 If either fail then the issue is the network config. of the system. If both IP and DNS name both work you could try temporarily disabling the firewall to see if that is interfering with access. |
WORKING!! ping said "connect: Network is unreachable", disabling firewall didn't work. But in Mandrake Control Center->Network & Internet when I set DNS Server to 127.0.0.1 (before it wasn't set, value was ...2) and continued, it installed some new stuff and now it's working!
Onlt whn connecting to mysql server, I had to change localhost.localdomain->localhost and everything is fine. Thanks everyone! |
All times are GMT -5. The time now is 02:32 AM. |