Configure PHP:
1. Extract the PHP file into the Windows installation packing directory, such as C:\php
3. Copy C:\php\php.ini-dist to C:\Windows and rename Php.ini-dist to php.ini create Shortcut to C:\php (mainly for aspect modification configuration)
4. Find PHP.ini and modify:
Extension_dir = "C:\php\ext"
Session.save_path = "C:windows\temp" open session (optional)
Display_errors = on Turn On error display (optional)
Short_open_tag = on open short mark (optional)
Search, extension= will need to use the front of the DLL, remove, such as using the MySQL database, then remove Extension=php_mysql.dll extension=php_mysqli.dll front;
5.WEB Service Extension-Add a new WEB service extension-Extension: php5isapi-Click Add-Enter C:\php\php5isapi.dll, set extension status to allow
6. Right-click Web site-Home Directory-configuration-add-executable: C:\php\php5isapi.dll-extension. php-limit to Head,get,post
7. Right-click the site-document-add-index.php
8. Right-click PHP's corresponding Web site-permissions-user user tick write-internet Guest account cancel reject write check
9. Install MYSQL5, if the installation of MySQL encountered 3306 port is prohibited, please enter the control Panel-windows Firewall-exception-add port-mysql-3306
10. Reboot the server
Test:
New test.php, Inside input
Copy Code code as follows:
<?php phpinfo ();?>
<br/>
<?php
$link =mysql_connect (' localhost ', ' root ', ' your MySQL root password ');
if (! $link) echo "Failed!";
else echo "Success!";
Mysql_close ();
?>