How 2003 server uses IIS to configure PHP programs

Source: Internet
Author: User
How does 2003 server use IIS to configure PHP programs?
I have set the following method, but still can not display, open the page when prompted
HTTP Error 404-file or directory not found
Internet Information Services (IIS)

######################
First: Install PHP
#####################

1, download PHP installation program http://www.php.net/downloads.php,
The latest version of the PHP installation for php5.1 Windows is divided into two ways, one is the source code installation method, an EXE installation method, EXE installation method for the idiot-type installation, double-click to install, we do not talk about, the main point of the source code installation!

Download "PHP 4.3.10 Zip package" or 5.0 or 5.1. Then unzip the downloaded zip file to
C:\php (can be extracted according to different needs to different directories, but not familiar with the default, can not occupy much space).


2, copy C:\php\php4ts.dll to C:\Windows\System32. (sometimes for convenience, click Search *.dll in the PHP folder to copy all the folders you have searched to System32, so you can save a lot of trouble!) )


Copy the c:\php\php.ini-recommended (or php.ini-dist) to C:\windows\php.ini and then open the C:\windows\php.ini, modifying the following several places:

; If you use the default of 4096, then PHP will have a very bad performance inside IIS6.
Output_buffering = On

; If it is on the production server, you can not modify the following two lines
Error_reporting=e_all & ~e_notice
Display_errors = On (here is the error to modify PHP, off is not prompted, some database links non-error information will also be PHP as error message output, recommended as a Web server shutdown!) )

; Indicates the folder where the PHP extension library resides
Extension_dir= "C:\php\extensions" (Here is the Ext folder in PHP5, different versions, that is, the folder where the DLL files are placed)

The following two are time-outs: General 60-120
Max_execution_time = 90
Max_input_time = 90
Post_max_size = 8M (6-10m best)
Upload_max_filesize = 8M (maximum upload attachment size)

Default_socket_timeout = 90 (port time 60-120)

Session.gc_maxlifetime = 3600 (session default time to live, seconds)
Session.save_path = "C:\PHP\sessiondata" (here to modify the session's storage directory, if you do not need the session function, you can also do not modify, note that the directory must exist, does not exist to establish)



trackback:http://tb.blog.csdn.net/trackback.aspx?postid=1532059



------Solution--------------------
IIS to configure ISAPI parsing.
------Solution--------------------
The classic answer upstairs! It's absolutely true.
------Solution--------------------
2003 The main thing is to add PHP to the Web service extension, fill in your path \sapi\php4isapi.dll, and set to allow
  • 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.