PHP development environment build (phpstorm + xampp + mongodb) phpstorm installation download Baidu network disk resources phpstorm 9.0.1 (with serial number) http://pan.baidu.com/s/1kTvX0jl
Xampp installation download Baidu network disk resources xampp_win32_5.6.14 http://pan.baidu.com/s/1eQ6rdRW
Mongodb installation download Baidu network disk resources http://pan.baidu.com/s/1c00p1hI
Php environment variable configuration:
Create a new system variable (right-click computer and choose Properties> Advanced> environment variable> new): variable name: PHP_HOME variable value: Path of xampp installation \ xampp \ php
Edit the path variable (right-click the computer and choose Properties> Advanced> environment variable> select path> edit) plus % PHP_HOME %; % PHP_HOME % \ ext
PHP mongodb extension installation configuration:
My PHP version is 5.6.14, corresponding to the php-mongo-1.6.8-5.6-vc.dll
Baidu netdisk php-mongo each version of the file http://pan.baidu.com/s/1o6vlxfO please select your own system and PHP version of the extension download
Rename it as a php-mongo.dll and place it in xampp/app/ext
And add extension = php_mongo in the corresponding position of the php. ini file (generally, you can find php. ini in the \ xampp \ php \ folder and open it in Notepad). For example:
If the php-mongo version does not match your php version, the command line input php-version will show the result:
Successful installation should be
Start apache:
If mysql is not used, you can start apache only. Enter localhost in the browser and press enter to view the apache page.
Then you can write your php in phpstorm.
If the 502 bad gateway is displayed on the php page, phpstorm will remind you to configured PHP Interpreter and configure your php Interpreter as prompted, for example:
If the 502 bad gateway still appears, you can open apache> conf> apache (httpd. conf) for configuration, such:
Find DocumentRoot and , Replace DocumentRoot and Set the directory of your project.
DocumentRoot "your project location is E:/project/engineering/src/web/portal/InfoMask/web"
I just learned php soon. this is the process of configuring the php environment. if you have any mistakes, please advise me ~