PHP5.5.15 + Apache2.4.10 + MySQL5.6.20 configuration method sharing, apache2.4php5.6. PHP5.5.15 + Apache2.4.10 + MySQL5.6.20 configuration method sharing, apache2.4php5.6 for beginners who are learning php, because the online configuration method is a long time ago, the timeliness is not high, environment configuration to PHP5.5.15 + Apache2.4.10 + MySQL5.6.20 configuration method, apache2.4php5.6
For beginners who are new to php, since the configuration methods on the Internet are long ago, the timeliness is not high, and the environment configuration is often a headache. I configured the environment for three nights when I was a beginner at php, every time there is always one or another problem. now we share with you the configuration methods of the latest PHP5.5.15 + Apache2.4.10 + MySQL5.6.20 and win7x86 versions, however, the downloaded software must be 64-bit.
Environment:Win7 32. (64-bit, similarly, the download software must be of the corresponding 64-bit version)
PHP5.5.15(php-5.5.15-Win32-VC11-x86.zip)
Apache2.4.10(httpd-2.4.10-win32-VC11.zip)
MySQL5.6.20(mysql-5.6.20-win32.zip)
Method/Step 1:Preparation (download required software)
Before installing apache, you must first install VC11 (VSU_4 \ vcredist_x86.exe), the URL is http://www.microsoft.com/en-us/download/details.aspx? Id = 30679. select the English version when selecting. if The win7 system is 64-bit, download VSU_4 \ vcredist_x64.exe. For more information, see
Apache2.4.10(Httpd-2.4.10-win32-VC11.zip) URL: http://www.apachelounge.com/download/
PHP5.5.15(Php-5.5.15-Win32-VC11-x86.zip) Here we choose the thread Security Edition. for the difference between the thread Security Edition and the non-thread Security Edition, you can check the relevant information online. download the URL: http://windows.php.net/download/,VC11 x86 Thread Safe 32-bit Thread Security Edition
MySQL5.6.20(Mysql-5.6.20-win32.zip), URL: http://dev.mysql.com/downloads/mysql/. the selected version is free of installation. For more information, see
Method/Step 2:Install
Install VC11, double-click it, and click several next steps until the installation is successful.
After Apache is downloaded, it is a zip package. after decompression, it can be placed in the appropriate location. We do not recommend placing the package in drive C, because all the data on the system drive C will be lost, put it in the apache2.4 directory under the PHP Tools folder of drive F.
After php is downloaded, it is also a zip package and decompressed to a proper location. we will also put it in the php5.5 directory under the php Tools folder on the F drive.
MySQL is free of installation, which is simpler. it is also extracted to a suitable location. here we also put it in the MySQL directory under the phptools folder of the F disk, after decompression and installation, as shown in figure
Method/Step 3:Configure PHP
1. copy F: \ phptools \ php5.5 \ php. ini-production and rename it php. ini;
2. Add F: \ phptools \ php5.5 and F: \ phptools \ php5.5 \ ext to the environment variable PATH, and select the computer, right-click the attribute --> Advanced System Settings --> environment variable --> system variable, find the Path, edit it, and add it to it; F: \ phptools \ php5.5; F: \ phptools \ php5.5 \ ext, for example,
Method/Step 4:Configure Apache
1. open F: \ phptools \ Apache2.4 \ Apache24 \ conf in Notepad
Search for ServerRoot and modify ServerRoot "C:/Apache24" => ServerRoot "F:/phptools/Apache2.4/Apache24" (here you enter the location after extracting the apache installation package)
2. search for # ServerName www.example.com: 80 and change it to ServerName www.example.com: 80 (remove the previous #)
3. search for DocumentRoot "c:/Apache24/htdocs" and change it to DocumentRoot "F:/phptools/Apache2.4/Apache24/htdocs" (if the same is true, you do not need to change it)
4. search , Change (If the same, you don't need to change it)
5. search for DirectoryIndex index.html and change it to DirectoryIndex index.html index. php index.htm (index. php index.htm is added here)
6. search for ScriptAlias/cgi-bin/"c:/Apache24/cgi-bin/" and change it to ScriptAlias/cgi-bin/"F: /phptools/Apache2.4/Apache24/cgi-bin "(if the same is true, do not change it)
7. search Change (If the same is true, you do not need to change it)
8. in F: \ phptools \ apache2.4.10 \ conf \ httpd. add LoadModule php5_module "F:/phptools/php5.5/php5apache2_4.dll" to the last line of conf to make apache support php (please confirm that F:/phptools/php5.5/has php5apache2_4.dll, if you download the connection provided by me, it will certainly exist)
9. add AddType application/x-httpd-php. php. html. htm.
10. add PHPIniDir "F:/phptools/php5.5" (tell apache php. ini location)
Now, httpd. conf is configured and httpd. conf is saved.
Method/Step 5:Install apache into System Services
Enter F: \ phptools \ Apache2.4 \ Apache24 \ bin \ httpd-k install, and press enter
Shows the installation process.
Method/Step 6:Several common php extensions
1. open F: \ phptools \ php5.5 \ php. ini in Notepad.
Modify extension_dir = "ext" to extension_dir = "ext" (remove the semicolon before extension)
2. change extension = php_mbstring.dll to extension = php_mbstring.dll (remove the semicolon before extension, which is a php multi-byte string extension)
3. change extension = php_mysql.dll to extension = php_mysql.dll (remove the semicolon before extension)
4. modify extension = php_mysqli.dll to extension = php_mysqli.dll (remove the semicolon before extension)
Method/Step 7:Start Apache
1. MySQL installation-free environment configuration. for details, refer to: MySQL5.6 installation-free environment configuration graphic tutorial
2. start apache in two ways:
Start windows service, click start, right-click the computer, choose Manage> services and applications> services, click Apache2.4, and right-click start, as shown in figure
3. double-click F: \ phptools \ Apache2.4 \ Apache24 \ bin \ ApacheMonitor.exe to start the service, as shown in figure
Method/Step 8:Start MySQL
After the MySQL installation-free version is configured successfully, it is started in the service. The Startup method is similar to that of Apache in the service. The difference is that you can right-click to start the MySQL service.
Notes
1) when you configure Apache, the configuration directory must be consistent with the directory where you decompress the package. Otherwise, an error will occur.
2) you must install Apache on windows before starting Apache.
3) MySQL installation-Free Edition must be configured before it can be started
The latest php environment has been set up successfully. thank you for your reading.
Ghost is a beginner in learning php. because the configuration methods on the Internet are long ago, the timeliness is not high, and the environment is configured...