• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Zend Guard on Compiled PHP - Plesk Obsidian

Ebrahim A. Senejani

New Pleskian
Dear Friends,
I have compile php 5.45 on plesk 18.0.35 by this KB:  How to add a custom PHP version in Plesk for Linux?
Compiled Directory is:
/usr/local/php54/

I need Zend Guard Loader which I have downloaded from: Zend Guard Loader | Zend
I have put the following line in my php.ini which is located in:
/usr/local/php54/etc/php.ini:
zend_extension=/usr/local/php54/ext/ZendGuardLoader.so
and I have put .so file in different directories like ext (/usr/local/php54/ext/) and /usr/local/php54/lib/php/extensions/
but I get the following error in my error.log:

[Wed May 26 19:17:12.482406 2021] [cgid:error] [pid 1672364:tid 140612367890176] [client 127.0.0.1:0] Failed loading ZendGuardLoader.so: ZendGuardLoader.so: cannot open shared object file: No such file or directory: /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[Wed May 26 19:17:12.487184 2021] [cgid:error] [pid 1672364:tid 140612367890176] [client 127.0.0.1:0] PHP Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/vhosts/XXX/httpdocs/info.php on line 2: /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[Wed May 26 19:17:12.566490 2021] [cgid:error] [pid 1672364:tid 140612342712064] [client 127.0.0.1:0] Failed loading ZendGuardLoader.so: ZendGuardLoader.so: cannot open shared object file: No such file or directory: /var/www/cgi-bin/cgi_wrapper/cgi_wrapper, referer: http://172.16.2.153/plesk-site-preview/<domain.tld>/https/172.16.2.153/info.php
[Wed May 26 19:17:12.576456 2021] [cgid:error] [pid 1672364:tid 140612351104768] [client 127.0.0.1:0] Failed loading ZendGuardLoader.so: ZendGuardLoader.so: cannot open shared object file: No such file or directory: /var/www/cgi-bin/cgi_wrapper/cgi_wrapper, referer: http://172.16.2.153/plesk-site-preview/<domain.tld>/https/172.16.2.153/info.php

and Zend Guard not loaded.
Can you please help me out?
 
If you have another modules in /usr/local/php54/lib/php/extensions/ or in /usr/local/php54/lib64/php/extensions/ you have to put ZendGuardLoader.so in this directory and check that zend_extension= option has correct path. So, try to find location of another modules first.

Just wondering what the use of such a vulnerable and long time ago EOLed PHP version is?
 
Back
Top