Preface
Work to do it, its prerequisite. PHP integration Environment is also very many, such as AppServer, XAMPP, WAMP ... As long as a key installation of the PHP environment to set up, this way is not my favorite fool style, later want to learn PHP, upgrade version is not convenient, but also want to try to build PHP environment, because not to do this aspect of PHP, configuration development environment takes a long time, go a lot of detours. Take this opportunity to summarize the installation process, so that people see this article less go some detours, the following also gives the installation files, because the blog Park storage file can not be larger than 10M, installation files placed in the Baidu cloud below the content to give the connection.
First, the preparatory work
- Apache: httpd-2.2.25-win32-x86-no_ssl.msi extract Password: pg7f
- PHP:php-5.3.5-win32-vc6-x86.zip extract Password: p07r
- MySQL:mysql-5.5.17-win32.zip extract Password: ujn4
- PhpMyAdmin:phpmyadmin-4.2.11-all-languages.zip extract Password: rvge
Recommendation: Put the installed files in a folder, the following 4 subfolders, folder names do not use Chinese.
Installation process: Installation Successful one and the previous installation of the integration, and testing, the installation sequence according to the title order, the installation process of some of the steps to compare the simple diagram is omitted.
Second, Apache installation
Start installation: Run the Httpd-2.2.25-win32-x86-no_ssl.msi installation package
General Software Installation Steps, select I agree
When filling out the server infomation, there is no special rules, as long as the input information format correctly OK
Select a custom
I choose to install in the D:\MyPHPServer\Apache\ folder
This page is expected to appear during installation because I use IIS when the default port 80 is accounted for, do not control it, the next step, wait a moment will be installed successfully.
1, after the completion of the transfer, Apache service is not automatically started, need to start manually, computer---and management--service-->apache2.2 start.
2, to the folder D:\MyPHPServer\Apache\conf find httpd.conf Open with Notepad, find Listen 80 changed to 81 (because my default port 80 is IIS accounted for)
3, Browser input http://localhost:81 Enter, the following page appears, congratulations on your Apache installation success
Third, the green version of PHP is placed in the corresponding directory installation
1, d:/myphpserver/under the new folder php-5.3.5, Php-5.3.5-win32-vc6-x86.zip d:/myphpserver/php-5.3.5 decompression can be
Configure Apache and PHP: Find httpd.conf in directory D:\MyPHPServer\Apache\conf open with Notepad
Add red in-box code in the following locations:
It is convenient to copy the following content to paste it out:
LoadModule Php5_module D:/myphpserver/php5.3.5/php5apache2_2.dll
Phpinidir "d:/myphpserver/php5.3.5"
AddType application/x-httpd-php. php. phtml
2, find the Php.ini-development file under the d:/myphpserver/php5.3.5/folder, change the file name to PHP.ini and open it in Notepad to modify the following location
Remove the front semicolon and write the path
3. Create a new Notepad under the D:\MyPHPServer\Apache\htdocs folder, modify the suffix named. php, and write the following code with Notepad open:
<?php
Phpinfo ();
?>
After restarting Apache, enter the address in the browser: http://localhost:81/test.php The following page shows that the installation was successful
Iv. MySQL Start installation
Select Custom Customize
Select Path
Installation Successful
Database Details Configuration
Set Root password
Database installation Complete, test the PHP connection database:
Create a new Notepad under folder D:\MyPHPServer\Apache\htdocs, modify the name and suffix named temp.php, and write the code
<? PHP $con mysql_connect ("localhost", "root", "you just set the database password"); if ($con) { echo "connect MySQL database OK"else { Echo "failed to connect to MySQL database";}? >
Enter address in browser: http://localhost:81/temp.php appears the following page data connection succeeded, MySQL database installation succeeded
Five, PhpMyAdmin installation
PhpMyAdmin is the green version of the unpacked folder and put the folder to D:\MyPHPServer\Apache\htdocs because the original folder name is longer, I will change the folder name to PhpMyAdmin
Enter the address in the browser: http://localhost:81/phpMyAdmin/index.php Enter, the following page appears stating that the PhpMyAdmin configuration was successful.
To this installation is complete, finally can relax, write so much at once, paste so picture. I used to read so many blogs, and now I have a little experience, and blogging is a time-consuming effort.
If you feel good, please recommend, appreciate it. If you feel that the place is wrong, welcome treatise.
Windows Apache + php + mysql + phpMyAdmin build the development environment