Finally in the CentOS XAMPP environment, the Xdebug to install in place. Write a blog record.
One of the main reasons for the previous installation failure was that I had a PHP version in my CentOS, and there was a problem using phpize. The installation process is as follows:
Download Xdebug
: http://www.xdebug.org/download.php
After downloading, refer to Xdebug's official documentation for installation.
The birds ' address is as follows: Http://www.xdebug.org/docs/install
PS: If you can read the bird text, we suggest you ignore the following "nonsense" directly
Two installing Xdebug
Go to the download directory and execute the following command
[root @localhost TMP] # tar-zxvf xdebug-2.3.2.tgz//function is to decompress [Root @localhost TMP] # CD xdebug-2.3.2//Enter into the extracted xdebug in [Root @localhost xdebug-2.3 . 2 ] #/opt/lampp/bin/phpize//This is a very critical step, and this step will generate the Configure file. You must use the PHP version of the phpize command that you want to configure. [Root @localhost xdebug-2.3 . 2 ]#./configure-enable-xdebug-with-php-config=/opt/lampp/ Bin/php-config//This thing I've talked about in the installation of the memcache extension [root @localhost Xdebug-2.3 . 2 ] # make, make install
At this point, the work is not finished, there are important configuration php.ini file work. First of all, if you are not very confident that your just steps are valid, it is recommended that you do the following to confirm:
OK, if you see the example shown in. Then you can open php.ini for configuration.
three configuration of the php.ini file
Let's just say, open the php.ini question. Sometimes there are multiple INI files exist, then who should choose?
(just wrote to the 3rd, accidentally hit the computer to shut down the machine, fortunately, the auto-save, this must praise a bit csdn)
Teach you a simple way to see the options in the Phpinfo () function, Loaded Configuration File
followed by the values, the path to the php.ini file we're looking for. Don't say much nonsense, open it and make the following configuration
[xdebug]zend_extension="/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so"Xdebug. Profiler_enable =1Xdebug. Profiler_output_dir ="/opt/lampp/temp"Xdebug. Profiler_output_name ="cachegrind.out.%t-%s"Xdebug. Remote_enable =1Xdebug. Remote_handler ="DBGP"Xdebug. Remote_host ="localhost"Xdebug. Remote_port =9000Xdebug. Trace_output_dir ="/opt/lampp/temp"
Restart the server.
Next is to check, whether the installation is successful, you still have two options, one is directly in the Phpinfo () view, and also directly from the command line view, as follows:
Four configuring Eclipse
If I do not say this, it is similar to other people, so I think it is to say, pretending to be forced to behave differently.
First of all, your eclipse already has the PDT plugin installed. I won't tell you how this is going to fit.
- Configure Eclipse's External browser
What's important here is how to find the path to Chrome in CentOS, which you can turn on by clicking on the shortcut key and viewing it in the properties.
- Configure Xdebug
- Basically it's all done, and the rest of the work is the same as in Windows. Don't dwell on it. You have a question to leave!
Install xdebug,php Environment using XAMPP under CentOS