Introduction to full IIS server configuration (Asp, CGI, Perl, PHP + MySQL)

Source: Internet
Author: User
Introduction to full IIS server configuration (Asp, CGI, Perl, PHP + MySQL)
[Author: anonymous post: Network clicks: 1812 entry: A New]
Add the Internet Information Service (IIS) component under Windows2000.

The IIS server is fully configured. Now we need to implement ASP, CGI, Perl and PHP + MySql in IIS.

Required Software (ActivePerl, PHP, MySQL)
Download ActivePerl:
Domestic: http://www.downloadsky.com/down/ActivePerl-5.6.1.630-MSWin32-x86.zip (the latest version is ActivePerl v5.6.1.630)

PHP download:
Foreign: http://www.php.net/do_download.php? Download_file1_php-4.1.1-win32.zip (the latest version is Php v4.1.1. I personally think it is best not to use "php 4.1.1 installer)

MySQL download:
Domestic: http://www.esoftware.com.cn/oload.php? Url = http://ftp.eware.com.cn/pub/utility/developer/mysql-3.23.45-win.zip (version is MySQL v3.23.45)
Bytes ---------------------------------------------------------------------------------------------
I. asp support:

Needless to say, there is no need to do anything, and ASP is supported.

Ii. cgi and Perl support:

1. Install ActivePerl
Run the downloaded ActivePerl and install it step by step (Note: select the installation path under C:/usr in the root directory (Perl by default). This saves a lot of trouble for future debugging programs)

Run regedit (the computer needs to be restarted to take effect)
Find the HKEY_LOCAL_MACHINE/system/currentcontrlset/services/w3svc/parameters/scriptmap directory.
Add the following key values:
Key name: ". cgi" key value: "C:/usr/bin/perl.exe % S % s"
Key name: ". pl" key value: "C:/usr/bin/perl.exe % S % s"

2. Configure IIS
Open "Internet Information Service" (In 'administrative tools') and click the properties of the default site ,:

Select the "main directory" tab and click "configuration (g)...". The dialog box is displayed:

Then "add (d)", for example:

We recommend "C:/usr/bin/perl.exe". Remember to add "% S % s" to the end. Otherwise, you cannot execute CGI. Add the extension. pl in the same way,

After completion

Next, select the "ISAPI filter" page, click the "add" button, enter "cgi" in the "Filter Name", and enter "C: /usr/bin/Perlis. DLL, and click OK ".

Now your IIS supports CGI and Perl! But not yet, because there is still the last step:

Another problem in 2000 is that the file directory permission is not set !!!

Go to the resource manager and set the root directory permission of your site (right-click the Directory and you will see a security permission setting) to "Full Control" for all users. everything will pass in the future!

Close all windows. After restarting the system, you can open IE browser for testing.

Finally, write the test program:
Put the file test. cgi in the CGI-BIN directory, the Code is as follows
#! /Usr/bin/perl
Print "Content-Type: text/html/n ";
Print "<title> IIS configuration test program </title> ";
Print "IIS configuration is normal !!! ";
Type http: // 127.0.0.1/cgi-bin/test. cgi in the address bar of the browser.
If "IIS configuration is normal!" is displayed in the browser !!! "
You have succeeded.

Iii. PHP and MySQL support:

1. install PHP and MySQL
Run the downloaded PHP and MySQL installation step by step. you can install it wherever possible, but breeze recommends that you use the decompressed version of PHP, p this package does not have the installation program, you just need to extract the downloaded compressed package, put it in: C: /PHP.

2. php support:

2.1 copy all files in the DLLs folder under the PHP Directory to C:/winnt/system32;
Move php4ts. dll in C:/PHP to C:/Windows/system to overwrite the original file.
Copy the php. ini-Dist under C:/PHP to C:/WINNT and change it to PhP. ini.

2.2 configure IIS: Like CGI, Add. php as follows:

After completion, such:

Finally

Here the "execution permission" should be: "script and executable file" and then OK!

3. Install MySql in double-click mode and double-click setup.exe. The default path is C:/MySQL.
In C:/MySQL there is a file my-example.cnf renamed my. CNF copy to C:/below.

4. Double-click phpMyAdmin Installation File and decompress it to C:/phpMyAdmin.
Use phped to configure C:/phpMyAdmin. inc. open php3 and set "require (" English. inc. change php3 ");" to "require (" chinese_gb.inc.php3 ");".

Now your IIS fully supports PHP + MySql

Note: MySQL can be directly installed without any configuration.

 

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.