In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how to achieve php installation xdebug/php", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to achieve php installation xdebug/php" bar!
1. Prepare for
In the wamp environment, the versions of the software I use are as follows
Windows 2003 Standard Edition SP2 apache HTTP Server 2.3 mysql 5.1.49 php 5.4.5
I will not elaborate on the construction of the above environment. There are a lot of information on the Internet, and there are usually no errors, but if you use windows 7 to deploy, just pay attention to the permission problem. All the operations use administrator privileges, and the next content is what I want to focus on, because there are often some unexpected headaches and problems that are not easy to solve.
First of all, you need to prepare the following
Pear package, open the URL (click here), save the downloaded files to the root directory of php, go-pear.phar
two。 Install 2.1 install pear
Open the CMD command first, and if you install it with windows 7, all CMD command lines mind opening it with administrator privileges, as long as you can get administrator privileges, of course.
Cd to the installation directory of php (will cd? It won't be @ Baidu)
Execute command: php go-pear.phar
Enter "local" here and enter
The next step is to type "yes" to confirm the operation, and then enter all the time.
You don't need to choose anything from 1-12.
Finally, there is the following prompt
Here, you enter pear on the command line, and the result proves that the pear installation is successful.
Note that at the end of the installation, you will be prompted whether to write the relevant configuration of pear to php.ini. If you do not have sufficient permissions, the command line will help you open php.ini (confirmed by you on the command line, of course) and wait for you to enter the configuration information manually. The specific configuration has been given on the command line, you just need to copy and paste.
At this point, we'd better update pear to make sure that you are installing the latest version
Use the command pear upgrade-all
Here, you need to keep the network open. If you see an error message during the update, try it a few more times.
So far, pear has been installed and updated to the latest version
2.2 install phpunit
First add channels to pear, and then execute the following command in the php directory:
Pear channel-discover pear.phpunit.de
Pear channel-discover components.ez.no
Pear channel-discover pear.symfony-project.com
Next, install phpunit and execute the following command
Pear install phpunit/PHPUnit
If your network speed is not good, you may need to wait a few minutes and download some tgz packages online. finally, if you see a similar message below, it proves that you have installed successfully.
At this point, in the php root directory, you can see the file phpunit.bat, and type phpunit on the command line, you can see the corresponding help information to prove that the installation is successful.
But, but! At this point, if you need to test with Selenium, there is one more important thing to install, such as testing in YII, many of which use Selenium.
Continue to execute the following command from the root directory of PHP:
Pear install phpunit/PHPUnit_Selenium
If the network is smooth, this should be the result.
2.3 install Xdebug
First, identify the following items in your environment
Is the version number of php thread-safe? is the php environment 32-bit or 64-bit?
Then go to http://xdebug.org/download.php to download the corresponding xdebug application extension (dll)
This is all the versions of xdebug2.2.1, take the first example, it is suitable for php version 5.2, using vc9 to compile to non-thread-safe xdebug in 32-bit environment, where TS means Thread Safe, so without this tag means No Thread Safe
Place the downloaded file in the php root directory / ext, and then open the system directory / windows/php.ini to add the following
Zend_extension= "F:\ php_dev\ php\ ext\ php_xdebug-2.2.1-5.4-vc9.dll"
[xdebug]
Xdebug.auto_trace=on
Xdebug.collect_params=on
Xdebug.collect_return=on
Xdebug.profiler_enable=on
Xdebug.trace_output_dir= "F:\ php_dev\ temp"
Xdebug.profiler_output_dir= "F:\ php_dev\ temp"
Xdebug.remote_enable=on
Xdebug.remote_handler=dbgp
Xdebug.remote_host=localhost
Xdebug.remote_port=8888
There are many specific configurations here, so I won't dwell on them. You can check the specific configuration contents here.
When you open phpinfo, you can see the specific xdebug.
Thank you for your reading, the above is "how to achieve php installation xdebug/php" content, after the study of this article, I believe you have a deeper understanding of how to achieve php installation xdebug/php this problem, the specific use of the need for you to practice verification. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.