PHPSTORM9+PHP5 development environment Configuration of PHP environment construction

Source: Internet
Author: User
Tags php download

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
  1. Change the PHP directory php.ini-development, the file name to PHP.ini, for the following configuration
  2. 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"
  3. Search "Date.timezone", find:;d Ate.timezone = First go to the front semicolon and change to Date.timezone = Asia/shanghai
  4. Search "Enable_dl", find: Enable_dl = Off to Enable_dl = On
  5. Search "Cgi.force_redirect"; cgi.force_redirect = 1 First go to the front semicolon and change to Cgi.force_redirect = 0
  6. Search "Fastcgi.impersonate", find:; fastcgi.impersonate = 1 Remove the preceding semicolon
  7. Search "Cgi.rfc2616_headers", find:; cgi.rfc2616_headers = 0 First, go to the front semicolon and change to Cgi.rfc2616_headers = 1
  8. 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)
  9. 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
    1. <?php
    2. Phpinfo ();
    3. ?>

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

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.