SoFunction
Updated on 2025-04-08

IIS+PHP+MySQL+Zend Optimizer+GD library+phpMyAdmin installation configuration [full correction practical version]

4. Install Zend Optimizer:
After downloading, you can get ZendOptimizer-2.6. , and double-click to install. During the installation process, you need to select Web Server, select IIS, and then prompt you whether to Restart Web Server. Select Yes, prompt whether to backup before completing the installation, click OK and then complete the installation. I installed it here to D:\php\Zend
The following two steps are selected according to your own default WEB site directory. Of course, you can also select the directory D:\php\Zend
The Zend Optimizer installation wizard will automatically modify it according to your choice to help you start this engine. The following is a brief introduction to the configuration options of Zend Optimizer. The following is the default configuration code after the installation is completed (the content after the semicolon is a comment):

[zend]
zend_extension_ts="D:\php\Zend\lib\"
;Zend Optimizer module installation path on the hard disk.
zend_extension_manager.optimizer_ts="D:\php\Zend\lib\Optimizer-2.6.2"
;The directory where the optimizer is located is not required by default.
zend_optimizer.optimization_level=1023
;Optimization degree, here defines how many optimization processes are started. The default value is 15, which means 1-4 of the 10 optimization processes are opened at the same time. We can change this value to 1023, which means that all 10 optimization processes are opened.

After calling the phpinfo() function, it will be displayed:

Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.9, Copyright (c) 2003-2006, by Zend Technologies with Zend Optimizer v2.6.2, Copyright (c) 1998-2006, by Zend Technologies

This means the installation is successful.
5. Install the GD library
This step removes the ";extension=php_gd2.dll"The previous one;Actually installed ~

[Finished in"extension=php_gd2.dll"In this line, remove the previous semicolon, the installation of the gd library is completed, useechophpinfo() ;The test was successful! ]
6. Install phpMyAdmin
Download to getphpMyAdmin-2.7.

Unzip it to D:\php\ or IIS root directory, change the name phpMyAdmin-2.7.0 to phpMyAdmin,
and create a new site or virtual directory in IIS to point to the directory for access through the WEB address.

Here, the phpMyAdmin virtual directory that creates the default site points to D:\php\phpMyAdmin directory accessed through http://localhost/phpmyadmin/

Find and open the D:\php\phpMyAdmin directory , make the following modifications: Search$cfg['PmaAbsoluteUri']

Set up your phpmyadmin WEB access URL, such as in this article:$cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin/'; Note that here phpmyadmin is in the root directory of the default site
Find$cfg['blowfish_secret'] =

Set the COOKIES encryption key, such asThen set to$cfg['blowfish_secret'] = ''; Find$cfg['Servers'][$i]['auth_type'] =

Default is config, which is not safe, not recommended, recommendedcookie, set it to$cfg['Servers'][$i]['auth_type'] = 'cookie';

Note that if you set it to config here, please set the username and password below! For example:

$cfg['Servers'][$i]['user'] = 'root'; // MySQL user------MySQL connection to users

$cfg['Servers'][$i]['password'] = '';

search$cfg['DefaultLang'], set it to zh-gb2312 ;

search$cfg['DefaultCharset'], set it to gb2312; Open the browser and enter: http://localhost/phpMyAdmin/. If both IIS and MySQL have been started, enter the user ROOT password (if there is no password set, the password will be left blank) to enter the phpMyAdmin database management.

First click on permission to enter user management, delete users whose ROOT and host are not localhost and re-read the user permission table. Here you can also modify and set the ROOT password, add other users, etc.

Please get familiar with the specific functions of phpMyAdmin, and I won't go into details here.
All installations are now complete.
6. Directory structure and secure directory permission settings in MTFS format:
The current directory structure is
 D:\php
|
+—————+——————+———————+———————+
  php4(php5) tmp  MySQL Zend phpMyAdmin

D:\phpSet asAdministrators and SYSTEM full permissionsYes, no other users have permission

For the secondary directory below

D:\php\php4 (or D:\php\php5)Set asUSERS Read/RunPermissions


D:\php\tmpSet asUSERS Read/Write/DeletePermissions

D:\php\MySQL 、D:\php\ZendSet asAdministrators and SYSTEM full permissions

phpMyAdmin WEB anonymous user read permissions