Home  >  Article  >  Backend Development  >  Quick Start with PHP -- Installation and configuration of Apache, PHP, and MySQL

Quick Start with PHP -- Installation and configuration of Apache, PHP, and MySQL

WBOY
WBOYOriginal
2016-08-08 09:32:30814browse

win7 64-bit

Apache-2.4 64-bit VC11

PHP-5.5 64-bit VC11

MySQL-5.6 64-bit

1. Download

1. Apache download address: http://www.apachelounge.com/ download/VC11/binaries/httpd-2.4.10-win64-VC11.zip

2. PHP download address: http://windows.php.net/downloads/releases/php-5.5.20-Win32-VC11-x64 .zip

3. MySQL download address: http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.22-winx64.zip

4. VC11 download address: http://www .microsoft.com/en-US/download/details.aspx?id=30679

2. Configuration

Apache configuration

1. Modify ServerRoot "D:/apache24", the directory where Apache is installed

2. Modify ServerAdmin , optional

3. Remove the #

in front of ServerName 4. Modify DocumentRoot "D:/www" and , website root directory

5. Modify DirectoryIndex index.html index .php index.htm supports more default pages

6. Modify ScriptAlias ​​/cgi-bin/"D:/apache24/cgi-bin/" and

Start after - run, enter cmd, enter the apache24/bin directory, run httpd, if there is no problem with the configuration, there will be no output, otherwise an error message will be output

Added to the system service of Windows, you can start it automatically: httpd.exe - k install -n "apache24"

Uninstall this service: httpd.exe -k uninstall -n "apache24"

PHP configuration

1. Copy and paste php.ini-development and rename it to php.ini

2. At the end of apache24/conf/httpd.conf add

LoadModule php5_module "D:/php/php5apache2_4.dll"

AddHandler application/x-httpd-php .php

PHPIniDir "D: /php"

3. Turn on extension_dir="D:/php/ext"

4. Turn on extension=php_mysql.dll and extension=php_mysqli.dll

MySQL configuration

Just run the installation directly

The above introduces the PHP quick start - Apache, PHP, MySQL installation and configuration, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
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