It looks like you're new here. If you want to get involved, click one of these buttons!
Hello fellows I'm using Debian 7 with PHP 5.4.36-0+deb7u3 (cli) , How I can install Zend OPCache on this version of PHP ?
Thanks !
Linux System Administrator
Install PHP >5.5. No reason not to, and it has opcache bundled.
Ok vld I did install the OPCache following these : Installing PHP-pear sudo apt-get install -y php-pear then dependencies sudo apt-get install -y build-essential php5-dev After I checkout latest version (Now It's 7.0.4) Installing the opcache. sudo pecl install zendopcache-7.0.4 Find extension directory sudo find / -name 'opcache.so' Create config file for php nano /etc/php5/mods-available/opcache.ini' Add these stuff in file: zend_extension=/usr/lib/php5/20100525/opcache.so # File path from above opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1 Create a symlink for load this: sudo ln -s /etc/php5/mods-available/opcache.ini /etc/php5/conf.d/20-opcache.ini
sudo apt-get install -y php-pear
sudo apt-get install -y build-essential php5-dev
sudo pecl install zendopcache-7.0.4
sudo find / -name 'opcache.so'
nano /etc/php5/mods-available/opcache.ini'
zend_extension=/usr/lib/php5/20100525/opcache.so # File path from above opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1
sudo ln -s /etc/php5/mods-available/opcache.ini /etc/php5/conf.d/20-opcache.ini
The end restart the apache or there is any php-fpm you must restart this too.
If you want to avoid to compile it yourself, is available in my repository, section "php".
Repositories: Debian: EU US - Ubuntu: Hiawatha & Others PPA ~ Opensource projects: GitHub
Support my repositories or my projects: Bitcoin 1SteRu8WRPUqUmE1YXZPZ2cQki8CSGK1r
Comments
Install PHP >5.5. No reason not to, and it has opcache bundled.
Ok vld
I did install the OPCache following these :
Installing PHP-pear
sudo apt-get install -y php-pear
then dependencies
sudo apt-get install -y build-essential php5-dev
After I checkout latest version (Now It's 7.0.4) Installing the opcache.
sudo pecl install zendopcache-7.0.4
Find extension directory
sudo find / -name 'opcache.so'
Create config file for php
nano /etc/php5/mods-available/opcache.ini'
Add these stuff in file:
zend_extension=/usr/lib/php5/20100525/opcache.so # File path from above opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1
Create a symlink for load this:
sudo ln -s /etc/php5/mods-available/opcache.ini /etc/php5/conf.d/20-opcache.ini
The end restart the apache or there is any php-fpm you must restart this too.
Linux System Administrator
If you want to avoid to compile it yourself, is available in my repository, section "php".
Repositories: Debian: EU US - Ubuntu: Hiawatha & Others PPA ~ Opensource projects: GitHub
Support my repositories or my projects: Bitcoin 1SteRu8WRPUqUmE1YXZPZ2cQki8CSGK1r