Installing with Linux commands
//Download the installation packagewget http://pecl.php.net/get/vld-0.14.0.tgz//Unpacking PackageTar zxvf vld-0.14.0.tgz//go to compile, install directoryCD vld-0.14.0///Extended block of PHP extensionphpize//find the Php-config path using locateLocate php-Config If the command is not indicated, run the following command Yum-y install mlocateupdatedb//more rows of data, you can configure the compiled Php-config path with//./configure--with-php-config=/usr/local/php/bin/php-config--enable-VLD//Compiling the installationMake &&Make Install//Edit the php.ini file to activate the extensionExtension==vld.So finally restart the server, OK
When I installed, always prompt no Configuer file, check the Readme file, the original can be installed through Git, the following is the GIT installation.
Installing VLD extensions via git
The steps are as follows:
Clone https://github.com/derickr/vld.gitcd VLD phpize./configure-- With-php-config=/usr/local/php/bin/php-config--enable-&& make install
Don't end it, activate the VLD extension in the php.ini file.
Each is explained at the time of the command installation.
Check performance
Php-dvld.active =1–dvld.execute=0 test.php
VLD extension of the main two parameter list
-dvld.active defaults to 0. Represents whether the PHP file that is running is active VLD hooks,
-dvld.execute defaults to 1. Represents only the intermediate code, does not execute the generated intermediate code, can be set to 0, indicating that the intermediate generation code is not executed
More list of parameters can be Baidu
Also refer to: http://blog.csdn.net/21aspnet/article/details/7002644
Language performance optimization for PHP performance: Install VLD extension--detect performance