-
Install eaccelerator on FC4 with php 5.0.4
Posted on November 12th, 2008 No commentsEaccelerator is a PHP accelerator/encoder/caching utility that is based off of the old mmcache (which is no longer being maintained). What Eaccelerator does is it caches your PHP scripts so that the database is no longer being queried everytime someone needs a script. This is
particularly useful for large forums, but pretty much anyone can benefit from it. Since these scripts are cached, you’ll notice a decrease in memory use and server load.Installation procedure.
Lets get the source file first.
wget http://heanet.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4-rc1.tar.bz2bzip2 -d eaccelerator-0.9.4-rc1.tar.bz2
tar xvf eaccelerator-0.9.4-rc1.tarNote:
1) you need to find where PHP is installed. For most, it’s usually either “/usr/bin” or “/usr/local”, but it may be something else. you can find using which php command.
2) if you are getting phpize: command not found , Then you need to install php-devel.yum install php-devel
cd eaccelerator-0.9.4-rc1/
phpize
./configure –enable-eaccelerator=shared –with-php-config=/usr/bin/php-config
make
make installTake note of where the shared lib was installed (last line of output of the the above command
cp eaccelerator.ini /etc/php.d
Edit the above (copied) file, locate this line:
zend_extension_ts=”/usr/lib/php4/eaccelerator.so”and replace it with ( whatever path you have noted )
zend_extension=”/usr/lib/php/modules/eaccelerator.so”
Now all that’s left is to create a tmp dir for eaccelerator’s cache (/tmp/eaccelerator is the default, but you can change it in the above file), and restart apache.
mkdir /tmp/eaccelerator
chown apache /tmp/eaccelerator
chgrp apache /tmp/eaccelerator
chmod 644 /tmp/eaccelerator
/sbin/service httpd restartTest by knocking up a phpinfo.php page or give php -v command via shell you should note.
PHP 5.0.4 (cli) (built: Nov 8 2005 08:27:12)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator -
Apache failed to start with the error: “PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0″
Posted on July 9th, 2008 No commentsWhen you are trying to start Apache, the following error appears in console output and in apache error log:
Read the rest of this entry »



Recent Comments