Home >Backend Development >PHP Tutorial >PHP development environment setup (phpstorm xampp mongodb), phpstormxampp_PHP tutorial

PHP development environment setup (phpstorm xampp mongodb), phpstormxampp_PHP tutorial

WBOY
WBOYOriginal
2016-07-12 09:03:571050browse

PHP development environment construction (phpstorm xampp mongodb), phpstormxampp

phpstorm installation and download Baidu network disk resource phpstorm 9.0.1 (with serial number) http: //pan.baidu.com/s/1kTvX0jl

xampp installation 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:

Path to install xampp xamppphp Edit the path variable (right-click on the computer and select Properties->Advanced->Environment Variables->Select path->Edit) and add ;%PHP_HOME%;%PHP_HOME%ext

PHP mongodb extension installation configuration:

My PHP version is 5.6.14, corresponding to php-mongo-1.6.8-5.6-vc.dll

Baidu Netdisk php-mongo versions of files http://pan.baidu.com/s/1o6vlxfO

Please choose the extension download that suits your system and PHP version

Rename it to php-mongo.dll and put it in xampp/app/ext

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 mysql is not used, you can only start apache. After starting, enter localhost in the browser and press Enter to see the apache page

Then you can write your php in phpstorm

If a 502 bad gateway appears when opening the php page, phpstorm will remind you to configure 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 shown below:

Find DocumentRoot and , and set DocumentRoot and to the directory of your project.

DocumentRoot "Your project location is such as E:/project/engineering/src/web/portal/InfoMask/web"

I just learned PHP not long ago. This is my process of configuring the PHP environment. I hope you can tell me if I’m wrong~

http://www.bkjia.com/PHPjc/1075962.html

www.bkjia.com

http: //www.bkjia.com/PHPjc/1075962.htmlTechArticlePHP development environment construction (phpstorm xampp mongodb), phpstormxampp phpstorm installation and download Baidu network disk resource phpstorm 9.0.1 (with Serial number) http://pan.baidu.com/s/1kTvX0jl xampp installation...
Statement:
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