PHP5 Manual Minimalist Installation method

Source: Internet
Author: User
Tags filter manual ini connect phpinfo win32 zip
System Requirements
Win2000 Advanced Server
iis5.0
Php5rc2

First step
Of course, first of all, from the http://cn.php.net/get/php-5.0.3-Win32.zip/from/a/mirror up and down a php-5.0.3-win32.zip back. I am under the php-5.0.3rc2-win32.zip in fact and Php-5.0.3-win32.zip almost less than two registry files, but not at all, that is for the IIS4 the following version of the preparation.

Second Step
Extract to any directory, such as n:\imp\php\php5.0.3 but do not have a space in the directory name, so as to avoid some small trouble. It is not appropriate to set up a directory like E:\Program files\php.

Third Step
Add the directory name you just unzipped to the system environment variable path. is the system environment variable not known? Faint! Desktop-〉 My Computer-the right mouse button-〉 Property-〉 Advanced-〉 system Variable-〉path-> edit-〉 with a semicolon on the last side; directory name (for example: n:\imp\php\php5.0.3)-〉 OK.

Fourth Step
In the directory that you just added to path, find Php.ini-dist or php.ini-recommended renamed PHP. INI is clipped to the system directory C:\Winnt. Use the back that saves you from setting it yourself.

Fifth Step
Connect PHP to ISAPI mode
Confirm that the iis5.0 is working properly. Open Internet Services Manager (run-〉inetmgr-〉 the Web site you want to connect to PHP or the default Web site-〉 Right-click-〉 Property-〉 Home Directory--〉 Configure--〉 Application Mappings-〉 add--〉 executable file-〉 The php5isapi.dll-〉 extension in your PHP directory-〉php (php3 phtml)-〉 all actions or limited to (option,get, post, head ...). Add yourself)-〉 hook-and-Choose script engine--〉 Check file exists--〉 determine--〉ISAPI filter--〉 add--〉 Filter name-〉php--〉 executable file--〉 your PHP directory php5isapi.dll--〉 determine--〉 main directory--〉 hook Script resource access--〉 execute license--〉 scripts and executable programs. Property-〉 Document--〉 enable the default document--〉 add--〉index.php.

Connect PHP to CGI mode
Add application map to php.exe file suffix for php in home directory OK if you want to support multiple suffixes, repeat the Add.
When installing this type, you should pay attention to the way the path is written when the application is mapped, or the following error message will appear.




CGI Timeout
The specified CGI application exceeded the allowed time for processing. The server has deleted the process.
You should add '%s '%s after the path for example, the path to your php.exe is n:\imp\php\php5.0.3\php.exe so write to the application mapping-> executable file n:\imp\php\php5.0.3\ Php.exe '%s '%s

The CGI interface is a white-bottom black word. The security aspect is also not optimistic. So in what way or you decide it.

Restart IIS and run--〉net stop iisadmin net start w3svc
By the way, several programs are running
cmd
Inetmgr
Compmgmt


Sixth step
Write a test page, which is a page that contains PHP scripts


<?php

Echo ' Current PHP version: '. Phpversion ();

Phpinfo ();

Phpinfo (Info_modules);

?>


Save it as index.php, and put it in the home directory of the Web site you just took to PHP. View this page in the browser. Like http://localhost/.

Seventh Step
Install additional plug-ins (extended)

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.