PHP development environment setup (phpstorm + xampp + mongodb)

Source: Internet
Author: User
Tags php development environment php mongodb
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 ~

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.