You are not logged in.
Hi everybody
Excuse me for my bad english i'm french.
I observe httpd doesn't want to workiing if the daemon network is not launching.
I'll show you this pastebin who explain better me the problem.
http://pastebin.com/m376ffbee
Do you think it is natural ?
Other thing : If i don't have the ethernet cable, network stay down.
How i can do ?
Thank you for your help
Last edited by Paco (2009-04-24 12:03:59)
Offline
< [Sun Apr 12 15:04:41 2009] [notice] caught SIGTERM, shutting down
< [Sun Apr 12 15:04:46 2009] [alert] (EAI 3)Temporary failure in name resolution: mod_unique_id: unable to find IPv4 address of "PC_Paco"
< Configuration Failed
i forgeted give you the httpd error log :S
But i don't know why httpd doesn't found ipv4
Offline
Don't you think it is normal if your HTTP server refuses to start if there is no network connection?
After all - to what use is a HTTP server if it cannot serve?
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Thank you for your reply.
No i think it is normal but network doesn't want lto launch if there is not ethernet cable. But my apache's server is for my personnal website. I want to write web pages without internet.
I don't know if you understand that i said :s
Offline
Don't you think it is normal if your HTTP server refuses to start if there is no network connection?
After all - to what use is a HTTP server if it cannot serve?
Serve a local web-site so the man can do php or whatever the heck he wants to do ?
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
Add the following line to /etc/httpd/conf/httpd.conf in order to configure apache to bind to localhost (127.0.0.1) :
Listen 127.0.0.1:80
Restart the apache service:
/etc/rc.d/httpd restart
Now you should be able to connect to apache via 127.0.0.1
Offline
B wrote:Don't you think it is normal if your HTTP server refuses to start if there is no network connection?
After all - to what use is a HTTP server if it cannot serve?
Serve a local web-site so the man can do php or whatever the heck he wants to do ?
Loopback interface is a network interface too - of course it's been taken out of the network startup scripts for a while now...
I guess it did make sense taking it out.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
httpd doesn't want to restart if network is down.
I can go on my website with localhost, this is not the problem, the problem is : when i don't have a ethernet cable with internet, network is not available, and http doesn't work.
Offline
Could you at least try my advice and see if it works? Thank you.
Offline
i tried ( sorry, i didn't say you that ) but it's not working.
the httpd start fail
Offline
Try to launch it manually - so with the path to the executable, not the daemon startup script - and paste the output.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
this is the message :
httpd: apr_sockaddr_info_get() failed for PC_Paco
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 127.0.0.1:80
no listening sockets available, shutting down
Unable to open logs
He doesn't like the 127.0.0.1
Offline
I guess he does - check if there is already a running instance. That's usually what 'adress already in use' means.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
No i don't have ( i think ) instance of httpd
Look : http://pastebin.com/m3adf446e
Thanks again for your help
Offline
What is the output of netstat?
netstat --tcp -lpn
Offline
[paco@PC_Paco:~]$ netstat --tcp -lpn
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
Offline
Sorry, i forgot to tell you that you should run netstat --tcp -lpn as root user. Please run the same command when logged as root and paste the output.
Offline
< [Sun Apr 12 15:04:41 2009] [notice] caught SIGTERM, shutting down
< [Sun Apr 12 15:04:46 2009] [alert] (EAI 3)Temporary failure in name resolution: mod_unique_id: unable to find IPv4 address of "PC_Paco"
< Configuration Failed
Have you tried commenting that module out in your /etc/httpd/conf/httpd.conf (assuming that's what's causing the problem)?
No i don't have ( i think ) instance of httpd
Look : http://pastebin.com/m3adf446e
Thanks again for your help
There are several httpd processes (/usr/sbin/httpd -k start) running, from what I can see.
Offline
bash-3.2# netstat --tcp -lpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 2873/postgres
Hum it 's not the same thing
foutrelis you think i should kill every processes ?
Offline
Up
Offline
Shot in the dark here, but can you post your /etc/hosts file?
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
Comment out the line 90 in your /etc/httpd/conf/httpd.conf file, looks like this:
LoadModule unique_id_module modules/mod_unique_id.so.
This module checks that your hostname is unique and correctly mates with your IP address. If you're not using a network then commenting this out should be just fine.
Offline
It works
Thank you PinkFloydYoshi
thanks everybody
Offline