In case you want to configure NewRelic extension but get the errors like these:
[Wed Mar 15 14:56:43.240939 2017] [cgi:error] [pid 566485] [client 5.44.233.42:44548] AH01215: PHP Warning: PHP Startup: Unable to load dynamic library '/opt/alt/php70/usr/lib64/php/modules/newrelic-20160303.so' - /opt/alt/php70/usr/lib64/php/modules/newrelic-20160303.so: cannot open shared object file: No such file or directory in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php56
[Wed Mar 15 14:56:43.510520 2017] [cgi:error] [pid 566609] [client 52.21.231.226:59007] AH01215: PHP Warning: PHP Startup: Unable to load dynamic library '/opt/alt/php70/usr/lib64/php/modules/newrelic-20160303.so' - /opt/alt/php70/usr/lib64/php/modules/newrelic-20160303.so: cannot open shared object file: No such file or directory in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php56
[Wed Mar 15 14:56:44.771648 2017] [cgi:error] [pid 566368] [client 45.33.61.252:64742] AH01215: PHP Warning: PHP Startup: Unable to load dynamic library '/opt/alt/php70/usr/lib64/php/modules/newrelic-20160303.so' - /opt/alt/php70/usr/lib64/php/modules/newrelic-20160303.so: cannot open shared object file: No such file or directory in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php56
Please make sure that Zend Extension and NewRelic PHP Extension builds are similar:
Zend Extension Build API320151012,NTS
PHP Extension Build API20151012,NTS
Configuration steps are as follows:
# ln -s /usr/lib/newrelic-php5/agent/x64/newrelic-20151012.so /opt/alt/php56/usr/lib64/php/modules/newrelic-20151012.so
# echo "extension=newrelic-20151012.so" > /opt/alt/php56/etc/php.d.all/newrelic.ini
# cagefsctl --setup-cl-selector
# selectorctl -e newrelic -u myuser -v 5.6
/usr/lib/newrelic-php5/agent/x64/ is the directory with different NewRelic PHP agents.
We need to choose the version that we need regarding Zend version
the /usr/lib/newrelic-php5/ is uncompressed tar from https://download.newrelic.com/php_agent/release/newrelic-php5-7.0.0.186-linux.tar.gz
Comments
0 comments
Please sign in to leave a comment.