September 29, 2023


Learn Business From Experience

What’s eAccelerator and How To Set up It?

4 min read

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, lowering the time it takes for the server to course of them. On this put up, we’ll cowl what eAccelerator is and provides step-by-step directions on learn how to set up it on an online 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 immediately 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 dimensions of the code and optimises it for quicker execution. eAccelerator also can compress the cached knowledge to scale back the quantity of reminiscence it takes up. eAccelerator is appropriate with many widespread PHP functions and frameworks, together with WordPress, Magento, Joomla, Drupal and extra.

How one can Set up eAccelerator

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

  • It’s operating PHP 5.2 or later

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

To put in eAccelerator in your server, observe these steps:

Step 1: Obtain eAccelerator

You may obtain the most recent model of eAccelerator from the official web site:

As soon as downloaded, extract the information to a brief 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, in case you are utilizing PHP 7.4, create a brand new file referred to as eaccelerator.ini within the /and many others/php/7.4/conf.d/ listing.

Upon getting created the eaccelerator.ini configuration file, add the next strains of code to it:













Including these strains will allow eAccelerator, set the cache listing to /tmp/eaccelerator, and allow the optimisation and compression of cached knowledge. You may regulate these settings as wanted.

Step 4: Restart PHP and Apache

To use the adjustments 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

Notice: in case you are not utilizing PHP-FPM, change php7.4-fpm with the identify of the PHP module you might be utilizing.

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

How website hosting impacts the efficiency of PHP functions

Whereas eAccelerator can increase the efficiency of PHP functions, the kind of website hosting answer you utilize also can have a major influence on the velocity at which your web site and different functions carry out.

All PHP functions require an online 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 may be negatively affected. Equally, PHP functions operating 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, chances are you’ll want to think about upgrading to a unique kind of internet hosting answer, for instance, shifting from shared internet hosting to VPS or from VPS to a devoted server or the cloud. On the identical 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 put up, you’ll perceive what eAccelerator is, the way it works and the steps you might want to take to put in it. As well as, you also needs to perceive the significance of your internet hosting answer and what adjustments chances are you’ll have to make to make sure excessive efficiency. Should you require high-performance internet hosting based mostly on the most recent {hardware} know-how, go to our homepage to find our managed VPS, devoted server and cloud options.

Copyright © All rights reserved. | Newsphere by AF themes.