windows2003 IIS6 Configure PHP and MySQL database _win server

Source: Internet
Author: User
Tags php and mysql
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 ();
?>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.