Home > Operation and Maintenance > Windows Operation and Maintenance > About configuring the IIS6.0+php5+MySql5+PHPMyAdmin environment under Windows Server 2003 (picture)

About configuring the IIS6.0+php5+MySql5+PHPMyAdmin environment under Windows Server 2003 (picture)

黄舟
Release: 2017-06-07 09:48:35
Original
1702 people have browsed it

Configuration environment:

Operating system: Windows Server 2003 sp2 Enterprise Edition

Web server: IIS6.0 that comes with the system

Required tools:

PHP: php-5.2.12-Win32.zip

Database: mysql-5.0.22-win32.zip

Database management: phpMyAdmin-3.2.5- all-languages.zip

Configuration process:

First let’sInstallationPHP:

  1. Extract php-5.2.12-Win32.zip to any path. I extracted it to D:\php here.

  2. Rename php.ini-recommended in D:\php\ to: php.ini

  3. Let’s modify PHP’s configuration file php.ini

  1. Let's configure IIS so that it can parse PHP

    1. ##Extract phpMyAdmin-3.2.5-all-languages.zip to wwwroot. In order to facilitate management, we will Change the name to phpMyAdmin.
    2. ##Copy the config.default.php file under phpMyAdmin\libraries to phpMyAdmin and rename it to config.inc.php.
    3. Open Internet Information Services (IIS) Manager => Server, click "Web Service Extension" with the backhand key, and then click "Add a new Web Service Extension"
    4. Configure as shown, click OK

      ##Click on the website=>Click "Default Website" with the backhand key=>Click on

      Properties
    5. =>Click. "Home Directory" tab =>Click the "Configure"
    6. button

      =>Click the "Mapping" tab =>Click the "Add" button for the application extension Configure as shown in the figure, click OK.

      We create a new

      phpinfo
    7. .php file in the IIS default root directory wwwroot to check whether we have successfully installed it.
    8. Write in phpinfo.php:

      ##Enter in the browser: http://localhost/phpinfo.php
      At this time we can see the following page↓

    9. Proof that our IIS can parse PHP

      .

    10. However, we can find that libmysql.dll is not loaded by browsing this page. To solve this problem, we copy libmysql.dll to C:\WINDOWS\System32\, and in " Configuration File (php.ini) Path" item shows that the path of php.ini is under C:\WINDOWS, so we put the php.ini file into the specified C:\ Under the WINDOWS path. After restarting the computer and then opening the http://localhost/phpinfo.php page, we can find the following picture ↓

      This proves that our libmysql.dll has been loaded successfully. OK!

      Let’s install MySql below:

      The installation of MySql is very simple, so I won’t describe it here. The following diagram shows my configuration:

      1.

      2.

      3.

      4.

      5.

      6.

      7.

      8.

      9.

      Installation and configurationMySql is very simple, There are a lot of tutorials on the Internet, and they are all very well written. I am just here to give you a rough look at my configuration.

      Finally, let’s configure PHPMyAdmin:

Enter in the browser: http://localhost/ phpMyAdmin/index.php is as shown below: ↓

Note: a. The mcrypt extension cannot be loaded, please check your PHP configuration.
b. Cookies must be enabled to log in.

## Let’s solve these problems:

The first problem a is because D:\php\ libmcrypt.dll is not loaded. The solution is libmysql.dll. Copy libmcrypt.dll to C:\WINDOWS\system32\ and restart the computer. .

The second question b is because of line 177 of the config.inc.php configuration file under C:\Inetpub\wwwroot\phpMyAdmin $cfg['Servers'][$ i]['auth_type'] = 'cookie'; does not take effect. It will take effect after restarting the computer. If it is not a cookie, change it to cookie.

Now let’s browse http://localhost/phpMyAdmin/index.php, as shown below: ↓

At this time we enter the user name and password of the database. My user name here is: root , the password is: 123123, click to execute.

I also encountered a little trouble at this time. When I clicked to execute, it returned to the login page.
My solution is to click continuously after entering the user name and password and click Execute to enter. After entering, sometimes you will be prompted with some errors of one kind or another. It doesn't matter, just refresh a few times. It will be fine after logging in again. I haven't found the reason, maybe there are some bugs in the new software! At this point our environment has been successfully set up!


The above is the detailed content of About configuring the IIS6.0+php5+MySql5+PHPMyAdmin environment under Windows Server 2003 (picture). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template