Home > Article > Backend Development > PHP development environment to build phpstorm + xampp + mongodb
phpstorm installation and download Baidu network disk resource phpstorm 9.0.1 (with serial number) http://pan.baidu.com/s/1kTvX0jl
xampp installation and download Baidu network disk resource xampp_win32_5.6.14 http: //pan.baidu.com/s/1eQ6rdRW
mongodb installation and download Baidu network disk resources php environment variable configuration:
Create a new system variable (right-click on the computer and select Properties->Advanced->Environment Variables->New): Variable name: PHP_HOME
Variable value:The path to install xampp xamppphp Edit the path variable (right-click Computer Select Properties->Advanced->Environment Variables->Select Path->Edit) Add ;%PHP_HOME%;%PHP_HOME%ext
PHP mongodb extended installation configuration:
me The PHP version is 5.6.14, corresponding to php-mongo-1.6.8-5.6-vc.dll
Baidu Netdisk php-mongo various version files http://pan.baidu.com/s /1o6vlxfO
Please choose the extension that suits your system and PHP version to downloadRename it to php-mongo.dll and then put it into xampp/app/ext
and in the php.ini file (generally You can find php.ini under the xamppphp folder and open it with Notepad) and add extension = php_mongo;
as shown below:
If the php-mongo version does not correspond to your php , enter php -version on the command line and the following result will appear:
Successful installation should be
Start apache:
If it doesn’t work To mysql, you can only start apache. After startup, enter localhost in the browser and press Enter to see the apache page
Then you can write your php in phpstorm
If you open the php page and a 502 bad gateway appears, phpstorm will remind you configured PHP Interpreter, just follow the reminder to configure your php interpreter, as shown below:
If 502 bad gateway still appears, you can open apache>conf>apache (httpd.conf) for configuration, as follows Picture:
Find DocumentRoot and
DocumentRoot "Your project location is like E:/project/engineering/src/web/portal/InfoMask/web"
I just learned PHP not long ago. This is my process of configuring the PHP environment. Please let me know if I am wrong~
The above introduces the PHP development environment to build phpstorm + xampp + mongodb, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.