View previous topic :: View next topic |
Author |
Message |
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1630 Location: U.S.A.
|
Posted: Wed Jul 04, 2007 12:48 pm Post subject: Apache, eaccelerator problem, still not working [solved] |
|
|
Note: had to shorten the title so could put solve on there.
Just noticed that Apache2 stopped working before I went on vacation. I use it to just run Gallery for family members. Now can't access it from anywhere thru Apache. I am ssh'd over there right now and still can't find anything wrong.
I was getting this error: (then for a bit didn't, then get it again now, but still hasn't worked even when don't get it)
Code: | (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs |
Sometimes it even says it started it and nothing, that happens rarely, but still can't connect to the webserver.
What I have done, not in any order persay. Can't find the problem.
1) Checked /etc/apache2/httpd.conf and nothing else is listening on port 80
2) Can't access Gallery or default Apache page from elsewhere or on Lan.
3) Can ssh over there, so know network is working.
4) Results of Grep in /etc/apache2 turned up nothing else listening.
5) Results of:
Code: | netstat -plant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 4413/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 11420/apache2
tcp 0 0 0.0.0.0:5140 0.0.0.0:* LISTEN 4298/syslog-ng
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 14423/sshd
tcp 0 0 192.168.1.101:22 192.168.1.100:55560 ESTABLISHED 31798/0
tcp 0 0 192.168.1.101:22 192.168.1.100:46514 ESTABLISHED 950/1
tcp 436 0 192.168.1.101:80 192.168.1.1:48767 ESTABLISHED -
|
6) Found this in the error log an apparently caused the above problems:
Code: | PHP Warning: [eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.2.1-pl3-gentoo. Rebuild it for your PHP version (5.2.2-pl1-gentoo) or download precompiled binaries.\n in Unknown on line 0
PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0 |
Unmerged eaccelerator. Apache is starting fine now and looks correct in the logs. Still can't access the webserver from the Lan.
Not sure what the issue is now. Any ideas? Post some more info?
Thanks _________________ Support bacteria – they’re the only culture some people have.”
– Steven Wright
Last edited by Decibels on Fri Jul 06, 2007 10:37 pm; edited 1 time in total |
|
Back to top |
|
|
Mad Merlin Veteran
Joined: 09 May 2005 Posts: 1155
|
Posted: Thu Jul 05, 2007 4:38 am Post subject: |
|
|
As the logs said, you need to recompile eaccelerator whenever you change/update versions of PHP. In the mean time, you've got some lingering apache processes holding on to port 80, so new ones can't listen on it. Kill the lingering Apache processes:
make sure they're all gone:
Code: | ps aux | grep apache2 |
then try to start Apache again. _________________ Game! - Where the stick is mightier than the sword! |
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1630 Location: U.S.A.
|
Posted: Thu Jul 05, 2007 2:24 pm Post subject: |
|
|
I had been doing that. Thanks for the reply though!
Ended up having to recompile php again. Now everything is working. _________________ Support bacteria – they’re the only culture some people have.”
– Steven Wright |
|
Back to top |
|
|
|
|
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
|
|