Home > Backend Development > PHP Tutorial > Installation and testing of PHP 7 probes

Installation and testing of PHP 7 probes

WBOY
Release: 2016-07-29 09:06:38
Original
1104 people have browsed it

First of all, this is a soft article, yes! It’s just a soft article. Because I know that "PHP is the best language in the world", I believe that many people are willing to read this soft article written by users, because this soft article should help students who develop PHP a little bit. We are a company that has been established for 7 years, so OneAPM's technical strength is recognized by the market and recognized by many users. Let's see how users use our products:

The following is a reprint of the content:

I originally thought that OneAPM did not have a PHP 7 probe, but when adding the application, I clicked on the "Update Log" and found that the PHP 7.0 probe had been released.

Installation and testing of PHP 7 probes

So I tested the installation right away.
Unfortunately, the installation failed with 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 I reported the situation to the engineer on Monday. After several tests, currently I didn’t encounter any problems, so I took some time over the weekend to describe my upgrade process.

First of all, remember to uninstall the old version of the probe before performing the following upgrade.

My environment is centos 7+nginx+php-fpm. I directly configured the remi source to upgrade PHP 7.0.0

<code>sudo yum install epel-release
sudo wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo rpm -Uvh remi-release-7.rpm
sudo yum install remi-release
sudo yum-config-manager --enable remi-php70
sudo yum update php\*
</code>
Copy after login

The above is to upgrade php. If you are installing it for the first time, you 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

Then the installation of OneAPM Agent

Installation and testing of PHP 7 probes
Installation and testing of PHP 7 probes
Installation and testing of PHP 7 probes
Installation and testing of PHP 7 probes
Installation and testing of PHP 7 probes

After installation, restart php-fpm

sudo systemctl restart php-fpm

Run the following command to check the version of the probe

Installation and testing of PHP 7 probes

Wait for a while You can see your data in the database! Isn’t it cool? ? ?

Installation and testing of PHP 7 probes

However, my forum program is not good, and it inevitably uses a lot of eval

Installation and testing of PHP 7 probes

And many services rely on foreign servers. The domestic environment is really crazy

Installation and testing of PHP 7 probes

I think most of you are I installed Ai because I wanted to optimize the program, but I found that my response speed was much worse than others. I hope you can communicate more and share your optimization experience. Thank you in advance!

In addition, the latest PHP7 probe download address: http://www.oneapm.com/lp/php7

This article is submitted by OneAPM users and is authorized to be forwarded by OneAPM official technology blog

OneAPM for PHP can go deep into all PHP applications Complete application performance management can go deep into all PHP applications to complete application performance management and monitoring, including visibility of code-level performance issues, rapid identification and tracing 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 technical blog.
This article is reproduced from OneAPM official blog

The above introduces the installation and testing of PHP 7 probes, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template