Install php extension module phpize
One way to install the PHP module is to add relevant parameters to recompile PHP
One is to use phpize, such as eaccelerator and memcache, which is convenient and can be enabled or disabled at any time without re-compiling PHP.
How to Use phpize
This file will be available in the system where PHP is installed. In wdlinux, this file is stored in
/Www/wdlinux/php/bin/phpize
Then enter the source code directory to be compiled, and then run the above phpize to generate the corresponding configuration, and then run the configuration to complete the compilation.
For example
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 is no error, after the execution is complete, the module is installed.
One may need to be configured or set
You can modify the php. ini file, as shown in figure
Vi/www/wdlinux/etc/php. ini