Iis5.1 configure the PHP Runtime Environment

Source: Internet
Author: User

Configuration environment: WINXP SP3 + iis5.1

Apache version for apache_2.2.6-win32-x86-no_ssl.msi

PHP version for php-4.4.2-Win32

 

 

Port 80 must be empty when Apache is installed.

Search and download Apache and install Apache on the Internet. Three input boxes will appear during installation, which are about the domain name and email address. You can enter the box as needed, and then press the default next step until the installation is complete. When the installation is successful, a green triangle icon will appear in the taskbar, indicating that the installation is successful.

Next began to configure the PHP file, download the php-4.4.2-Win32, decompress to E: \ PHP, do not extract the folder with a Chinese name, so as not to add ing in IIS.

Decompress the package and find PHP. ini-Dist file, copy it and change it to PhP. INI, open and search in Notepad; Extension = php_mysql.dll, change it to extension = php_mysql.dll, and continue to search extension_dir = ". /"changed to extension_dir =" E: \ PHP \ ". The last oblique rod should not be less. Save and quit, and copy it to c: \ windows.

Find the php4ts. dll and libmysql. dll file under E: \ PHP \ folder and E: \ PHP \ DLLs, and copy it to the c: \ windows \ system32 folder.

 

Open IIS, create a virtual directory, open the virtual directory-main directory-configuration-add, browse to E: \ PHP \ SAPI \ php4isapi. DLL, enter in the extension. PHP. If the following OK button cannot be clicked, it may be because your PHP installation package is placed in a directory with Chinese characters. Then, exit all the way and create a file test under the virtual directory. PHP

Enter the following content:

 

<? PHP

Phpinfo ();

?>

 

Test whether the installation is successful ..

If you have misconfigured PHP for the first time, please note that.

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.