First of all, this is a soft article, yes! is a soft article. Because I know "php is the best language in the world", so I believe many people would like to read this user help write soft text, because this soft text should be able to help PHP development students a little busy. We are a company established for 7 years, so OneAPM's technical strength is recognized by the market, but also by a lot of users, we look at how users use our products:
The following contents are reproduced:
I thought OneAPM did not have PHP 7 probe, but when the app was added, click "Update Log" to find out the PHP 7.0 probe has been released.
So the test was installed the first time.
Unfortunately, installation failed, error message
NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/opt/remi/php70/root/usr/lib64/php/modules/oneapm.so' - /opt/remi/php70/root/usr/lib64/php/modules/oneapm.so: undefined symbol: Z_BVAL_P in Unknown on line 0
Then in Monday, the reaction to the engineers, after several tests, there is no problem, so on the weekend time to describe their own upgrade process.
First, remember to uninstall the previous version of the probe before the following upgrade.
My environment is CentOS 7+NGINX+PHP-FPM, I directly configure Remi Source to upgrade PHP 7.0.0
sudo yum install epel-releasesudo wget http://rpms.remirepo.net/enterprise/remi-release-7.rpmsudo rpm -Uvh remi-release-7.rpmsudo yum install remi-releasesudo yum-config-manager --enable remi-php70sudo yum update php\*
Above is the upgrade PHP, if you are the first to install, can run
sudo yum install php-common php-cli php-json php-pecl-memcached php-pdo php-opcache php-xml php-mbstring php-mysqlnd php-pear php-gd php-fpm
And then the installation of the OneAPM Agent.
Restart under PHP-FPM after installation
sudo systemctl restart php-fpm
Run the following command to check the version of the probe below
Wait for some time to see your data in the database! Isn't it cool???
But my forum program does not give the force, inevitably using a lot of eval
And a lot of services rely on foreign servers, the domestic environment is so crazy.
I think most of us because we want to optimize the program to install Ai, but I found that their response speed compared with others, I hope we can communicate more, share their own optimization experience, brother in advance thank you!
In addition the latest PHP7 probe download address: HTTP://WWW.ONEAPM.COM/LP/PHP7
This article is OneAPM User submissions, authorized OneAPM official technology Blog Forwarded
OneAPM for PHP is able to drill down into all of the PHP applications to perform application performance management in-depth application performance management and monitoring within all PHP applications, including code-level visibility, rapid identification and traceability of performance bottlenecks, real user experience monitoring, Server monitoring and end-to-end application performance management. To read more technical articles, please visit the OneAPM Official technology blog.
This article was transferred from OneAPM official blog
The above describes the PHP 7 probe installation and testing, including the aspects of the content, I hope the PHP tutorial interested in a friend helpful.