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)