Set up PHPWind product environment under Win2003server
Preparation before installation: 1. Install iis6
2. Download the corresponding software for the PHP environment
Recommended configuration: php-5.2.6-Win32.zip
mysql-5.0.18-win32.zip
ZendOptimizer-3.3.3-Windows-i386.exe
Mysql download address
http://download.mysql.cn/download_file/zip/5.0/mysql-5.0.18-win32.zip
php download address:
http://cn2.php.net/distributions/php-5.2.6-Win32.zip
Zend download address:
http://downloads.phpchina.com/zend/optimizer/3.3.3/ZendOptimizer-3.3.3-Windows-i386.exe
The first step, install php
Unzip php-5.2.6-Win32.zip to php-5.2.6-Win32, then replace php-5.2.6-Win32 with php, and copy it to E drive (optional)
Rename php.ini-dist under E:/php/ to php.ini, open php.ini,
Search for ext and change ext = "./" to extension_dir = "E:phpext"
Put the following extended functions into
;extension=php_gd2.dll
;extension=php_mbstring.dll
;extension=php_mysql.dll
Remove the previous; comment,
Then copy php.ini to the c:/windows directory
Step 2: Load the php extension under iis6
Open the IIS manager, click web service extension--Add a new web service extension with the extension name php. Where the required file is, add a file with the file path E:phpphp5isapi.dll, and set the extension status. Check where to allow,
As shown below
Right click on the website--Properties, as shown below:
Add a new filter in the ISAPI filter, name: php, the executable file is still the above E:phpphp5isapi.dll
In the home directory, under execution permissions, change to scripts and executable files, and click Configure, as shown in the figure below:
Then click <Configuration> to add php application extension mapping
Finally click OK.
Configure default site
First create the wwwroot directory on the E drive
Right click on default site --->
Click <Properties>
Change the local path to the E:wwwroot directory
Change execution permissions to scripts and executable files
Next click on the <Document> tab
The third step is to install mysql-5.0.18-win32.zip, download it to the server desktop and decompress it.
Click the mysql installation program setup.exe, select (custom)--install mysql in the E:/mysql directory, and install it as shown below
Click finish to complete the installation of mysql
After the installation is complete,
We need to copy libmySQL.dll in the mysql installation directory bin to the C:/windows directory (important)
The fourth step is to install zend, double-click to execute ZendOptimizer-3.3.3-Windows-i386.exe
Install Zend on drive E,
Select iis6.0 as web server,
Change the directory of server root to E:wwwroot
Then all is the next step, please refer to the following screenshots for details
The installer will then restart iis and the installation will be completed.
Step 5: At this point, the configuration of PHP under IIS is completed. In your website directory/wwwroot, create a new content as
<?php phpinfo(); ?> phpinfo.php,
On the server side, visit http://localhost/phpinfo.php to see if the configuration is successful.
See if you can see the familiar PHP page. If you see it, it means the PHP configuration is successful.
The following is a screenshot of the successful php configuration parameters, mainly for viewing (php Zend mysql gd library)