Windows Server 2003 IIS6.0+PHP5 (FastCGI) +MYSQL5 Environment Building Tutorial

Source: Internet
Author: User
Tags mysql version vc9 win32 dedicated server mysql command line






Prepare the article



First, environmental description:



Operating system: Windows Server 2003 SP2 32-bit



PHP Version: PHP 5.3.14



MySQL version: MySQL5.5.25



Second, related software download:



1. PHP:



Http://windows.php.net/downloads/releases/php-5.3.14-nts-Win32-VC9-x86.zip



2. MySQL:



Http://gd.tuwien.ac.at/db/mysql/Downloads/MySQLInstaller/mysql-installer-5.5.25.0.msi



3, IIS6.0 fastcgi module:



Http://download.microsoft.com/download/E/0/C/E0C0709A-66E5-4113-9A6C-A5F65BF6717D/fcgisetup_1.5_rtw_x86.msi



4, PHP acceleration software zendguard:



Http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-Windows.zip



5. Windows Image Processing components:



Http://download.microsoft.com/download/f/f/1/ff178bb1-da91-48ed-89e5-478a99387d4f/wic_x86_chs.exe



6. Microsoft. NET Framework 4 (Standalone installer):



Http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe



7. Microsoft Visual C + + 2010 Redistributable Package (x86):



Http://download.microsoft.com/download/5/B/C/5BC5DBB3-652D-4DCE-B14A-475AB85EEF6E/vcredist_x86.exe



Installation article



First, installation IIS6.0



Start-Settings-Control Panel-Add or Remove Programs



Double-click Add/Remove Windows components, select the check box in front of application server






Point more information






Make sure that Internet Information Services (IIS) is selected, point details






Make sure that Internet Information Services Manager is selected



Click OK






System operation and maintenance www.osyunwei.com warm reminder: qihang01 original Content © Copyright, reproduced please indicate the source and the original link






The dialog will pop up as shown in the installation process, click to browse






Open the I386 directory on the Windows Server 2003 SP2 installation CD, locate the appropriate file, click Open



(Note: The system installation CD or system image file must be prepared first.)






Click OK to continue the installation









Continue to open the I386 directory on the Windows Server 2003 SP2 installation CD, locate the appropriate file, click Open, then click OK to continue with the installation









Click Finish






Start-Settings-control Panel-Administrative Tools



Double-click Open Internet Information Services (IIS) to see the following interface






IIS6.0 Installation Complete



Second. Installing the Microsoft Visual C + + 2010 Redistributable Package (x86)



Double hit Open Vcredist_x86.exe









Select I have read and accept the license terms, click Install






is installing






Click Finish, installation is complete.



Third Installing the Windows Image Processing component



Double hit Open Wic_x86_chs.exe





Next





Select "I agree", Next, start the installation





Click Finish, installation is complete.



Fourth. installing the Microsoft. NET Framework 4 (Standalone installer)



Double-click Dotnetfx40_full_x86_x64.exe





Select I have read and accept the license terms, click Install





is installing





Click Finish, installation is complete.



Fifth. Installation of MySQL



Double hit Open mysql-installer-5.5.25.0





Select the first item installed MySQL products (install MySQL)





Select "I accept the License Terms" (I agree to the license terms), click Next





Check "Skip the check for update (not recommended)" (Skip checking for updates), click Next





Select Custom installation, installation path (installation path): D:\Program files\mysql



Next





Make sure that "MySQL Server 5.5.25" is selected, click Next (Other components can choose to install)



All selected here to install all components





Next





Execute (EXECUTE)





Next





Next





Developer Machine (Development server)



Server machine (normal server)



Dedicated machine (dedicated server)



Select the second item here: Server machine (normal server)



Click Next





Tick "Enable TCP/IP Networking" (Turn on TCP network port)



Port number (ports): 3306



Tick "Create Windows Service" (Creating Windows System Services)



Windows Server name (Windows service name): MySQL55



MySQL Root Password: enter password



Repeat Password: Enter password repeatedly



After setting up, click Next





Next





Next





Dot Finish (complete)





Close this window





Open MySQL Installation path



D:\Program Files\mysql\mysql Server 5.5



Copy My-huge.ini to My.ini



Backup My-huge.ini to My-huge.ini_bak





Start-Program-mysql-mysql Server 5.5-mysql Command line Client





Enter the MySQL root account password at the time of installation, enter





Login is successful, MySQL installation is complete.



Vi. Installation of PHP



Unzip the Php-5.3.14-nts-win32-vc9-x86.zip file







Rename the folder to PHP, copy the PHP folder to the D packing directory





Open D:\php



Copy Php.ini-development to PHP.ini



Open php.ini with Notepad



Make the following changes:



Extension_dir = "D:\PHP\ext" #设置php模块路径



Date.timezone = PRC #设置时区为中国时区



Register_globals = on #开启GET数据调用



Short_open_tag = on #php支持短标签



Cgi.force_redirect = 0 #开启以CGI方式运行php



Fastcgi.impersonate = 1;



Cgi.rfc2616_headers = 1



The following PHP extension module, select on as required, cancel the preceding semicolon to start the corresponding extension module



Extension=php_curl.dll



Extension=php_gd2.dll



Extension=php_ldap.dll



Extension=php_mbstring.dll



Extension=php_exif.dll



Extension=php_mysql.dll



Extension=php_mysqli.dll



Extension=php_sockets.dll



Extension=php_xmlrpc.dll



Extension=php_pdo_mysql.dll











After all modifications are complete, save exit.



Vii. installation of IIS6.0 fastcgi module



Double hit Open Fcgisetup_1.5_rtw_x86.msi





Next





Tick "I accept the terms inthe license Agreement" (I agree to the terms in the license agreement), Next





Install (Installation)





Finish (Installation complete)



Viii. Configuring IIS to support PHP



Start-Settings-control Panel-Administrative Tools, open Internet Information Services (IIS) Manager



Click the + sign in front of "local computer" to find "website", right-click Property



Switch to the home directory, click the configuration below





System operation and maintenance www.osyunwei.com warm reminder: qihang01 original Content © Copyright, reproduced please indicate the source and the original link





Click the Add button under "Cache ISAPI Extensions"



Executable file: C:\WINDOWS\system32\inetsrv\fcgiext.dll



Extension:. php



Action, limited to: Get,head,post,trace



Check:



Scripting engine



Verify that the file exists



The previous check box



Finally, determine





Open C:\WINDOWS\system32\inetsrv\fcgiext.ini file with Notepad



Add the following code on the last line



[Types]



php = PHP



[PHP]



Exepath=d:\php\php-cgi.exe



Finally, save the exit





Nine, configure PHP support Zendguard



Decompression Zendguardloader-php-5.3-windows.zip





Open D:\soft\ZendGuardLoader-php-5.3-Windows\ZendGuardLoader-php-5.3-Windows\php-5.3.x



Copy the ZendLoader.dll file into the D:\php\ext directory





Open D:\php\php.ini with Notepad



Add the following code on the last line



[Zendguardloader]



Zend_loader.enable=1



Zend_loader.disable_licensing=1



Zend_loader.obfuscation_level_support=3



Zend_loader.license_path=



zend_extension= "D:\php\ext\ZendLoader.dll"



Finally, save the exit





Test article



New Site Directory D:\wwwroot\vhost\user001 create a index.php add the following code



<?php



Phpinfo ();



?>



Finally, save the exit







Remove Internet Information Services (IIS) Manager, which is the default Web site





Web site-Right-click Properties, switch to home directory, tick "read", Execute Permissions "pure script"





Then click "Configure", Switch to "options" screen, check "Enable parent path" OK





Then, in the switch to document, add index.php





Switch to the Services option



Tick HTTP compression below:



Compress application Files



Compress static files



The previous check box



Finally, the application is determined.





Open Web Service Extensions in IIS



Add a new Web service extension



Extension: IIS Temporary compressed



File path: C:\WINDOWS\system32\inetsrv\ gzip.dll



Tick the checkbox in front of "set extended status to allow"



Finally, determine







Start-Settings-control Panel-Administrative Tools-Computer Management



System Tools-Local Users and groups-users



Right-click New user



User name: iuser_user001



Full Name: iuser_user001



Description: Virtual Host user user001



Password: Enter the password (please keep in mind that it will be used later)



Confirm Password: Enter password again



Check:



User Cannot change password



Password does not expire



After Setup is complete, click Create





Finally, close the interface





Right-click the user you just created, switch to the attribute



Remove users



Add Guest







System operation and maintenance www.osyunwei.com warm reminder: qihang01 original Content © Copyright, reproduced please indicate the source and the original link





Finally, the application determines





Open Internet Information Services (IIS) Manager



Select Site, right-click, New-site





Next





Description: user001





Default, Next





Path: D:\wwwroot\vhost\user001



Tick "Allow anonymous access to websites"



Next





Tick "read"



Next





Complete





Select the newly created site user001 right-click Properties



Switch to home directory, tick "read" Execute permission "pure script"





Switch to "directory security"



Authentication and access Control



Click Edit next to "Allow anonymous access to resources and edit authentication methods"



Tick "Enable anonymous access"



User name: iuser_user001



Password: Enter the previously set password



Cancel the check in front of Integrated Windows authentication



Are you sure





will prompt to confirm the password, re-enter the previously set password



Are you sure





Finally, the application is determined.





Select user001 Right-permissions under the site



Point to add



Input iuser_user001



Are you sure







Only check and write in the permission



Note: If the site program needs to create, modify, generate directories, and so on, all permissions are allowed here.





After all settings are complete, restart the IIS server





OK, after the reboot is complete, enter in the browser



http://localhost/



The following interface appears, stating that the configuration was successful.





At this point, the Windows Server 2003 IIS6.0+PHP5 (FastCGI) +MYSQL5 Environment Build tutorial is complete






Windows Server 2003 IIS6.0+PHP5 (FastCGI) +MYSQL5 Environment Building Tutorial


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.