1. LAMP----PHP Development Environment Build (Win)

Source: Internet
Author: User
Tags php development environment

lamp=linux+apache+mysql+php.

STEP1 Installing Apache

http://httpd.apache.org/download.cgi

1. Open the above URL, click Files for Microsoft Windows, click Apachehaus, select the appropriate. zip download

2. Unzip and modify Apachexx to apache-> open. \apache\conf\httpd.conf, find Define srvroot and change the following path to your current Apache storage address, find Listen If 80 port is occupied (cmd under netstat-a view) then change to another port to save the httpd.conf file

3. Open cmd-> as administrator ". \apache\bin\httpd.exe "-K install-n Apache to install Apache Service (with quotes)

4. Open: \apache\bin\apachemonitor.exe, click the icon that appears in the lower-right corner of the desktop, select Apache, click Start Launch Apache Service

5. Open browser--input access http://localhost-> the IT WORKS interface is installed successfully

#卸载 # Stop Apache Service--Open cmd-> input sc delete Apache

STEP2 installing MySQL

http://dev.mysql.com/downloads/

1. Open the above URL, select Community, click on MySQL Community Server under DOWNLOAD, select the appropriate version to download

2. Unzip and place the file in G:\mysql5.7 (this step), and under mysql5.7, create a new my.ini-> with Notepad open and configure:

3. Open Cmd-> as an Administrator switch the directory to the G:\mysql5.7\bin directory, input mysqld install, input mysqld-- Initialize initializing data directory, input net start MySQL startup service

#关闭mysql服务 # win+r-> Input services.msc, find MySQL Item-Stop

#修改密码 # Open Cmd-> as an administrator . Switch directory to G:\mysql5.7\bin directory, enter myql–u root–p Login, enter password-input Use MySQL to enter the MySQL database (appears database changed), input Update user set Authentication_string=password ("New password") where user= "root"; Set a new password for the root user (the query OK ...) ), input flush privileges; Refresh the database (query OK ...) ), enter quit MySQL

1. LAMP----PHP Development Environment Build (Win)

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.