Configure the runtime environment CGI, PHP, and aspx on IIS

Source: Internet
Author: User

1. Configure PHPProgramRunning environment:

Install the PHP interpreter to the C: \ PHP Directory, and copy the php4ts. dll file under the directory to the c: \ windows \ system32 directory. Next, set the PHP under the PHP Directory. ini. the Dist file is renamed to PhP. INI, edit the file, find register_globals = off, change it to register_globals = on, save the modification, and copy the file to c: \ windows.

Open Control Panel-> Administrative Tools-> Internet information service, and enter the properties of the default website->. Main directory (1), click "Configure" to go to the configuration page, click "add". 2. Enter the complete path and file name of the main program and the application extension. PHP. Click "OK" after the input to complete the PHP configuration.

2. Configure the CGI program running environment

First, install the CGI interpreter Perl. For example, if the installation is c: \ Perl, open the control panel->; Administrative Tools->; Internet Information Service, then go to the default website properties->; main directory, click the "configuration" button to enter the configuration interface, then click the "add" button, enter the complete path of the main program and the file name is: C: \ Perl \ bin \ perl.exe % S % s, the input extension is. CGI: click "OK" to complete CGI configuration.

3. Configure the runtime environment of aspx (ASP. NET)

After IIS is installed, the Vs. Net running platform is installed first, because the system has configured it automatically when the Vs. NET platform is installed. If vs is installed first. net and then install IIS or re-install IIS. In this case, manual configuration is required.. Net runtime environment. The configuration process is very simple. For WINXP systems, enter the command c: \ windows \ Microsoft in the "Start">; "run" menu. net \ framework \ v1.1.4322 \ aspnet_regiis.exe-I. in Win2000, c: \ winnt \ Microsoft. net \ framework \ v1.1.4322 \ aspnet_regiis.exe-I.

With the above configuration, you can run ASP, CGI, PHP, and aspx programs on IIS.

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.