edit-icon download-icon

How to configure IIS + MySQL + PHP + Zend on Windows 2003

Last Updated: Mar 06, 2018

Contents:

Download Windows 2003 Zend, PHP, phpMyAdmin, and MySQL

The Windows 2003 installation package contains Zend, PHP 5.2.17, PHPWind 8.7 and phpMyAdmin 3.5.2. You can directly download the installation package to save the resource searching time.

However, because the size of the MySQL installation package exceeds the upload restrictions, you must go to the MySQL official website to download the installation package, and then decompress the package to drive D.

Install and configure Windows IIS+FTP

  1. Click Start > Control Panel > Add or Remove Programs.
  2. Click Add/Remove Windows Components.
  3. Select Application Server, and click Details.
  4. Select Internet Information Service (IIS), and click Details.
  5. Select FTP Service, and click OK.
  6. Click Browse, and select C:\Win2003sys\disc1\I386.
  7. Click Open. IIS installation starts. If your computer runs 64-bit Windows 2003, the files are located in the C:/Win2003sys/disc1/AMD64 directory. Now, the IIS and FTP installation is complete.

Install and configure Windows IIS+PHP

  1. Cut libeay32.dll, libmcrypt.dll, libmysql.dll, and ssleay32.dll from drive D, and paste them to the C:\Windows\system32 directory. Cut the PHP configuration file, and paste it to the C:\Windows directory.
  2. Right-click My Computer, and select Manage.
  3. Click Internet Information Service (IIS) > Web Service Extension in the navigation bar.
  4. Right-click in the right pane, and select Add a new web service extension.
  5. In the displayed window, enter “PHP” in the text box, and click Add.
  6. In the displayed window, click Browse, select D:\websoft\php-5.2.17\php5isapi.dll, and click OK.
  7. Select the check box Set extension status to Allowed, and click OK. As a result of the settings, “php” is added for Web service extension under Computer Management in the navigation bar.
  8. Right-click Website in the navigation bar, and select Properties.
  9. On the Home Directory tab, click Configuration.
  10. Click Add.
  11. Click Browse, and select the D:\websoft\php-5.2.17\php5isapi.dll directory. Enter the extension .php, and click OK.
  12. On the Documents tab, click Add. In the displayed window, enter index.php in the text box, and click OK.
  13. On the Documents tab, click Add. In the displayed window, enter index.html in the text box, click OK, and click Apply.
  14. Click Select All > OK.
  15. Click Apply > OK.

Now, IIS and PHP configuration is complete.

Install and configure Windows MySQL

Install MySQL

  1. Go to the file path “D:\websoft\” and double-click “mysql-essential-5.1.63-win32.msi”.
  2. After the installation is complete, click Custom > Next.
  3. In the list, click MYSQL Server.
  4. Click Change, and switch the installation path from drive C to “D:\websoft\mysql-5.1” (select the path as required). Click OK to confirm the path.
  5. In the list, click MYSQL Server Datafiles.
  6. Click Change, and switch the installation path from drive C to “D:\websoft\mysql-5.1” (select the path as required). Click OK to confirm the path.
  7. Click Next to continue MySQL installation.
  8. Click Finish to complete MySQL installation.

Configure MySQL

  1. In the window that is displayed in the preceding step, select Detailed Configuration, and click Next.
  2. Select Multifunctional Database, and click Next.
  3. Click Next.
  4. Select Manual Setting, and set “Concurrent Connections” to 1400.
  5. Select Enable TCP/IP Networking, and set “Port Number” to 3306. Select Enable Strict Mode, and click Next.
  6. Select Standard Character Set, and click Next.
  7. Select Install As Windows Service, and click Next.
  8. Select Modify Security Settings, and set your MySQL root password. Properly keep and do not forget your password. Click Next.
  9. Click Execute. After the four MySQL configuration progresses are complete, click Finish.

Install Windows Zend

If no Zend-encrypted program is installed in your computer, you do not need to install Zend. Otherwise, you must install Zend to prevent program running failure.

  1. Go to the file path “D:\websoft\” and double-click “ZendOptimizer-3.3.3-Windows-i386.exe”. Select the installation path again, and retain the default options for other settings. Click Next.
  2. Select I agree the terms of the license agreement, and click Next.
  3. Select the Zend installation directory, such as “D:\websoft\Zend” in this example. Click Next.
  4. Select IIS, and click Next.
  5. Install php.ini in the “C:\Windows” directory, and click Next.
  6. Click Next.
  7. Click Install.
  8. Click Yes.
  9. After Zend is installed, click Finish to complete the installation wizard.

Configure Windows FTP

You can find many types of FTP server software available on the market, including the authorized software such as Serv-U and Xlight, free software, and built-in software. Here we take the FTP software of Windows operating system as an example to show how to configure FTP.

Configure FTP

  1. Right click My Computer > Management.
  2. Click Local Users and Groups > Users in the navigation bar. Right-click the right pane, and select New User.
  3. Enter the User name and Password of FTP.
  4. Click Internet Information Service (IIS) Manager in the navigation tree, right-click FTP Site, and select New > FTP Site.
  5. Click Next.
  6. Enter the description, such as “pwftp” in this example.
  7. Set the IP address and port of FTP, and click Next.
  8. Select Do not isolate users, and click Next.
  9. Set the directory path, such as “D:\websoft\www” in this example.
  10. Select Read and Write for “FTP Site Access Permissions”, and click Next.
  11. Click Finish to enter the site creation wizard.

Set FTP permissions

  1. Go to the “D:\websoft” directory (or the main directory of your FTP site), right-click the www folder, and select Properties.
  2. On the Security tab, select Users (the user can be anyone logging on to the computer, including yourself). Select corresponding permissions in the Allow and Deny columns.
  3. Select Full Control, and click Advanced.
  4. Select all the check box if you are granting an advanced permission, and click Apply.
  5. Wait for the system to run the program.

Set PWFTP account permissions

  1. Right-click the WWW folder, and select Properties. In the displayed window, click Safety > Add.
  2. Select Object Types and Locations, enter the object name pwftp, and click OK.
  3. Select corresponding permissions in the Allow and Deny columns.
  4. Select Full Control, and click Advanced.
  5. Other settings are the same as those for “Users”. Select permissions in Advanced. Click Yes > Apply > OK.

Now, Windows FTP configuration is complete.

Configure a Windows IIS site

  1. Right-click My Computer, and select Management.
  2. Click Internet Information Service (IIS) > Website in the navigation bar, right-click Default FTP Site, and select Properties.
  3. On the Home Directory tab, click Browse. Switch from drive C to the specified path, such as “D:\websoft\www\phpwind” in this example.
  4. Click Apply > OK.
  5. Restart IIS or the server. You can access your website by using https://localhost.

Note: If your computer runs 64-bit Windows 2003, and the error message “%1 is not a valid Win32 application“ is prompt when you access https://localhost, perform the following settings:

  1. Click Start > Run, enter cmd, and click OK.
  2. Enter cscript %SYSTEMDRIVE%/inetpub/adminscripts/adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1.
Thank you! We've received your feedback.