Home > Article > Backend Development > PHP5.5+ APC installation method
PHP5.5 APC installation method: First decompress through the command "tar -zxvf apcu-4.0.8"; then enter the directory and execute the "make && make install" command; finally add to "php.ini "That's it.
Recommended: "PHP Video Tutorial"
Due to the PHP language characteristics (short link), sharing cannot be achieved memory to improve performance. The emergence of apc provides a solution. But it is a pity that PHP has officially abandoned this extension after 5.5.
Fortunately, the apcu extension has appeared to provide subsequent functions, and the api has not changed. Therefore, the PHP version can be upgraded smoothly.
Official download address: http://pecl.php.net/package/APCu
Choose the corresponding version according to your own PHP version. Mine is the PHP5.6 version and the stable version 4.0.8. of.
Specific installation:
解压 : tar -zxvf apcu-4.0.8 进入目录后执行: /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --enable-apcu --enable-apcu-debug make && make install
Finally add it to php.ini and it will be OK
The above is the detailed content of PHP5.5+ APC installation method. For more information, please follow other related articles on the PHP Chinese website!