Chapter 1. Question
How to enable Zend Guard Loader in Plesk?
Chapter 2. Answer
Plesk does not provide Zend Guard Loader pre-installed. However, it can be installed manually, i.e. on Plesk 12.5, Debian-based OS, PHP 5.4:
- Download «ZendGuardLoader» according to PHP version
# wget http://downloads.zend.com/guard/6.0.0/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz
- Extract
ZendGuardLoader.so
library and move it to modules folder# tar -xzf ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz # mv /usr/local/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64/php-5.4.x/ZendGuardLoader.so /opt/plesk/php/5.4/lib64/php/modules/
- Set correct permissions
# chmod 755 /opt/plesk/php/5.4/lib64/php/modules/ZendGuardLoader.so # chown root:root /opt/plesk/php/5.4/lib64/php/modules/ZendGuardLoader.so
- Create corresponding
.ini
file with the following content:# cat /opt/plesk/php/5.4/etc/php.d/zendGuardLoader.ini zend_extension=ZendGuardLoader.so
- Restart
php-fpm
service:# service plesk-php54-fpm restart
https://support.plesk.com/hc/en-us/articles/213920745-How-to-install-Zend-Guard-Loader-in-Plesk