IIS server fully configured to implement Asp,cgi,perl and Php+mysql

Source: Internet
Author: User
Tags install php iis odbc mysql mysql host php and php and mysql mysql database
cgi|iis|mysql|perl| Server IIS server fully configured to implement Asp,cgi,perl and Php+mysql

IIS Server full configuration Now we're going to make IIS implement Asp,cgi,perl and Php+mysql

Required software (all for Windows):

ActivePerl, PHP, MYSQL

I. ASP support:

Needless to say, there is nothing to do, it supports ASP to run itself.

Two. Cgi,perl Support:

1. Install ActivePerl
ActivePerl to run the download step-by-Step Installation (Note: Install the path Please select to the root directory under/usr/(default is Perl), which will save a lot of things for later debugging programs.

2. Configure IIS
Open Internet Information Services (in ' Administrative Tools '), and click on the properties of the default site, as shown in the figure:

Select the Home Directory tab, and then click "Configure (G) ..." to pop up as a dialog box

Then "Add (D)" to the following figure:

Recommend "C:\usr\bin\perl.exe" Remember to add "%s%s" at the end, or you can't execute CGI, OK. Add the extension. pl, as shown in the same way:

After the completion of the figure:

Now that your IIS has supported Cgi,perl!


Three. PHP, MySQL support:

1. Install PHP and MySQL
Run download PHP and MySQL step-by-step installation on the line (installed to where all line, generally now online are installed PHP, there is no installation program, you only need to download the compression package out on the line, put to such as: c:\php)

2.PHP Support:

2.1 Copy all files in the DLLs folder under the PHP directory under C:\Windows\System32

2.2 Configure IIS: Just like with CGI, Add. php as shown below:

After the completion of the following figure:

Finally, as shown in the figure:

"Execute Permissions" here, "scripts and Executables", then determine ok! Now that your IIS has fully supported Php+mysql!

First, download the MySQL database (ODBC) driver and MySQL database system program

1.MySQL Database (ODBC) driver download address: http://mysql.com/Downloads/MyODBC/myodbc-2.50.36-nt.zip, http:// Download.sourceforge.net/pub/mirrors/mysql/downloads/myodbc/myodbc-2.50.36-nt.zip or http://www.fykx.net/. Download/php/myodbc-2.50.36-nt.zip (1457KB)

2.MySQL Database System program Download address: Http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.30-gamma-win.zip (9632KB) or http:// Www.fykx.net/download/php/mysql-3.23.30-gamma-win.zip

Second, the installation of the program

1. Install MySQL database (ODBC) driver (must be installed under Windows System)

2. Install MySQL database System program, generally installed in the system default location "C:\MySQL", but to consider whether your server as a network database server, if you want to set up hundreds of database users on this server, it should be installed in the space compared to large hard drive, To avoid unnecessary trouble and cumbersome settings in the future.

Third, the commencement of the program

Execute the "[System Installation Letter]:\mysql\bin\winmysqladmin.exe" This program to start the MySQL database system and manager, the first time you start, the system will appear "Quick Settings" window, the request to establish the first database user account, the following figure. Enter the username of the first MySQL database account in User name, enter the password of the first MySQL database account in password, preferably you remember the value entered, and then enter the MySQL database Management window, after a while the program automatically minimizes the window to the system tray ( There is a "traffic light" icon on the right side of the taskbar, and the system is starting normally (Windows2000 also checks the "MySQL Component Services" in Component Services Manager for startup). At this point, the program also added a shortcut in the Startup group, the next time you start the computer will automatically start the MySQL database system.

Iv. Establishment of the database

The first time the database is started, the system automatically creates two databases called MySQL and test, and you can create a database of other names in the following ways:

Right-click the system Bay Traffic light icon =>> Click Show me to open the MySQL Database Management window =>> Select the Databases tab =>> Select Database Server =>> right-click => > select the "CREATE DATABASE" menu item =>> in the Pop-up Add Database dialog box, type the database name =>> Click Create the Datebase (create this database). A new database is set up. The following figure


V. Database user account Management

The first time you start a database to create a database user account, if your server to allow multiple users to use, you have to set up a number of database user accounts, the following steps:

Start ODBC Data Source Administrator (ODBC Data Source Administrator under the WindowsNT System) in Administrative Tools, WINDOWS98 or me system ODBC data Source Administrator in Control Panel =>> Click in the first label User DSN in the ". Add button =>> Select "MySQL" in the data source driver list =>> Click Finish to =>> the "Dynamic Education Network" in the Database Driver Configuration dialog box "Windows DSN name" ( For the dynamic Education Network Open account, in the MySQL host (name or IP) fill in the server's hostname or IP address, in the MySQL database name, fill in the names of databases in the user, fill in the username of the database account number, In password, fill in the password of the database account number, others for the default settings =>> click OK. A new database account is set up.

Vi. Debugging procedures (vbulletin version 1.1.5 Chinese Standard Edition after the layout style is used as the proxy example)

1. Modify the admin/config.php document as follows:

<?php

Only MySQL is currently supported
$dbservertype = "MySQL";
hostname or server IP
$servername = "localhost";
User name and password for login to the database
$dbusername = "Xiaozhang";
$dbpassword = "123456";
Database name
$dbname = "MySQL";
Allow viewing/editing of passwords in Control Panel
0 = not visible or edited
1 = not visible, but can be edited
2 = visible and can be edited
$PWDINCP = 2;

?>
(Transferred from Http://bbs.iduba.net)

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.