Hello everybody,
Any one knows about eAccelerator, What is that and how to Install it In Cpanel and CentOS?
Advance Thanks.
WHAT IS eAccelerator ?
-
- Posts: 5
- Joined: Thu Jan 22, 2015 5:00 pm
Re: WHAT IS eAccelerator ?
eAccelerator is a open-source PHP accelerator & optimizer. It helps increases the performance of PHP scripts by re-using in their compiled state, so that the extra of compiling is approximately completely reduced. It also optimizes scripts to speed up their execution.
eAccelerator naturally decreases server load and increases the speed of PHP code by 1-10 times. It stores compiled PHP scripts in shared memory and executes code directly from it.
How to Install eAccelerator in Cpanel
In cPanel eAccelerator installation is very simple and fast following these two steps:
1. Check PHP runs as DSO Apache module.
For this reason log into cPanel server WHM and go to 'Configure PHP and SuExec'. There confirm that the PHP 5 Handler is set to dso.
2. Next log in as root by ssh and type the following command:
/scripts/phpextensionmgr install EAccelerator
With the above simple and easy steps our PHP performance should be significantly get better with the facilitate of eAccelerator.
How To Install eAccelerator In CentOS
There are 2 methods for install eAccelerator in CentOS
Method 1. PHP eAccelerator can be just installed using yum package manager on CentOS and RHEL systems.
Method 2. Also we can utilize source code to install it.
Method 1. Using yum Package Manager
To install php eAccelerator using yum simply type below command.
# yum install php-eaccelerator
We also need to restart web server to make it working, just type this command.
# service httpd restart
Method 2. Using Source Code
Most of customers keep away from using source install. If PHP eAccelerator is not offered in binary package, we can use below steps to install eAccelerator.
Download and Extract Source Archive
Type following commands to download latest PHP eAccelerator .
# cd /opt
# wget https://codeload.github.com/eaccelerato ... /zip/0.9.6 -O eaccelerator-0.9.6.zip
# unzip eaccelerator-0.9.6.zip
Install PHP eAccelerator
After extracting php eAccelerator type following commands to compile source and install it.
# cd eaccelerator-0.9.6
# phpize
# ./configure
# make
# make install
Creating Cache Directory
We need to create cache directory and set up required permissions.
# mkdir -p /var/cache/php-eaccelerator
# chmod 777 /var/cache/php-eaccelerator
Restart Web Server
To allow new php configuration we need to restart web server.
# service httpd restart
eAccelerator naturally decreases server load and increases the speed of PHP code by 1-10 times. It stores compiled PHP scripts in shared memory and executes code directly from it.
How to Install eAccelerator in Cpanel
In cPanel eAccelerator installation is very simple and fast following these two steps:
1. Check PHP runs as DSO Apache module.
For this reason log into cPanel server WHM and go to 'Configure PHP and SuExec'. There confirm that the PHP 5 Handler is set to dso.
2. Next log in as root by ssh and type the following command:
/scripts/phpextensionmgr install EAccelerator
With the above simple and easy steps our PHP performance should be significantly get better with the facilitate of eAccelerator.
How To Install eAccelerator In CentOS
There are 2 methods for install eAccelerator in CentOS
Method 1. PHP eAccelerator can be just installed using yum package manager on CentOS and RHEL systems.
Method 2. Also we can utilize source code to install it.
Method 1. Using yum Package Manager
To install php eAccelerator using yum simply type below command.
# yum install php-eaccelerator
We also need to restart web server to make it working, just type this command.
# service httpd restart
Method 2. Using Source Code
Most of customers keep away from using source install. If PHP eAccelerator is not offered in binary package, we can use below steps to install eAccelerator.
Download and Extract Source Archive
Type following commands to download latest PHP eAccelerator .
# cd /opt
# wget https://codeload.github.com/eaccelerato ... /zip/0.9.6 -O eaccelerator-0.9.6.zip
# unzip eaccelerator-0.9.6.zip
Install PHP eAccelerator
After extracting php eAccelerator type following commands to compile source and install it.
# cd eaccelerator-0.9.6
# phpize
# ./configure
# make
# make install
Creating Cache Directory
We need to create cache directory and set up required permissions.
# mkdir -p /var/cache/php-eaccelerator
# chmod 777 /var/cache/php-eaccelerator
Restart Web Server
To allow new php configuration we need to restart web server.
# service httpd restart
-
- Posts: 7
- Joined: Thu Jan 22, 2015 3:57 pm
Re: WHAT IS eAccelerator ?
eAccelerator will help speed up websites loading speed, it is important to realize how php scripts are executed and run to power websites.