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

What is the configuration of IIS5.1+PHP 5.2.1+MySQL 5.0.37+Zend 3.2.6+phpMyAdmin-2.10.0.2 environment in XP

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

XP IIS5.1+PHP 5.2.1+MySQL 5.0.37+Zend 3.2.6+phpMyAdmin-2.10.0.2 environment configuration is how, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

How to install and configure PHP, Mysql, IIS, Zend and Phpmyadmin under the Windows XP system to create an Asp+Php environment.

The following is the software to be used in this description.

The IIS5.1--XpSp2 installation CD comes with it.

PHP 5.2.1-http://www.php.net/downloads.php

MySQL-5.0.37-http://dev.mysql.com/downloads

Zend Optimizer 3.2.6-http://www.zend.com/store/products/zend-optimizer.php

PhpMyAdmin-2.10.0.2-- http://sourceforge.net/projects/phpmyadmin

Serious note: Windows XP should not install IIS, PHP, APACHE, MYSQL, ZEND before doing the following.

Installation ≡ for ≡ IIS5.1

Start-Control Panel-add or remove programs, add and remove Windows components-check Internet Information Services in the Windows component wizard, press next, and insert the XP CD. After installation, open the control panel-Administrative tools-Internet Information Services, open the local computer on the left side of IIS-website-default website, right-click on IISHelp-browse, if the IIS5.1 document (help) appears in the right window, the installation is successful.

At this point, you can also open IE, in the IE, enter http://localhost or http://127.0.0.1 or http://+ your computer name or http://+ you set for the network card IP to access, also open the IIS help document.

Open C:\ inetpub\ wwwroot, delete all the files inside, and put the website's programs in this directory.

Open the default website-right-click Properties-document, and add the default document name index.php

Installation ≡ for ≡ PHP 5.2.1

Download php-5.2.1-Win32.zip from its official site and extract it (do not download and use its Installer here, which is automated and intelligent, but it has many limitations because it is not recommended. )

Extract the PHP file to a directory with the address "D:\ web\ php".

Copy the php.ini-dist under the PHP directory (D:\ web\ php) to the windows directory and rename it php.ini.

Open php.ini, look for "extension_dir" in notepad, change extension_dir = ". /" to extension_dir = "D:\ web\ php\ ext", look for extension=php_mbstring.dll, extension=php_mysql.dll, and extension=php_gd2.dll, and then remove the previous ";".

Copy php5ts.dll and libmysql.dll to C:\ WINDOWS\ system32.

Next, set up in IIS, open the default Web site-> Properties dialog box, switch to the "Home Directory" tab, click the "configure" button to open the "Application configuration dialog box", and click the "add" button to open the "add / Edit Application extension Mapping" dialog box. In the "executable file" input box, point to D:\ web\ php\ php5isapi.dll, enter ".php" in the "extension" input box (note: add "." under windows XP), and select the "script engine" and "check file existence" check boxes to determine and exit IIS all the way.

Create a new phpinfo.php document in the C:\ inetpub\ wwwroot directory, which reads as follows: then enter: http://localhost/phpinfo.php in IE to view it. When PHP is running normally, you can see the relevant information of native PHP.

Installation ≡ for ≡ MySQL 5.0.37

Open my computer, go to D:\ web, and create a new folder under it called mysql.

Download http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.37-win32.zip/from/pickr from its official site and execute it.

Press Next, and then select Custom installation method.

Click Change to change the installation path to "D:\ web\ mysql".

When the progress bar load is installed, there will be a Sign Up wizard. Don't worry about it here, select the bottom Skip Sign-Up, and then Next, there is a "Configure the MySQL Server now" ticked on it, don't remove it, go straight to Finish.

Now start installing the final configuration, click Next, select Detailed Configuration, and then select the second Server Machine.

Then Next, select Non-Transactional Database Only.

Then Next, select Manual Setting, and select 200 to 300 connections, which is not important here because it is a native test.

Then Next, is to set its port, the default is 3306, do not touch it.

Then Next, select Manual Selected Default Character Set / Collation, and select gbk in the Character Set below.

Next again, tick before Include Bin Directory in Windows PATH.

Then Next, cancel the check before Modify Security Settings, because it is the local environment, non-server and virtual host.

Add Execute to the last Next, and you can see that all the above steps are complete.

The account number of MySQL is root, and the password is empty.

Check MySQL, Win + R of the keyboard, pop up the running dialog box, enter cmd and enter, enter at the command prompt, and then enter: "mysql-uroot-p". Enter the password after entering, because the password is empty, you can press enter directly. You can now see the following tips for success:

Welcome to the MySQL monitor. Commands end with; or\ g.

Your MySQL connection id is 1 to server version:5.0.37-community-nt

Type 'help;' or'\ h' for help. Type'\ c'to clear the buffer.

Indicates that all installations are successful.

The operator becomes "mysql >". Type exit to exit.

Installation ≡ for ≡ Zend Optimizer 3.2.6

Open my computer, go to D:\ local, and create a new folder under it called zend.

Go to its official site http://www.zend.com/free_download/download to download ZendOptimizer-3.2.6-Windows-i386.exe and execute it. It's a little annoying to register before you can download it.

Press Next, go to the path selection, click Browse, default is "C:\ Program Files\ Zend\ ZendOptimizer-3.2.6", and change it to "D:\ web\ zend".

After pressing Next, what you can see is the choice of the server. Select item 1, IIS, and click Next directly.

The next one-way point, Next, is fully connected to the default settings, and then Install,Zend will add information to php.ini by default.

The Zend installation is complete.

Installation ≡ for ≡ phpMyAdmin2.10.0.2

Download phpMyAdmin-2.10.0.2-all-languages.zip from its official site http://sourceforge.net/projects/phpmyadmin and extract it, change the directory name to phpmyadmin, and move to "C:\ inetpub\ wwwroot".

Edit: config.default.php under libraries.

Find:

$cfg ['Servers'] [$I] [' auth_type'] = 'config'; / / Authentication method (config, http or cookie based)?

$cfg ['Servers'] [$I] [' user'] = 'root'; / / MySQL user

$cfg ['Servers'] [$I] [' password'] =''; / / MySQL password (only needed

/ / with 'config' auth_type)

$cfg ['Servers'] [$I] [' nopassword'] = FALSE; / / Whether to try to connect without password

$cfg ['Servers'] [$I] [' only_db'] =''; / / If set to a db-name, only

/ / this db is displayed in left frame

/ / It may also be an array of db-names, where sorting order is relevant.

Because it is a local test environment, the default value does not need to be changed.

Find:

$cfg ['DefaultLang'] =' en-iso-8859-1'

Replace:

$cfg ['DefaultLang'] =' gb2312'

Find:

$cfg ['DefaultCharset'] =' iso-8859-1'

Replace:

$cfg ['DefaultCharset'] =' gb2312'

Setup complete. Now open IE and type: "http://localhost/phpmyadmin", you can do the relevant operation."

≡ other instructions ≡

The account number of MySQL is: root. If you have no password, it will be empty. The database can be created at will.

If the installation of IIS fails, it is generally due to the IIS account password out of sync, and check whether the relevant services are disabled, as long as you can return to normal through patient correction, here is not too much description, my site placed a correction method. Web page storage directory: d:\ inetpub\ wwwroot

To keep the directory clean, you can also move the phpmyadmin directory to D:\ web\ phpmyadmin, and then create a virtual directory for phpmyadmin in IIS.

Open phpmyadmin if there is a line of garbled code, generally due to the mysql is not running properly, although the test MySQL shows that it has been normal, but not connected to the mysql in the php, with the probe program will find that it does not work properly, then need to reinstall mysql, the specific reason, I do not know.

To keep the wwwroot directory clean, move the phpmyadmin directory to D:\ web and create a new virtual directory for phpmyadmin in IIS.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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