Practical deployment of Apache+PHP+MySQL running environment under Windows_PHP tutorial

WBOY
Release: 2016-07-21 15:16:25
Original
849 people have browsed it

Official download address:
MySQL http://www.mysql.com/downloads/mysql/ Find an MSI file and download it. Apache http://httpd.apache.org/download.cgi
Php http://windows.php.net/download/#php-5.4

The first is MySQL, (here I’m going to complain about MySQL, which was acquired by Oracle)

Step by step, no more configuration required

Then install Apache,

Also step by step

Install PHP, (I am lazy and proud of myself, look for the Installer file on the PHP download page...it may not be the latest version = =~)

Download page

Installation Notes

Other things to remember:

Actually, the above are all nonsense, the following is what I want to remember

1. Pay attention to the combination of PHP and IIS

Edit this value in IIS Manager

2. Combining PHP and Apache, changing Apache’s config file

Add

in C:Program FilesApache Software FoundationApache2.2confhttpd.conf Copy the code The code is as follows:

PHPIniDir "D :Program FilesPHP"
LoadModule php5_module "D:Program FilesPHPphp5apache2_2.dll"

3. Set Apache's config to the workspace (convenient for Eclipse debugging)

Modify

in C:Program FilesApache Software FoundationApache2.2confhttpd.conf Copy the code The code is as follows:

DocumentRoot "D:workspaces"

......


4. Set the default encoding of PHP

Add and modify C:Program FilesPHPphp.ini to

default_charset = "gb2312" 
Copy after login
If you find configuration troublesome, you can use phpnow or apmsevr to quickly set up a PHP running environment

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/325894.htmlTechArticleOfficial download address: MySQLhttp://www.mysql.com/downloads/mysql/Find an MSI file and download it .Apachehttp://httpd.apache.org/download.cgi Phphttp://windows.php.net/download/#php-5.4 First...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template