Install APCu (PHP 8.1, Plesk)

Install APCu

apt update
apt install plesk-php81-dev zlib1g-dev
/opt/plesk/php/8.1/bin/pecl install apcu
echo "extension=apcu.so" > /opt/plesk/php/8.1/etc/php.d/apcu.ini
plesk bin php_handler --reread
systemctl restart plesk-php81-fpm

 

Comments

PHP 8.2

apt update
apt install plesk-php82-dev zlib1g-dev
/opt/plesk/php/8.2/bin/pecl install apcu
echo "extension=apcu.so" > /opt/plesk/php/8.2/etc/php.d/apcu.ini

 

RAM erhöhen

echo "apc.shm_size=256M" >> /opt/plesk/php/8.2/etc/php.d/apcu.ini

 

Reread / Reload / Restart 

plesk bin php_handler --reread
systemctl restart plesk-php82-fpm

PHP 8.3 extra packages (+ pecl, apcu)

apt update
apt install plesk-php83-dev zlib1g-dev
/opt/plesk/php/8.3/bin/pecl install apcu
echo "extension=apcu.so" > /opt/plesk/php/8.3/etc/php.d/apcu.ini

 

extra RAM 

echo "apc.shm_size=512M" >> /opt/plesk/php/8.3/etc/php.d/apcu.ini

 

Reread / Reload / Restart 

plesk bin php_handler --reread
systemctl restart plesk-php83-fpm

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare