Php-5.2.17 without VC9 version, how can I install php on iis? Php-5.2.17 no VC9 version, how can I install php on iis ?, 1, install PHP5 & nbsp; download: http://cn2.php.net/get/php-5.2.0-Win32.zip/f php-5.2.17 no VC9 version, how can I install php on iis?
Php-5.2.17 without VC9 version, how can I install php on iis?
------ Solution --------------------
1. install PHP5
Download: http://cn2.php.net/get/php-5.2.0-Win32.zip/from/cn.php.net/mirror
Install: decompress php-5.2.0-win32.zip to d: \ php (it can be another directory, depending on your situation) and run "d: \ php \ php5.ini-dist (or php. ini-recommended) changed to php. ini, open and modify the following:
(1) output_buffering = ON
(2) extension_dir = "d: \ php \ ext" // All versions later than PHP5.X are ext, which used to be the extensions folder.
(3) session. save_path = "d: \ php \ session_data" // location where the session file is saved. this directory is not available by default and needs to be created.
(4) remove the line before extension = php_gd2.dll; // let PHP support true color.
(5) to use MySQL, remove the one before extension = php_mysql.dll.
(6) check that display_errors = ON // PHP5 is ON by default.
Configuration:
(1) copy the modified php. ini file to c: \ windows (System path.
(2) copy php5ts. dll to the c: \ windows \ system32 directory. (If it is a WIN2K system, copy it to c: \ winnt \ system32)
(3) If you want php to support mysql, copy d: \ php \ libmysql. dll to c: \ windows \ system32.
Now, PHP 5 has installed and configured OK.
2. configure the use of PHP in IIS
(1) "Internet Information Service (IIS) manager-> Local computer-> Web service extension" right-click "add a new WEB service extension" connection, input extension (such as php ),
Click "add" to add the d: \ php \ php5isapi. dll file to the list.
Select "set extension status to allow" and click "OK". the added project (php) is displayed in the "WEB service extension" list ).
(2) "Internet Information Service (IIS) manager-> Website ". Right-click the "default website" project and choose "properties" to open the "default website properties" dialog box.
Switch to the "main directory" tab and click "configuration" to open the "application configuration" dialog box. Click "add" to open the "add/edit application extension ing" dialog box. Click the Browse button and select D: \ php \ php5isapi. dll. enter. php in the extension. Then, go back to the "default website properties" dialog box, switch to the "documents" tab, and click "add" to add index. php to the default content document list.
Note: direct the home directory of the default website to the directory where you store the php file, select "script resource access", "read", "directory browsing", "Record Access", and "index resource ".
Finally, confirm and close the dialog box.
(3) restart IIS.
3. test PHP
Create a new file test. php in the main directory. the content is as follows:
Echo phpinfo ();
?>
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.