Recently started to play PHP, the configuration steps to write down, so as not to forget later
First go to the official website to download php5.5,apache2.4,mysql5.6, note to download the Windows environment 64-bit free installation version,
Then extract the 3 folders to the C drive, i.e. c:/apache24,c:/php,c:/mysql-5.6.25-winx64
The reason for extracting to C drive is that it can modify many configurations and avoid errors.
Open C:/apache24, search for "Listen 80", remove the double quotes, modify the port to 8090, and then finally add the following configuration associated with PHP
# php5 Supportloadmodule php5_module c:/php/php5apache2_4.dlladdtype application/x-httpd-php. php. html. htm# Configure Thepath to Php.iniphpinidir "c:/php"
Find C:/php/php.ini-development, copy the name to PHP.ini, open php.ini
Found it
; Extension_dir = "ext"
To take the front of;
Found it
; Extension=php_mysql.dll
; Extension=php_mysqli.dll
to take the front;
And then finally add support for Xdebug.
[Xdebug]
zend_extension= "C:/php/ext/php_xdebug-2.3.3-5.5-vc11-x86_64.dll"
xdebug.idekey= "Phpstorm"
Xdebug.remote_enable =1
Xdebug.remote_handler = "DBGP"
Xdebug.remote_host = "localhost"
Xdebug.remote_mode = "req"
Xdebug.remote_port = 9000
Php_xdebug-2.3.3-5.5-vc11-x86_64.dll needs to be downloaded and placed in this directory after downloading.
Download install Phpstorm, after running, find file->settings->language&frameworks->php
Configure interpreter first, that is, choose the root directory of PHP
Then enter DUBUG->GBGP Proxy,
IDE Key fill Phpstorm
Host fill localhost
Prot Fill 9001
Finally, if you are using Chrome to debug, download Xdebug Hepler
If you are using Firefox, download easy Xdebug
After downloading, you need to configure their IDE key to Phpstorm
The above describes the Php55+apache24+mysql56+xdebug configuration, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.