Home > Backend Development > PHP Tutorial > PHP development environment to build phpstorm + xampp + mongodb

PHP development environment to build phpstorm + xampp + mongodb

WBOY
Release: 2016-07-29 09:11:17
Original
1161 people have browsed it

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 download

Rename 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:

PHP开发环境搭建phpstorm + xampp+mongodbIf the php-mongo version does not correspond to your php , enter php -version on the command line and the following result will appear:

PHP开发环境搭建phpstorm + xampp+mongodbSuccessful installation should be

Start apache: PHP开发环境搭建phpstorm + xampp+mongodb

PHP开发环境搭建phpstorm + xampp+mongodbIf 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:

PHP开发环境搭建phpstorm + xampp+mongodbIf 502 bad gateway still appears, you can open apache>conf>apache (httpd.conf) for configuration, as follows Picture:

PHP开发环境搭建phpstorm + xampp+mongodbFind DocumentRoot and , and set DocumentRoot and to the directory of your project.

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template