Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install IIS+PHP+MySQL+Zend Optimize under Windows 2000/XP/2003

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how to install IIS+PHP+MySQL+Zend Optimize under Windows 2000/XP/2003". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Php what to use php is a nested acronym, is an English hypertext preprocessing language, its syntax mixed C, Java, Perl and php self-innovative syntax, mainly used to do website development, many small websites are developed in php, because php is open source, which makes php enduring.

Software preparation: the following are the latest official versions as of 2005-4-20

PHP (5.1.2): http://www.php.net

MySQL (5.0.19): http://www.mysql.com

Zend Optimizer (2.6.2): http://www.zend.com

PhpMyAdmin (2.8.0.2): http://www.phpmyadmin.net

Suppose C:\ is the system disk of the operating system you are using. If your current operating system is not installed in C:\, please modify it yourself.

Second, install PHP:

(1) download the php-5.1.2-Win32.zip and decompress it to C:\ php (this path is optional, but if this path is used below, please modify it accordingly)

(2) copy C:\ php\ libmysql.dll and C:\ Inetpub\ php\ ext\ php_mysql.dll to C:\ Windows\ system32

(3) copy C:\ PHP\ php.ini-dist to C:\ Windows (C:\ WINNT under Windows 2000) and rename it to php.ini, then open it with notepad, and use the notepad search function to search:

Extension_dir = "C:\ PHP\ ext"

Point its path to the extensions directory under your PHP directory, for example: extension_dir = "C:\ Inetpub\ php\ ext"

Search; Windows Extensions and open only the required modules to save memory (remove the; sign before each module):

Extension=php_gd2.dll

GD library support, if you do not open the module, then Discuz! The forum image watermark cannot be used.

Extension=php_mbstring.dll

To support phpMyAdmin, open mbstring.

Extension=php_mysql.dll

Needless to say, support MySQL.

(4) configure IIS to support PHP

You must first make sure that IIS is installed correctly on your system, and if not, you need to install IIS first.

CGI and ISAPI modes are supported when PHP is integrated with IIS, and ISAPI mode is recommended. Here only describes the ISAPI mode installation method: ISAPI mode installation steps:

Select Internet Service Manager in the Administrative tools of the Control Panel, open IIS and stop the service, then right-click on the Web site that you need to support PHP on the left to select Properties, find it in the ISAPI filter tab of the open Web site Properties window and click the add button, enter: PHP in the filter name bar of the pop-up filter Properties window Then point the executable file to the path where php5isapi.dll is located, such as C:\ PHP\ php5isapi.dll.

Open the "Web site Properties" window's "Home Directory" tab, find and click the "configuration" button, in the pop-up "Application configuration" window to find and click "add" button, in the pop-up window to add an extension mapping, extension .php, click "Browse" to point the executable file to the path of php5isapi.dll, such as: C:\ PHP\ php5isapi.dll, and then determine all the way.

Then open the documents tab of the Web site Properties window, locate and click the add button to add the index.php entry to the default list of Web site startup documents. You can raise index.php to the highest priority so that the index.php document is automatically found and opened first when you visit the site.

Make sure that the application settings and execution licenses for the Web directory are selected as pure scripts, then close the Internet Information Services Manager and execute the following command at the command prompt:

Net stop w3svc

Net stop iisadmin

Net start w3svc

Then set the ISAPI extension allow and Active Server Pages allow in the WEB service extension on the left side of the Internet service manager

Open the browser, type: http://localhost/, and when you see the success page, create a new phpinfo.php under the root directory of IIS, as follows:

Open the browser and type: http://localhost/phpinfo.php, which will display all the information about the PHP supported by the current server, and you can see that the mode of Server API is: ISAPI.

3. Install MySQL:

Download Windows Essentials (x86) and double-click to install it. Here I install to C:\ MySQL, during the installation process will prompt you to configure immediately, choose no to complete the installation. After installation, enter C:\ MySQL\ bin\ mysqld-nt-install in "run" on the "start" menu, and then enter: net mysql start after a successful run, which will start the MySQL service; if you still want to configure MySQL in more detail, go to the C:\ MySQL\ bin directory, run MySQLInstanceConfig.exe, and follow the prompts.

If you download Windows (x86), double-click to execute Setup.exe after decompression, the steps are the same as above.

If you downloaded Without installer (unzip in C:\), extract it directly to C:\ MySQL, type: C:\ MySQL\ bin\ mysqld-nt.exe in run on the start menu, and then type: net mysql start after running successfully to start the MySQL service.

Set the password for MYSQL to ensure security:

The general menu contains the configuration wizard MySQL Server Instance Config Wizar. After running, follow the steps below to configure and set the ROOT password.

ROOT password, it is recommended to set complex points to ensure the security of the server!

You can also configure it with commands in MySQL Command Line Client:

First, open the DOS window, then enter the directory mysqlbin, and then type the command mysql-uroot-p. Enter prompts you to enter your password. If you have just installed MYSQL, the superuser root does not have a password, so you can enter MYSQL directly by pressing enter. The prompt for MYSQL is: mysql >

Change the password.

Format: mysqladmin-u username-p old password password new password

Example: add a password to root xqin.com first enter the directory mysqlbin under DOS, and then type the following command

Mysqladmin-uroot-password xqin.com

Note: since root does not have a password at the beginning, the-p old password can be omitted.

Then execute:

SET PASSWORD FOR 'root'@'localhost' = OLD_PASSWORD (' xqin.com')

The command here is because the password hashing algorithm used by MySQL 4.1and later authentication protocols is not compatible with the old client. Logging in with the correct password in PHPMYADMIN will also prompt:

Client does not support authentication protocol requested

By server; consider upgrading MySQL client

So it is to prepare for the correct use of PHPMYADMIN in the future.

So the ROOT password is set to xqin.com.

4. Install Zend Optimizer:

Download to get ZendOptimizer-2.6.2-Windows-i386.exe, directly double-click the installation can be, the installation process requires you to select Web Server, select IIS, and then prompt you whether Restart Web Server, select Yes, before completing the installation prompt whether to back up php.ini, click OK after the installation is complete.

5. Install phpMyAdmin:

Download the phpMyAdmin-2.8.0.2.zip, extract it to the site root directory, find. / libraties/config.default.php and copy it to the phpMyAdmin root directory and name it config.inc.php. Make the following changes:

Search for $cfg ['PmaAbsoluteUri'] and set the URL of your phpmyadmin, such as: $cfg [' PmaAbsoluteUri'] = 'http://localhost/phpmyadmin/'; Note this assumes that phpmyadmin is in the root directory of the default site

Search for $cfg ['blowfish_secret'], and enter it here after setting the root password. For example, the ROOT password xqin.com is set to $cfg [' blowfish_secret'] = 'xqin.com'.

Search for $cfg ['DefaultLang'] and set it to zh-gb2312

Search for $cfg ['DefaultCharset'] and set it to gb2312

Search for $cfg ['Servers'] [$I] [' auth_type'], which defaults to config, which is not safe and is not recommended. It is recommended to use cookie and set it to $cfg ['Servers'] [$I] [' auth_type'] = 'cookie'

Note that if it is set to config, please set the user name and password below! For example:

$cfg ['Servers'] [$I] [' user'] = 'root'; / / MySQL user-MySQL to connect to users

$cfg ['Servers'] [$I] [' password'] = 'xqin.com'

My configuration file is for reference only!

Http://xqin.com/iis/config.inc.txt

Open the browser and enter: http://localhost/phpMyAdmin/. If both IIS and MySQL have been started, enter the user ROOT password xqin.com to browse the database content.

Please familiarize yourself with the specific functions of phpMyAdmin. I won't repeat them here.

At this point, all the installations are complete.

This is the end of "how to install IIS+PHP+MySQL+Zend Optimize under Windows 2000/XP/2003". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report