eaccelerator with php

Chad

New member
Joined
Nov 27, 2005
Messages
4
I am getting this error when restarting httpd

Failed loading /eaccelerator-0.9.4-rc1/modules/eaccelerator.so: /eaccelerator-0.9.4-rc1/modules/eaccelerator.so: cannot open shared object file: No such file or directory

The newly updated install steps (successful otherwise)

cd
mkdir /ea/
cd /ea
wget http://internap.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4-rc1.tar.bz2
tar -jxf eaccelerator-0.9.4-rc1.tar.bz2
cd eaccelerator*
export PHP_PREFIX="/usr"
$PHP_PREFIX/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
make
make install
nano /usr/local/Zend/etc/php.ini

zend_extension="/ea/eaccelerator-0.9.4-rc1/modules/eaccelerator.so"
eaccelerator.shm_size="32"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
service httpd restart


I confirmed through locate that eaccelerator.so is in fact located at /ea/eaccelerator-0.9.4-rc1/modules/eaccelerator.so so why is it giving me this strange error?

root@server [~/eaccelerator-0.9.4-rc1/modules]# locate eaccelerator.so
/usr/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so
/usr/lib/php/eaccelerator/eaccelerator.so
/root/eaccelerator-0.9.4-rc1/modules/eaccelerator.so
/root/eaccelerator-0.9.4-rc1/.libs/eaccelerator.so


I even tried changing the first line to /usr/lib/php/eaccelerator/eaccelerator.so but still gave the same error on httpd configtest
 
The directories aren't matching up.

You installed and confirmed eacceleator as:
/ea/eaccelerator-0.9.4-rc1/modules/eaccelerator.so
But apache is looking for this:
/eaccelerator-0.9.4-rc1/modules/eaccelerator.so
 
Ok but I corrected that

then I still get

root@server [~/eaccelerator-0.9.4-rc1]# service httpd restart
/etc/init.d/httpd restart: httpd restarted

root@server [~/eaccelerator-0.9.4-rc1]# httpd configtest
Failed loading /eaccelerator-0.9.4-rc1/modules/eaccelerator.so: /eaccelerator-0.9.4-rc1/modules/eaccelerator.so: cannot open shared object file: No such file or directory
Syntax OK

The path now installed is in fact

/eaccelerator-0.9.4-rc1/modules/eaccelerator.so

The first line in php.in is also

zend_extension="/eaccelerator-0.9.4-rc1/modules/eaccelerator.so"
 
Thanks for your response. Here is an update of my issue with EA, fixed the phpsize path, now this.

httpd configtest shows no error, syntax ok even though httpd fails

The newly updated install steps (successful otherwise)

cd
mkdir /ea/
cd /ea
wget http://internap.dl.sourceforge.net/...9.4-rc1.tar.bz2
tar -jxf eaccelerator-0.9.4-rc1.tar.bz2
cd eaccelerator*
export PHP_PREFIX="/usr"
$PHP_PREFIX/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
make
make install
nano /usr/local/Zend/etc/php.ini

[eAccelerator]
zend_extension="/usr/lib/php/eaccelerator/eaccelerator.so"
eaccelerator.shm_size="2048"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys="shm_and_disk"
eaccelerator.sessions="shm_and_disk"
eaccelerator.content="shm_and_disk"

mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
service httpd restart

What could have caused it to not restart? The path seems right.

root@server [~]# locate eaccelerator.so
/usr/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so
/usr/lib/php/eaccelerator/eaccelerator.so

These are the only errors I see other than the common "file does not exist" which is normal, in apache error logs

[Tue Nov 29 00:11:30 2005] [notice] SIGHUP received. Attempting to restart
[Tue Nov 29 00:13:11 2005] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Nov 29 00:13:12 2005] [notice] Apache configured -- resuming normal operations
[Tue Nov 29 00:13:12 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Tue Nov 29 00:13:12 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)


[Tue Nov 29 05:12:19 2005] [error] mod_ssl: SSL handshake interrupted by system [Hint: Stop button pressed in browser?!] (System error follows)
[Tue Nov 29 05:12:19 2005] [error] System: Connection reset by peer (errno: 104)


Are any of these two possible causes? Other than these two, I don't know what else could cause EA to cause httpd to fail.

Desperate for help please
 
Back
Top