Install the php extension module phpize
One way to install PHP modules is to recompile PHP with relevant parameters
One is to use phpize, such as eaccelerator, memcache, etc. This is more convenient. You don’t need to recompile PHP, and you can enable or disable it at any time
Here’s how to use phpize
This file will be present in any system where PHP is installed. In a wdlinux system, this file will be in
/www/wdlinux/php/bin/phpize
Then go to the corresponding source code directory to be compiled, and then run the above phpize, the corresponding configuration will be generated, run the configuration again, and the compilation will be completed
Such as
tar zxvf eaccelerator-0.9.6.1.tar.bz2
cd eaccelerator-0.9.6.1
/www/wdlinux/php/bin/phpize
./configure --with-php-config=/www/wdlinux/php/bin/php-config
make
make install
As long as there are no errors, after this execution, the module will be installed
There is a configuration or setting that may need to be done
You can modify the php.ini file, such as
vi /www/wdlinux/etc/php.ini