What’s eAccelerator and How To Set up It?

eAccelerator is a free, open-source PHP accelerator and optimiser that may assist velocity up PHP code execution on internet servers. It’s designed to cache and optimize PHP scripts, decreasing the time it takes for the server to course of them. On this publish, we’ll cowl what eAccelerator is and provides step-by-step directions on the best way to set up it on an internet server.

What’s eAccelerator?

eAccelerator is a PHP accelerator that improves the efficiency of PHP functions by caching the compiled PHP code in reminiscence. When PHP scripts are requested, eAccelerator checks if the code is already in reminiscence, and whether it is, serves it instantly from reminiscence. This course of eliminates the necessity to recompile the code every time a request is made, which may considerably enhance the efficiency of PHP functions.

Along with caching PHP code, eAccelerator additionally optimises PHP scripts by eradicating pointless code. This reduces the scale of the code and optimises it for quicker execution. eAccelerator also can compress the cached information to scale back the quantity of reminiscence it takes up. eAccelerator is appropriate with many common PHP functions and frameworks, together with WordPress, Magento, Joomla, Drupal and extra.

Tips on how to Set up eAccelerator

Earlier than putting in eAccelerator, make sure that your server meets the next necessities:

  • It’s working PHP 5.2 or later

  • The next instruments are put in: GCC compiler, GNU Make and Phpize

To put in eAccelerator in your server, comply with these steps:

Step 1: Obtain eAccelerator

You’ll be able to obtain the most recent model of eAccelerator from the official web site:   https://github.com/eaccelerator/eaccelerator

As soon as downloaded, extract the information to a short lived listing in your server.

Step 2: Compile eAccelerator

Navigate to the listing the place you extracted eAccelerator and run the next instructions:




make set up

These instructions will then compile eAccelerator with the PHP set up in your server.

Step 3: Configure eAccelerator

The subsequent step is to create a brand new configuration file for eAccelerator within the conf.d listing of your PHP set up. For instance, if you’re utilizing PHP 7.4, create a brand new file known as eaccelerator.ini within the /and so on/php/7.4/conf.d/ listing.

After you have created the eaccelerator.ini configuration file, add the next traces of code to it:














Including these traces will allow eAccelerator, set the cache listing to /tmp/eaccelerator, and allow the optimisation and compression of cached information. You’ll be able to regulate these settings as wanted.

Step 4: Restart PHP and Apache

To use the modifications made to the configuration file, you have to to restart PHP and Apache. You are able to do this with the next instructions:

sudo systemctl restart php7.4-fpm

sudo systemctl restart apache2

Be aware: if you’re not utilizing PHP-FPM, change php7.4-fpm with the title of the PHP module you might be utilizing.

Upon restart of PHP and Apache, eAccelerator ought to now be working.

How hosting impacts the efficiency of PHP functions

Whereas eAccelerator can enhance the efficiency of PHP functions, the kind of hosting resolution you employ also can have a major impression on the velocity at which your web site and different functions carry out.

All PHP functions require an internet server with sufficient storage, CPU and RAM sources to course of all their requests. During times of excessive site visitors or, within the case of shared internet hosting, when different web sites on the server are busy, the efficiency of functions will be negatively affected. Equally, PHP functions working on outdated {hardware} can nonetheless run slowly, even when instruments like eAccelerator are put in.

To make sure your PHP functions have the degrees of efficiency they want, you could want to think about upgrading to a distinct kind of internet hosting resolution, for instance, shifting from shared internet hosting to VPS or from VPS to a devoted server or the cloud. On the similar time, make sure that the {hardware} on which your PHP functions run affords the velocity and reliability you want. Search for Intel Xeon processors and superfast SSD drives that may ship excessive efficiency.


eAccelerator is a robust PHP accelerator that may considerably enhance the efficiency of PHP functions. It really works by caching and optimizing PHP code to scale back the time it takes to course of requests. Hopefully, after studying this publish, you’ll perceive what eAccelerator is, the way it works and the steps you could take to put in it. As well as, you must also perceive the significance of your internet hosting resolution and what modifications you could have to make to make sure excessive efficiency. Should you require high-performance internet hosting primarily based on the most recent {hardware} expertise, go to our homepage to find our managed VPS, devoted server and cloud options.