Install eaccelerator centos 6
Read More. Also we can use source code to install it. This article will help you install and configure php eAccelerator using both methods. For initial setup there are no need to make any changes we can simply start using php-eaccelerator. Most of users avoid to use source install and prefer to use package manager.
If PHP eAccelerator is not available in binary package for you distribution, you can use below steps to install it. Create a new file it not exists. Read more about INI settings. Creating Cache Directory We need to create cache directory and set up required permissions.
Restart Web Server To enable new php configuration we need to restart web server. Create php script phpinfo. I do not issue any guarantee that this will work for you! I have tested this on a CentOS 5. Of course, you can use any other vhost as well, but you might have to adjust the path to the info. First, before we install eAccelerator, let's find out about our PHP5 installation. To do this, we create the file info. Unfortunately, there's no eAccelerator package for CentOS 5.
Before we can do this, we need to install some prerequisites:. It might be possible that you need to install the PHP dev tools first yum install php-devel Cent-OS or apt-get install php-dev. Rebuild it for your PHP version 5. Open the php. Warning: permissions are for the lazy ones, you should use a less permitted level if you can.
This is the advice from the eAccelerator website:. A safer and cleaner way would be to change the owner of the directory to the same user PHP runs as most of the time the same user as Apache or Lighttpd and set permissions.
0コメント