Home > Article > Backend Development > IIS6.0+PHP5.x+MySQL5.x+Zend3.0x+GD+phpMyAdmin2.8x common installation example (completed_PHP tutorial
It took a few minutes of recording and adjustment to complete the universal installation example of IIS6.0+PHP5.x+MySQL5.x+Zend3.0x+GD+phpMyAdmin2.8x
Friends in need can download it. See
/uploadfiles/file/iis.rar
Description:
IIS6.0+PHP5.x+MySQL5.x+Zend5.0x+GD+phpMyAdmin2.8x universal installation example
It is recommended to look at the video file in the attachment, it is more intuitive
In order to make the tutorial video not too big, the steps have been written before doing the video tutorial, so there is no need to enter text during the recording process
1. Download Required software
It is recommended that all software be downloaded from the official website to prevent the software package from being appended or modified.
1.PHP
Use PHP5.x version:
http://cn.php.net /get/php-5.1.2-Win32.zip/from/a/mirror
Download the required version as long as ■php-5.1.2■-Win32.zip in the URL
For example, to download php5.1.4 Just change the URL to:
http://cn.php.net/get/php-5.1.4-Win32.zip/from/a/mirror
To download php5.1.6, just change the URL to:
http://cn.php.net/get/php-5.1.6-Win32.zip/from/a/mirror
Earlier versions can also be downloaded using the same method without going to other websites. Download software
2.MySQL
The examples use MySQL5.x or above
Download address:
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, it requires registered users to log in and select Windows x86 Platform version
After all, they provide software with such powerful functions. Registering one is considered to support software development
4.phpMyAdmin
Choose the latest version, the official website
http://www.phpmyadmin.net/ home_page/index.php
5.GD library
The GD library file is included in the PHP compressed package
When configuring php.ini, remove the previous;, that is: enable
The above is the description text and software download address. It is necessary to read it
2. Install IIS (i.e. Internet Information Manager)
If your server has already installed IIS, these steps can be omitted. If If IIS is not installed, you can refer to this tutorial to configure it accordingly
http://bbs.netdoc.com.cn/viewthread.php?tid=18
3. Install and configure the PHP running environment
1. Unzip php-5.1.x-Win32.zip compressed package ( :php
You can also use irregular directory names, such as:
c:abcdefe
d:abcdefe
But try not to use special characters. This example uses d:php
2. Edit
Rename the php.ini-dist file in the directory to php.ini
Open php.ini with text editing software and make corresponding modifications
Use the search function
■Search
register_globals = Off
off changed to on
■ Search
extension_dir =
changed to
extension_dir ="d:phpext" (the "d:phpext" directory here is under the PHP installation directory ext If your PHP is installed under c:php, then it should be written as extension_dir ="c:phpext")
■Search for
;upload_tmp_dir =
Change to
upload_tmp_dir =d:phpupload_tmp (here The upload_tmp directory is created by yourself. There is no such folder by default. Try to "do not use" special characters)
■Search for
Windows Extensions
Remove the ; in front of some common functions, that is, 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
There will be detailed function description of the module later
■Search
;session.save_path = "/tmp"
Change to
session.save_path = "d: phptmp" (the tmp directory here is created by yourself, there is no such folder by default, try not to use special characters)
3. Copy
■Copy php.ini to %windir%
(%windir% refers to the installation directory of Windows. If your system is installed on the c drive and it is a Server 2003 system, then %windir% refers to c:windows. If the system is installed on the d drive and the system is Windows server2000, then% windir% refers to: c:winnt. The operating system used by the example is Server 2003 and is installed on the c drive, so copy php.ini to c:windows)
■ Copy all dll files in the php installation directory ( Refers to the root directory file, "does not include" the dll file in the ext folder) to %windir%system32 (the instructions are the same as above, the example uses c:windowssystem32)
■■■The above copying steps can be done using a batch file Execution, easy and fast to use
copy php.ini %windir% /y
copy *.dll %windir%system32 /y
md tmp /y
md upload_tmp /y
Put the above Copy the command to Notepad and save it, and change the file name to copy.bat. Double-click to automatically execute the copying steps
It seems that the directory is not automatically created. Try it again. Haha, haha, you have to execute it separately. Forget it, you should create those two directories manually. I used that method because I was looking for a simple method.
Explanation :
copy php.ini %windir% /y Copy php.ini to c:windows /y means if the file exists, the original file will be overwritten
copy *.dll %windir%system32 /y Copy d:php All files with extension dll to c:windowssystem32 /y means if the file exists, overwrite the original file
md tmp /y Create a folder tmp /y means if the file exists, overwrite the original directory
md upload_tmp /y Create the folder upload_tmp /y means if the file exists, overwrite the original directory
3. Configure
Configure IIS to support PHP:
■ Expand the IIS directory tree
Right-click "Website" --Select "Properties" ---Select "Home Directory" ---Select "Configuration" ---Select the "Application Mapping" option ----"Add" button to add an extension mapping in the pop-up window Click "Browse" to point the executable file to the location of php5isapi.dll. The example in this article is: D:phpphp5isapi.dll
The extension is .php. The action is limited to "GET, HEAD, POST, TRACE". Change the "Script" Engine" "Confirm whether the file exists" select
to see the operation
■ Right-click "WEB Server Extensions" and set ISAPI extension permission
There is also an ISAPI extension to be added here. I forgot it when I wrote the steps before, sorry
After the above operation is completed, you need to restart IIS before the PHP running environment can take effect
After the restart is completed, test whether PHP can run normally
Create a text file and save it as check.php
Content:
phpinfo();
?>
If the running information can be displayed normally, the PHP running environment has been configured
4. Install Zend 2.6x or 2.6x or above
The example uses ZendOptimizer-3.0.1 (after downloading, you will get: ZendOptimizer-3.0.1-Windows-i386.exe file, double-click to install)
Please see the installation steps, here my installation path is d:phpzend
(I like to install similar or similar software into the same directory. For example, I like to install zend into the directory of php (d:phpzend). I don’t know if there is anything wrong with it for the time being. Depending on personal preference or security, I can also Can be installed to other directories)
Zend will automatically configure php.ini to enable the zend module during the installation process. After installation, you can see that the php.ini file will finally write:
[Zend]
zend_extension_manager.optimizer_ts ="D:phpZendlibOptimizer-3.0.1"
zend_extension_ts="D:phpZendlibZendExtensionManager.dll"
I like to install similar software or similar software to the same directory, which is easier to manage. This is Set it up like this according to personal preference or security
5. Install the GD library
Remove the "; extension=php_gd2.dll" in php.ini. In fact, you have already removed the ";" before, so there is no need to do the same here. The operation is done
6. Install MYSQL
The installation is relatively simple, please watch the video operation
During the process, you will be asked to enter the root user password in MYSQL. Here I set the password to: 123456
7 . Install phpMyAdmin:
This example uses phpMyAdmin-2.8.1
The places to be modified are:
$cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin'; phpmyadmin's WEB access URL
$cfg['blowfish_secret'] = 'fsdfDF433%$^$%'; COOKIES encryption key, write it as you like, the more complex the better
$cfg['Servers'][$i]['auth_type' ] = 'cookie'; Authentication method (config, http, cookie) Choose cookie here, which is safer
$cfg['Servers'][$i]['user'] = '''; MySQL user
$ cfg['Servers'][$i]['password'] = ''; MySQL password
Use the search function and modify it as needed
This example has been completed and your server already supports PHP+ MySQL+Zend+GD+phpMyAdmin running environment, thank you for your appreciation!!!
This example can be freely reproduced, please indicate the source:
Net Doctor Online, answer all questions http://bbs.netdoc.com .cn
The example video is in the attachment
http://mindway.cn/archives/2006/08/307.html