Previously wrote an article Zend Studio+wamp: Point here, the personal feeling is not written well but the number of reading is thousands of ...
However, many people around the author began to use Phpstrom, so simply write a tutorial
First, download the installation
Phpstrom Download: http://www.jetbrains.com/phpstorm/
PHP Download: http://windows.php.net/download/
Phpstrom I use the 9.0.2 commercial version (do not ask me registration code, Escape ~), PHP author with the php-5.6.15-win32-vc11-x64 thread-safe version, note the need to install VC11 (VC2012) runtime
Phpstrom installation is basically a fool-style, don't say more
PHP does not need to install, unzip and change the configuration file can be used
Second, configure the 1.php.ini configuration
PHP decompression, this article extracted directory in D:\WNMP\php\, and then modify the configuration file, the author stole a lazy, the WNMP configuration directly to get over
[Plain]View plain copy
- Change the PHP directory php.ini-development, the file name to PHP.ini, for the following configuration
- Search "Extension_dir", find: E;xtension_dir = "ext" First to go to the front of the semicolon and then change to Extension_dir = "D:\WNMP\php\ext"
- Search "Date.timezone", find:;d Ate.timezone = First go to the front semicolon and change to Date.timezone = Asia/shanghai
- Search "Enable_dl", find: Enable_dl = Off to Enable_dl = On
- Search "Cgi.force_redirect"; cgi.force_redirect = 1 First go to the front semicolon and change to Cgi.force_redirect = 0
- Search "Fastcgi.impersonate", find:; fastcgi.impersonate = 1 Remove the preceding semicolon
- Search "Cgi.rfc2616_headers", find:; cgi.rfc2616_headers = 0 First, go to the front semicolon and change to Cgi.rfc2616_headers = 1
- Search for "Php_mysql" and find: "Extension=php_mysql.dll and Extension=php_mysqli.dll remove the front"; Extension=php_mysql.dll and Extension=php_mysqli.dll (MySQL database support)
- Other configurations should be changed according to your needs.
Configuration Phpstrom is the focus after the change is completed
2.PHP Interpreter Configuration
Open Phpstrom
File-->default Setting
Search Interpreter
Found it
Languages & frameworks-->php
Click on the back of interpreter three points ...
The Add window appears, click on the + sign, select other Local
Add your PHP path after phpexecutable: such as D:\WNMP\php\php.exe, the default specified profile is php.ini, click OK
Third, testing
The new info.php content in Phpstrom is as follows
[PHP]View plain copy
- <?php
- Phpinfo ();
- ?>
For info.php--> Right-click Open in Browser-->default, the browser automatically opens the HTTP://LOCALHOST:63342/project name/ info.php, the page will display your PHP version and other information, indicating that the configuration was successful,
If your page shows 502 bad Gateway, mostly PHP interpreter not configured, it is recommended to reconfigure
Original article Address: http://blog.csdn.net/gsls200808/article/details/49887043
PHPSTORM9+PHP5 development environment Configuration of PHP environment construction