Skip to content


Apache2 troubleshooting – PHP + eAccelerator – Ubuntu Server

Problem:
You start apache after an update and your sites do not work, even though apache states it has restarted successfully.

Solution:
To determine the nature of this problem, we want to start by looking at the apache2 error log

On Ubuntu server do the following:

tail -f /var/log/apache2/error_log

If you notice this error:

 
PHP Fatal error:  Unable to start eAccelerator module in Unknown on line
PHP Warning:  [eAccelerator] This build of "eAccelerator" was compiled foersion 5.2.6-2ubuntu4.2. Rebuild it for your PHP version (5.2.6-2ubuntu4.ownload precompiled binaries.\n in Unknown on line 0

You need to reconfigure eAccelerator or Apache will not run, even though starting apache will not give you a failure notice.

Visit: http://www.eaccelerator.net/ to download the latest version of eAccelerator.

 
cd /tmp
wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2
tar xvfj eaccelerator-0.9.5.3.tar.bz2
cd eaccelerator-0.9.5.3
phpize
./configure
make
make install

Restart apache

 
/etc/init.d/apache2 restart

All should once again be right with the world.

Posted in Linux.

One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Troubleshooter said

    Thank you for sharing this information!
    Happy Holidays!

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.