Terminal Error:
Installing
Error in installation :: PHP version not supported
Please contact technical support
Please restart the Web Server
My Linux Server Specs:
CENTOS 7.8
PHP Version: 7.2
Hi Mark,
This could happen if the PHP installation directory is not set in the PATH environment variable. Kindly ensure you have set the same in the system's PATH variable and that are able to access php in the terminal before retrying the installation.
Also, kindly share the output of the following commands,
php -i | grep API
php -i | grep extension_dir
If you are using PHP using cPanel/WHM or similar setups, kindly follow our manual installation instructions
www.site24x7.com/help/apm/php-agent/install-php-agent.html#manual
Thanks & Regards,
Shrinivasan
Developer, APM Insight PHP Agent
Please see output of the 2 commands below:
php -i | grep API
Server API => Command Line Interface
PHP API => 20170718
Zend Extension Build => API320170718,NTS
PHP Extension Build => API20170718,NTS
GSSAPI => Yes
DOM/XML API Version => 20031129
MHASH API Version => Emulated Support
Client API library version => mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $
API Extensions => mysqli,pdo_mysql
Client API version => mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $
Phar API version => 1.1.1
php -i | grep extension_dir
extension_dir => /opt/cpanel/ea-php72/root/usr/lib64/php/modules => /opt/cpanel/ea-php72/root/usr/lib64/php/modules
sqlite3.extension_dir => no value => no value
After following the manual installation, I got the new error below:
sudo sh run.sh start
Agent started
run.sh: line 6: ./zpdp: Permission denied
ps -ef | grep zpdp
root 26802 26379 0 13:50 pts/0 00:00:00 grep --color=auto zpdp
Hi Mark,
Thanks for the command output. The PHP agent should be loaded. Kindly restart your apache/fpm process and verify the same using
php -i | grep zpa
Reg the permission error, kindly make sure the zpdp file has executable flag. To enable it, you can run the following command on the /opt/zpa/bin directory and try restarting the service.
chmod +x zpdp
Hope this helps,
Thanks & Regards,
Shrinivasan
Developer, APM Insight PHP Agent
Hi Shrinivasan,
I have done the steps you said and it successfully installed. However, in the portal of site24x7 > APM it doesn't show any data and there's a message:
No data collected for selected time period.
The following could be the reasons :
There were no transactions performed in your application for the chosen time period.Kindly follow the support.site24x7.com/portal/kb/articles/troubleshooting-steps-to-check-if-installation-of-php-has-been-done-properly.
I have checked the phpinfo but zpa doesn't show in the list.
Hi Mark,
If the zpa is not loaded in phpinfo it is possible that the agent is not registered properly or the apache/fpm service is not restarted.
Kindly ensure if
1. zpa.ini is present in the respective ini directory. You can find this using the following command
php -i | grep "Scan this dir for additional .ini files"
2. zpa.so copied is the corresponding API version. In your case, ensure you have copied "/opt/zpa/lib/zpa20170718.so" to "/opt/cpanel/ea-php72/root/usr/lib64/php/modules/zpa.so" . Note that the file name must be zpa.so in the destination directory (obtained from php -i|grep extension_dir).
3. Restart the apache/php-fpm service. And verify again using "php -i | grep zpa"
Kindly let us know if this works.
Thanks & Regards,
Shrinivasan
Developer, APM Insight PHP Agent