Apache Access after installationhttp://localhost/PHP Core package (to support PHP development)
VC6 is Legacy Visual Studio 6 compiler, which is compiled with this compiler.
VC9 is the Visual Studio compiler, which is compiled with Microsoft's vs Editor.
So how do we choose which version of PHP to download?
If you are using apache+php under Windows, please select the VC6 version;
If you are using iis+php under Windows, please select the VC9 version;
The installation of the PHP core package is to decompress the upcoming
How to integrate Apache and PHP
That is, how to get Apache to handle PHP
① in the Apache conf directory httpd.conf Add the following code:
LoadModule php5_module ~php Installation path/php5apache2_2.dll
Phpinidir "~php Module Installation Path"
AddType application/x-httpd-php. php. phtml
Description, we only need to package the red part, change to the actual PHP installation path can be
② to change the php.ini-development file to php.ini why, because our PHP settings have to be modified in php.ini
③ the corresponding function module can be specified in the php.ini; Here we specify the extension library path for PHP
Extension_dir = "D:/program Files (x86)/wamp/bin/php/php5.5.12/ext/"
Test to see if Apache and PHP are integrated successfully
Write such a piece of code and save it as test.php
<? php phpinof ();? >
Restart http://localhost/test.php
Installing the database MySQL
After downloading the installation, write a PHP code to test the success!
At the moment you don't understand, it's okay.
<? PHP $conn=mysql_connect("localhost", "root", "root"); if ($conn) { echo "connect MySQL database OK"; } Else { echo "failed to connect to database"; }? >
When we do not properly configure PHP, we will report
Fatal error:call to undefined function mysql_connect () inch C:\myenv\apache\htdocs\temp.php on line 3
Cause: There is currently no MySQL feature enabled, in PHP.ini
Extension=php_mysql.dll
Extension=php_mysqli.dll
Installing phpMyAdmin
Unzip the package directly to the Htdocs directory, and you can access the http://localhost/phpMyAdmin/index.php directly.
Custom Installation Apache+php+mysql+phpmyadmin