PHP Configuration Xdebug

Source: Internet
Author: User

Actually have been PHP for more than 2 years, but today is particularly emotional, so the process is written here

The environment is win7+apache2.2+php5.3, for some reason, this version must be used.

Then you can't configure it. Apache logs are as follows:

[Fri Dec 23 00:23:12 2016] [Notice] parent:received Restart Signal--restarting the server.
Failed loading Php_xdebug-2.2.7-5.3-vc9.dll
8:exit event signaled. Child process is ending.
Httpd.exe:Could not reliably determine the server ' s fully qualified domain name, using 192.168.1.100 for ServerName
[Fri Dec 23 00:23:12 2016] [Notice] Digest:generating Secret for Digest authentication ...
[Fri Dec 23 00:23:12 2016] [Notice] Digest:done
[Fri Dec 23 00:23:13 2016] [Notice] Child 8608:released the start mutex
[Fri Dec 23 00:23:14 2016] [Notice] apache/2.2.22 (Win32) DAV/2 mod_ssl/2.2.22 openssl/0.9.8t php/5.3.29 configured--Resuming normal operations
[Fri Dec 23 00:23:14 2016] [Notice] Server Built:jan 28 2012 11:16:39
[Fri Dec 23 00:23:14 2016] [Notice] parent:created Child Process 14436
Httpd.exe:Could not reliably determine the server ' s fully qualified domain name, using 192.168.1.100 for ServerName
[Fri Dec 23 00:23:14 2016] [Warn] Init:session Cache is not configured [Hint:sslsessioncache]
[Fri Dec 23 00:23:14 2016] [Notice] Child 8608:all worker threads has exited.
[Fri Dec 23 00:23:14 2016] [Notice] Child 8608:child process is exiting
Failed Loading Php_xdebug-2.2.7-5.3-vc9.dll
Httpd.exe:Could not reliably determine the server ' s fully qualified domain name, using 192.168.1.100 for ServerName
[Fri Dec 23 00:23:15 2016] [Notice] Digest:generating Secret for Digest authentication ...
[Fri Dec 23 00:23:15 2016] [Notice] Digest:done
[Fri Dec 23 00:23:16 2016] [Notice] Child 14436:child process is running
[Fri Dec 23 00:23:16 2016] [Notice] Child 14436:acquired the start mutex.
[Fri Dec 23 00:23:16 2016] [Notice] Child 14436:starting threads worker.
[Fri Dec 23 00:23:16 2016] [Notice] Child 14436:starting thread to listen on port 80.

Then after a good online check, it took about three hours, and finally found a tool

https://xdebug.org/wizard.php

This tool just prints out the phpinfo () and copies it, which will tell you why Xdebug can't be loaded.

Get the reply I did not save, but I know through this, my Apache is vc9 compiled, I chose the thread (that is, thread-safe), and although I am a 64-bit system, but my Apache is 32-bit.

Then I went to the Xdebug official website to download the appropriate version. Finally the Xdebug appeared.

At last. This place I don't know why most tutorials on the Web this place is file name instead of path, my no path is not feasible.

zend_extension=C:\Develop\php53\ext\php_xdebug-2.2.7-5.3-vc9.dll
Xdebug.profiler_enable=on
Xdebug.auto_trace=on
Xdebug.collect_params=on
Xdebug.collect_return=on
Xdebug.show_exception_trace = On
Xdebug.remote_autostart = On
Xdebug.remote_enable = On
Xdebug.collect_vars = On
Xdebug.remote_handler = DBGP
xdebug.remote_host= localhost
Xdebug.remote_port = 9000
Xdebug.idekey = Phpstorm

Feeling

1: Focus on open source projects must read the document, no matter how old, as long as you want to do programming, you must learn English well!

2: Use the software, if the problem, be sure to check the log, remember!

3: Mature software can not solve the problem, must be patient, remember to remember!

PHP Configuration Xdebug

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.