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 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
memory use and server load.Now, onto 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 tar.bz2 file, so we need to decompress it twice.
bzip2 -d eaccelerator-0.9.4-rc1.tar.bz2
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.
4. It’s basically installed, now we need to edit the php.ini files to
include Eaccelerator. This is usually found in the /etc/ folder, but if
you can’t find it, run a “locate php.ini” (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)
chmod 0777 /tmp/eaccelerator/
5.After installed restart apache to check eaccelerator is installed.
service httpd restart
Open up your favorite FTP client and upload the eaccelerator.php and
eaccelerator_password.php 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
This doesn’t set the password, but it gives you a line of code to place in
your php.ini file (just below the eaccelerator part). Once you do this,
you need to log in to view the eaccelerator page.
cp /ea/eaccelerator-0.9.4-rc1/eaccelerator.php /usr/local/apache/htdocs/
- Optimizing Keywords From Free Directory Submissions - June 15, 2007
- Why do I get an error when I try to send emails? - December 26, 2006
- My IP address is blacklisted. How can it be unlisted? - December 26, 2006