How IIS Configures PHP graphics and text in windows2003

Source: Internet
Author: User
Tags file upload ini php file

Configuration of PHP.ini
One: The D:/software directory under the Php-5.2.1-win32.zip copy to the D-Packing directory decompression-renamed to: PHP (folder permissions to add users permissions)





Two: Open d:/php to copy php.ini-dist or php.ini-recommended to c:windows directory

⑴ found Php.ini_dist file, renamed to PHP.ini.

and the C-disk renamed to PHP.ini, the general official release of the website of the server with Php.ini-dist, and as a debugging server with php.ini-recommended better.

⑵ Open php.ini, Find extension_dir= "./" and change it to
Extension_dir= "D:phpext" (depends on the document in the version)


⑶ remove the semicolon before the following file
Extension=php_gd2.dll
Extension=php_mysql.dll
Extension=php_mysqli.dll
Extension=php_zip.dll
Extension=php_mbstring.dll
Extension=php_mcrypt.dll



⑷upload_max_filesize = 2M (maximum file upload capacity limit (modified as needed, attention unit)
Change to 8M

⑸ copies the modified php.ini file to the C:windows directory and copies Php5ts.dll, Libmysql.dll, libmcrypt.dll files under d:php to the C:windowssystem32 directory .

⑹ Open iis-Web site-right key properties-Home Directory-configuration-map-Add (Executable-point to PHP directory php5isapi.dll file-extension. php). PHP, limited to Get,head,post,trace. Option-Enable parent path tick!

Add a new Web service in the ⑺web service extension, add the path (extension:. PHP---Add-preview-point to the Php5isapi.dll file in the PHP directory), below-set the extension status to allow. Add language support index.php completion in document



⑻ Test PHP Probe: A: Add Wwwroot folder to E disk-Create a new text document under folder-Rename to index.php
B: Open the index.php file (opened in Notepad) and copy the following code into it.
phpinfo ();
?>

C: Open iis-Web Site-right-new Web site-Description: php-IP address to server IP next-preview (point to the newly created Wwwroot folder, next)-permission settings: Read and Run script next-Finish


D: The new site-right-preview observation can not open! There is a display on the other hand OK check the above steps!

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.