How to configure xhprof in the Lampp Environment

Source: Internet
Author: User

On the homepage, we can go to the renewal method.

1. If your xampp does not have a devel package, the compilation will fail. This is because the include php tutorial. h fails during compilation. Therefore, make sure that the devel packages of xampp is downloaded and installed. : Xampp-linux-devel, and decompress it to the installation directory tar-xvzf file-c/opt. When downloading the devel package of xampp, be sure to select the devel package that is consistent with your current version. Because the php extension compilation will append the version information and check it at startup, if they are inconsistent, they cannot be used even if they can be compiled successfully.

After that, you will find that there is an extra include directory under the lampp Directory, which contains some necessary header files.

2. Download the source code of xhprof. Decompress the package and enter the xhprof/extension/directory.

3. Execute the following commands in sequence:

/Opt/lampp/bin/phpize

./Configure -- with-php-config =/opt/lampp/bin/php-config -- prefix =/opt/lampp/

Make

Make test

Make install

 

The installation is complete. Then go to the/opt/lampp/lib/php/extensions/no-debug-on-zts-20060613/to view, you will see that there is xhprof. so.

4. Add extension = "xhprof. so" to/opt/lampp/etc/php. ini to restart lampp.

5. After the server is restarted, you can see the xhprof information in phpinfo.

 

Pstutorial: When I use lampp 1.7, the compiled xhprof. so cannot be loaded properly enough, prompting that the version number is incorrect. It may be

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.