eAccelerator downtime

Upgraded my Ubuntu distribution on my server yesterday night and restarted; This morning I was not able to access my site. I realized that I had not recompiled my eAccelerator for the new version of PHP because I did not note that in the 280+ packages that were upgraded, PHP was one of them !!! but the site is live again.
This is what I saw in my apache error logs:

Numerical result out of range: FastCGI:

but my php log was more to the point


[30-Mar-2009 21:52:19] PHP Warning: [eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.2.6-3ubuntu2. Rebuild it for your PHP version (5.2.6-3ubuntu3) or download precompiled binaries.
in Unknown on line 0
[30-Mar-2009 21:52:19] PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0

So I had to compile eAccelerator again.

root:~# cd /usr/local/src/eaccelerator-0.9.5.3/
root:/usr/local/src/eaccelerator-0.9.5.3# make clean
root:/usr/local/src/eaccelerator-0.9.5.3# /usr/bin/phpize
root:/usr/local/src/eaccelerator-0.9.5.3# ./configure -–enable-eaccelerator=shared

Assuming there are no error messages,

root:/usr/local/src/eaccelerator-0.9.5.3# make
root:/usr/local/src/eaccelerator-0.9.5.3# make install

…But my site has already been down for more than 12 hrs now.

Leave a comment

0 Comments.

Leave a Reply


[ Ctrl + Enter ]