我正在尝试使用ubuntu 16.04中的php 7.1加载apcu,我已完成以下步骤:
sudo apt-get install software-properties-common python-software-properties
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -s php-apcu
sudo bash -c "echo extension=apcu.so > /opt/plesk/php/7.1/etc/php.d/apcu.ini"
sudo bash -c "echo extension=apc.so > /opt/plesk/php/7.1/etc/php.d/z_apc.ini"
sudo service apache2 restart
安装成功但是没有加载phpinfo,任何人都可以帮忙吗?
答案 0 :(得分:3)
只需在Plesk服务器上安装plesk-php71-devel
,make
,gcc
即可。然后运行:
/opt/plesk/php/7.1/bin/pecl install apcu
echo "extension=apcu.so" > /opt/plesk/php/7.1/etc/php.d/apcu.ini
plesk bin php_handler --reread
您将看到加载的acpu模块:
/opt/plesk/php/7.1/bin/php -m | grep apcu