Build a PHP development environment in Windows and build php development in windows

Source: Internet
Author: User
Tags php development environment

Build a PHP development environment in Windows and build php development in windows

Yesterday, I wrote how to configure the LAMP development environment in Linux. Today we will talk about how to quickly build a Windows PHP development environment using integrated software in Windows.

After considering some information, I thought it was probably Appserv and WampServer, so I had a WampServer and tried it.

During the installation process, WampServer has integrated Apache, MySQL, and PHP, and made corresponding configurations.

Step 1:

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

Select the desired version:


Step 2:

Installation: One way to next

 






Select the Browse tool. If it is not a browser, It is a windows browser. You can find erer.exe to open it.




Installation complete!


Right-click and set the language.

Click the left button to see


Note: www is the default directory for storing web pages.

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

$ WwwDir = $ c_installDir. '/www ';

$ WwwDir = 'd:/web ';

Disable WampServer and enable it again. However, the connection is modified here. Normally, do not modify the connection.

Step 3 configure MySQL and phpMyAdmin

Click phpMyAdmin and select a user. Edit the permissions of each root user and set the password.


Restart all services:

At this time:


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

$ Cfg ['servers'] [$ I] ['Password'] = ''; change it to the password you just set.

Then, refresh phpMyAdmin and everything is back to normal.

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



Click "execute" to complete adding.

Step 4: Configure Apache

1. To make other machines accessible, we need to set up, click the icon, find the Apache-httpd.conf

Delete Deny from all and Change Allow from 127.0.0.1 to Allow from all.

2. Optional: Enable URL rewriting

Change AllowOverride None to AllowOverride All, and comment out # LoadModule rewrite_module modules/mod_rewrite.so.

Drop. (This feature is not required because security is compromised)

3. Modify the www directory

Find the value in DocumentRoot and <Directory "D:/wamp/www/"> and change it to the required path.

Step 5 configure PHP

Open PHP. ini in php and modify it:

; Short_open_tag
; Default Value: On
; Development Value: Off
; Production Value: Off

Memory_limit = 128 M

Upload_max_filesize = 64 M

Now, the PHP development environment is configured in Windows. Next, you can run the PHP program.


How to build a php development environment in windows

For temporary learning, install phpwind ......

For permanent stability, we recommend that you install Apache2 + PHP + mysql or IIS + PHP + mysql

How to build a php environment in windows

Use wamp.
Wamp is an integrated installation environment for Windows Apache Mysql PHP, that is, server software for apache, php, and mysql under Windows. PHP extension, Apache module, start/Close the mouse point to deal with it, no longer need to modify the configuration file in person, a novice is required.
:
Reference: www.php100.com/..a.html

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.