eAccelerator is a PHP accelerator/encoder/caching utility that is based on 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 every time 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 the memory use and server load.
Now, getting into installing this!
1. First, you’ll want to SSH into your server as the root user. you should be in the default directory now. If you’re not, type in cd ~
Now we’ll make the eaccelerator directory:
2. Now we’ll grab the files, and untar them:
Notice that it’s a file, so we need to decompress it twice.
bzip2 -d eaccelerator-0.9.4-rc1.
tar xvf eaccelerator-0.9.4-rc1.tar
3. Now that we’ve done that, let’s install Eaccelerator:
Note: in the following “export” command, you need to point that to where PHP is installed. For most, it’s usually either “usr/” or “usr/local”, but it may be something else.
./configure –enable-eaccelerator=shared –with-php-config=$PHP_PREFIX/bin/php-config
4. It’s basically installed, now we need to edit the files to include Eaccelerator. This is usually found in the /etc/ folder, but if you can’t find it, run a “locate ” (without quotes) to find it. You can use pico or vi, it’s your choice:
For a PHP extension install (most will probably want this)
For a Zend Extension install (only if you have Zend Optimizer installed, or if you’re going to install it
Note that the path maybe different. Paste the path you get after make install. For eg:
Replace the path above to the respective place.
chmod 0777 /tmp/eaccelerator/
5.After installed restart apache to check eaccelerator is installed.
Open up your favorite FTP client and upload the and files to any directory on your website.
Once that’s done, you can go to http://www.your-domain.com/path_to_s…ccelerator.php (of course, replacing that with the path to the script) to see if it’s installed.
Now, we’ll probably want to add a password to prevent some mean user from clearing the cached scripts or causing other bad stuff to happen. Navigate to the eaccelerator_password file and set an administrator name and password.
This doesn’t set the password, but it gives you a line of code to place in your file (just below the eaccelerator part). Once you do this, you need to login to view the eaccelerator page.
Powered by WHMCompleteSolution