Home > Backend Development > PHP Problem > PHP5.5+ APC installation method

PHP5.5+ APC installation method

藏色散人
Release: 2023-03-04 14:18:02
Original
1879 people have browsed it

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.

PHP5.5+ APC installation method

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
Copy after login

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!

Related labels:
apc
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template