Recording + adjustment took a few tips to complete IIS6.0 + PHP5.x + MySQL5.x + Zend3.0x + GD + phpMyAdmin2.8x general-purpose installation instance
If you need it, download it.
/Uploadfiles/file/iis.rar
Note:
IIS6.0 + PHP5.x + MySQL5.x + Zend5.0x + GD + phpMyAdmin2.8x general-purpose installation instance
It is recommended that you view the video files in the attachment, which is intuitive.
For the tutorial, the video screen is not too large. You have already completed the steps before the video tutorial, so you do not need to input text during the recording process.
1. Download Required Software
We recommend that you download all software from the official website to prevent software packages from being attached or modified.
1. PHP
PHP5.x:
Http://cn.php.net/get/php-5.1.2-Win32.zip/from/a/mirror
Download only the php-5.1.22.16-win32.zip file in the network.
For example, to download php5.1.4, you only need to change the URL:
Http://cn.php.net/get/php-5.1.4-Win32.zip/from/a/mirror
To download php5.1.6, you only need to change the URL:
Http://cn.php.net/get/php-5.1.6-Win32.zip/from/a/mirror
Earlier versions can also be downloaded in the same way, without the need to download software from other websites
2. MySQL
All instances use MySQL5.x or above.
:
Http://downloads.mysql.com/archives.php
3. Zend Optimizer
Zend Optimizer (3.0.1 ):
Http://www.zend.com/store/free_download.php? Pid = 13
Although Zend software is free to download, You need to register a user to log on and select the Platform version for Windows x86.
After all, registering a software that provides such powerful functions can be regarded as supporting software development.
4. phpMyAdmin
Select the latest version, official website
Http://www.phpmyadmin.net/home_page/index.php
5. GD library
The PHP package contains the GD library file.
Remove the previous one When configuring php. ini, that is, enable
The above is the explanatory text and software. It is necessary to take a look.
2. Install IIS (Internet Information Manager)
If your server has already installed IIS, skip these steps. If you have not installed IIS, see this tutorial to configure it.
Http://bbs.netdoc.com.cn/viewthread.php? Tid = 18
3. install and configure the PHP Runtime Environment
1.decompress php-5.1.x-win32.zip compressed package (X is the PHP version number) to the required directory, this instance uses PHP version: php-5.1.6
For example
C: \ php
D: \ php
You can also use irregular directory names, such:
C: \ abcdefe
D: \ abcdefe
However, try to "do not use" special characters. In this example, d: \ php is used.
2. Edit
Rename the php. ini-dist file in the directory to php. ini.
Use the text editing software to open php. ini and modify it accordingly.
Use the search function
■ Search
Register_globals = Off
Switch off to on
■ Search
Extension_dir =
Change
Extension_dir = "d: \ php \ ext" (here, the "d: \ php \ ext" directory is the PHP installation directory. If you install ext in PHP under c: \ php, so here we need to write extension_dir = "c: \ php \ ext ")
■ Search
; Upload_tmp_dir =
Change
Upload_tmp_dir = d: \ php \ upload_tmp)
■ Search
Windows Extensions
Remove some common functions to enable the corresponding module functions.
Here I enable the corresponding module
Extension = php_mbstring.dll
Extension = php_curl.dll
Extension = php_dbase.dll
Extension = php_gd2.dll
Extension = php_ldap.dll
Extension = php_mysql.dll
Detailed functions of the module will be provided later
■ Search
; Session. save_path = "/tmp"
Change
Session. save_path = "d: \ php \ tmp)
3. Copy
■ Copy php. ini to % windir %
(% Windir % refers to the Windows installation directory. If your system is installed on drive c and is on Server 2003, % windir % refers to c: \ windows, if the system is installed on disk D and the system is Windws server2000, % windir % indicates c: \ winnt. The operating system used by the instance is Server 2003 and is attached to disk c. ini to c: \ windows)
■ Copy all dll files in the php installation directory (the root directory file, "does not contain" dll files in the ext folder) to % windir % \ system32 (same as above, the instance uses c: \ windows \ system32)
■ The above copy steps can be executed using batch files, which is convenient and quick
Copy php. ini % windir %/y
Copy *. dll % windir % \ system32/y
Md tmp/y
Md upload_tmp/y
Copy the above command to notepad and save it. Change the file name to copy. bat and double-click it to automatically perform the copy step.
It seems that the directory has not been automatically created. Let's try again. Haha, it's dizzy. You have to execute the directory separately. Forget it. Let's create the two directories manually. I just need to find a simple method to use that method.
Explanation:
Copy php. ini % windir %/y copy php. ini to c: \ windows/y indicates that if the file exists, the original file will be overwritten.
Copy *. dll % windir % \ system32/y copy all dll files under d: \ php to c: \ windows \ system32/y. If the file exists, it overwrites the original file.
Md tmp/y: Create a folder tmp/y. If the file exists, it overwrites the original directory.
Md upload_tmp/y create folder upload_tmp/y indicates that if the file exists, it overwrites the original directory
3. Configuration
Configure IIS to support PHP:
■ Expand the IIS directory tree
Right-click "website"> "properties"> "main directory"> "configuration"> "application ing"> "add" to add an extension ing, in the displayed window, click browse to point the executable file to php5isapi. dll location. The example in this article is: D: \ php \ php5isapi. dll
The extension is. php, and the action is limited to "GET, HEAD, POST, TRACE". Select "Script Engine" and "check whether the file exists ".
View operations
■ Right-click "WEB Server Extension" to set ISAPI extension Permissions
Here we need to add an ISAPI extension. I forgot to write the step before. Sorry.
After completing the preceding operations, you must restart IIS before the PHP runtime environment takes effect.
After the restart is complete, test whether PHP can run normally.
Create a text file and save it as check. php
Content:
<? Php
Phpinfo ();
?>
If the running information is displayed normally, the PHP runtime environment has been configured.
4. Install Zend 2.6x or later
Instance uses ZendOptimizer-3.0.1 (get after download: ZendOptimizer-3.0.1-Windows-i386.exe file, double-click Install)
For installation steps, see the operation. Here, the installation path is d: \ php \ zend.
(I like to install similar or similar software in the same directory. For example, I like to install zend to the php Directory (d: \ php \ zend ), I do not know if there is anything wrong at the moment. You can install it in other directories based on your preferences or security)
Zend will automatically configure php. ini to enable zend module during the installation process. After installation, you can see that the php. ini file will be written:
[Zend]
Zend_extension_manager.optimizer_ts = "D: \ php \ Zend \ lib \ Optimizer-3.0.1"
Zend_extension_ts = "D: \ php \ Zend \ lib \ ZendExtensionManager. dll"
I like to install similar software or similar software in the same directory, so it is better to manage it. This is based on personal preferences or security.
5. Install the GD library
Remove from php. ini; extension = php_gd2.dll; you can simply remove the previous one. You don't need to perform the same operation here.
6. Install MYSQL
Installation is relatively simple. Please check the screen
In the process, enter the root user password in MYSQL. Here I set the password to 123456.
7. Install phpMyAdmin:
This instance uses phpMyAdmin-2.8.1
To be modified:
$ Cfg ['pmaabsoluteuri '] = 'HTTP: // localhost/phpmyadmin'; phpmyadmin WEB access URL
$ Cfg ['blowfish _ secret '] = 'fsdfdf433% $ ^ $ %'; COOKIES are encrypted keys. Write them as you like. The more complicated the better.
$ Cfg ['servers'] [$ I] ['auth _ type'] = 'cookies'; the cookie is used for authentication (config, http, and cookie), which is more secure.
$ Cfg ['servers'] [$ I] ['user'] = ''; MySQL user
$ Cfg ['servers'] [$ I] ['Password'] = ''; MySQL password
Use the search function and modify it as needed.
This instance has been completed. Your server supports the PHP + MySQL + Zend + GD + phpMyAdmin runtime environment. Thank you !!!
This instance can be freely reproduced. Please note the source:
Net medical online, have answer http://bbs.netdoc.com.cn
The instance video is in the attachment.
Http://mindway.cn/archives/2006/08/307.html