Many friends are embarrassed by the PHP environment and cannot configure it correctly after many attempts. In fact, configuring the PHP environment is not difficult. It will be very easy if you master the essentials. For beginner users and friends who want to simply configure the PHP environment, I provide a method and PHP environment. The file will allow you to easily have a high-performance PHP environment, and you can also use the virtual host management system!
Installation: First you must confirm that IIS has been installed in the system
System recommendation: win2003 server version, win2000 professional version and xp system do not support multi-user IIS
The virtual host management system cannot be managed. There are problems with IIS in the XP system and the debugging program often appears abnormal.
For friends who make websites and often debug textbooks, it is recommended to use the win2003 server version to configure the system and play games. Both systems are very good. Some friends said that many functions of the win2003 system are turned off and the interface is not as good as XP. No. It is suitable for personal use. In fact, this thing only requires you to make a few changes and turn on the things that are closed by default, and it will be a very good system for personal computers (for the optimization setting method of win2003 system, please see: http://www.ie2004.net/ jok/index1.htm )
installation instructions:
Note: Both php and mysql are installed on the D drive. Friends who own servers also recommend that the approximate installation path is as follows:
D: drive-----serv-u (only for server users, local debugging is exempted)
mail (only for server users, local debugging is free)
php
mysql
EfangVHost4.1 (Eifang virtual host management system 4.1)
E: disk-----www (IIS user directory, stores IIS user data or local debugging data)
1. PHP_setup.exe is installed into the PHP directory on drive D. It is completely installed and configured automatically. No manual configuration is required, which solves the problem that novice users cannot set up PHP.INI. After the file is installed, IIS will be automatically configured and there is no need to manually change it.
2. Copy the mysql-4.0.24-win folder to the D drive, rename the folder to mysql,
use mysqladmin, and change the default password.
Of course, you can also leave the password blank and enter the command prompt: Enter the mysqlbin folder on the D drive.
The initial management account of mysql is root. If there is no password, if you want to change the default account root password to: 123456
Then execute: mysqladmin -u root -p password 123456
The password does not need to be touched. The following 123456 is the changed password. After pressing Enter, you will be prompted to enter the password again. If you press Enter without changing it, the password will become 123456.
Execute: winmysqladmin.exe file in BIN in mysql to start MYSQL
You need to add a default password for the first time. This password is optional.
3. Install ZEND
The installation path is the default. When prompted for the WEB directory that needs to be accelerated, select your WEB directory. For example, if the WEB directory is in the WWW of drive E, select e:www. This process needs to be executed twice. You will be prompted whether you need to change PHP.INI in the system folder. , select Yes.
4. Install the virtual host management system:
The default installation path is the D drive. After installation, the "Installation Service.bat" file in the execution folder starts the Yifang host management system.
Run http://127.0.0.1:9999 in the browser to log in to the management system. The default username and password are both admin.
For instructions on using the host management system, please download it from the official software www.efang.com.cn
Problem explanation:
1. How to make the system support PHP tutorial: Execute the PHP installation during installation and the system will automatically support it.
2. Connection between MYSQL and the host management system: Start MYSQL. Install the virtual host management system to the D drive and execute: The "Installation Service.bat" file in the EfangVHost4.1 folder on the D drive starts the Efang host management system.
Run http://127.0.0.1:9999 in the browser to log in to the management system. The default username and password are both admin.
After entering, select "System Configuration" - "Install and Setup MySQL"
The first time you run it you need to install "Install ODBC_3.51.11 driver (MySQL)"
Then fill in the host address: this address does not need to be changed by default (localhost), MYSQL user name: root,
Password: (This password is the password changed in step 2 of the installation above. If it has not been changed, the password will be empty).
If the connection to MYSQL is successful, there will be a success prompt.
3. The host management system opens a space that supports MYSQL and PHP:
Select "Host Type", fill in the number: ht01, and set the corresponding parameters, where "Site Directory" fills in "e:www"
Choice: Support MySQL
Then select "Create Site" and select the host type as: ht01
Administrator account and password are optional. Then click "Create Site" and after success click: "Manage Now"
Select "Create MYSQL Database" in "Database Settings"
Then this space has been opened and already supports PHP and MYSQL. If it is local debugging, you need to enter the "IIS Settings" in this space and fill in the local debugging IP in the IP of the host header, for example: 127.0.0.1
After the setting is completed, enter the browser input: 127.0.0.1 to display the successful site activation screen.
4. The win2003 system cannot be debugged locally:
Open IIS, select: "WEB Service Extensions", and set "Active Server Pages" to "Allow"
Just change the "Predefined Account" in the "Identity" of the default pool "DefaultAppPool" in the "Application Pool" to "Network Service".
5. There is a problem with my PHP textbook debugging. What should I do if I want to delete the MYSQL library and re-debug it?
It's very simple. Enter the data directory of the mysql folder and delete the files in the folder that was automatically created in the virtual host management system. Of course, you can also delete and re-create the database created by MYSQL in the virtual host management system.
Related file download: http://www.ie2004.net/down/php/default.htm
Note: The download address is a Netcom line, and the speed for telecom users will be slow. In addition, the host has an anti-leeching system, so please do not connect to download.