Build PHP development environment under Windows

Source: Internet
Author: User
Tags php development environment phpmyadmin

Yesterday, I wrote how to configure the Lamp development environment under Linux. Talk today about how to quickly use integrated software in Windows to build a PHP development environment for Windows.

After considering some information, think is Appserv and wampserver, so make a wampserver play, try.

Wampserver This software in the installation process has integrated the apache,mysql,php, but also made the corresponding configuration.

The first step:

Download wampserver:http://www.wampserver.com/en/

Select the desired version:


Step Two:

Installation: All the way next






Choose the default Browse tool, not the browser, which is the Windows browser and find Explorer.exe open.




Installation is complete!


Right-click and set the language.

Left-click to see


Note: www is the directory where Web pages are stored by default.

If you need to modify it, you need to locate the config.inc.php file under the Scripts folder in the installation directory and modify it with Notepad:

$wwwDir = $c _installdir. ' /www ';

$wwwDir = ' D:/web ';

Then close the wampserver and then open it, but here just modified the connection, generally we do not modify.

The third step is to configure MySQL and phpMyAdmin

Left-click to select phpMyAdmin, open and select Users, edit each root user's permissions, set the password.


Restart all services:

This will appear:


This is because we modified the MySQL password, but did not modify the MySQL and phpMyAdmin communication password, so I did not open the installation directory, modify the \wamp\apps\phpmyadmin4.1.14\config.inc.php file:

$cfg [' Servers '] [$i] [' password '] = '; Change to the password you just set.

Then, refresh phpMyAdmin, everything is back to normal.

Below, we try to create a new user for MySQL and a database for the user.



Click on execute to complete the Add.

Fourth Step Apache Configuration

1. In order to make other machines accessible, we need to set, click on the icon to find apache-httpd.conf

Delete the Deny from all, and then change the Allow from 127.0.0.1 to allow from all.

2. Optional part: Turn on URL rewriting function

Find allowoverride None to allowoverride all, then put #loadmodule rewrite_module modules/mod_rewrite.so comment

You can drop it. (This feature is not optional, as security will degrade)

3. Modify the WWW directory

Find the values in DocumentRoot and <directory "d:/wamp/www/" > change to the desired path.

Fifth step to configure PHP

Open php.ini in PHP to modify:

; Short_open_tag
; Default Value:on
; Development Value:off
; Production Value:off

Memory_limit = 128M

Upload_max_filesize = 64M

At this point, the PHP development environment under Windows is configured to complete. Next, you can run the next PHP program and feel it.

Build PHP development environment under Windows

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.