It took a long time to install
First, give a suggestion: the installation directory should be in English, because the Chinese directory may have problems.
1.Apache2.2Installation
Apache2.2Easy to install, Baidu has many
2.Mod_fcgidInstallation and configuration
Slave Http://www.apachelounge.com/download/ Download websiteFcgid-2.2-w32.zip,
Decompress the package andModulesFolderMod_fcgid.so
CopyE: \ Server \ apachesetup \ modules
Directory,E: \ Server \ apachesetup \ modulesYesYourApacheInstallation Directory
ModifyApache2.2Configuration FileHttpd. conf
Please refer to the following to modify
<Directory "E:/Server/apachesetup/htdocs">
# My Apache2.2
Is Installed on E:/Server/apachesetup
Options indexesfollowsymlinks
AllowOverride none
Order allow, deny
Allow from all
# The following sentence is added and can be executed. CGI Script
Options execcgi
</Directory>
Add the following statement at the end of the configuration file
Loadmodule fcgid_module modules/mod_fcgid.so
<Ifmodule mod_fcgid.c>
Addhandlerfcgid-script. php
Fcgiwrapper "E:/PhP6/php-cgi.exe". php
</Ifmodule>
Then add the following lines
#EnableApache2.2ResolutionPHP
Addtype application/X-httpd-PHP. php
#EnableApache2.2ResolutionPHP
Addtype application/X-httpd-PHP. html
# PHP. iniDirectory (commonly knownPHPInstallation Directory)
Defaultinitenv phprc "E:/Server/phpsetup"
3.PHPInstallation Configuration
InstallE:/Server/phpsetupDirectory (You can select the installation directory you want.)
Slave Http://www.php.net/ Download
ZipFile and decompress itE:/Server/phpsetup
FindPHP. ini-Production, RenamedPHP. ini
OpenPHP. ini, Configure the following information
Extension_dir: that is PHP Load the extended directory. The default value is PHP Under the installation directory EXT Folder, In notepad: Edit -> Search and enter Extension_dir, Search. After finding it, remove the semicolon before it. After modification, It is shown in the following figure: Extension_dir =
"( Your installation directory )/EXT" For example, mine is Extension_dir = "E:/Server/phpsetup/EXT ". (Note: "/" Instead "\" )
Extension = XXXXX. dll: Enable the extension library to be loaded.PHP. iniSearching"Dynamicextensions", And then flip down, you will find a lot of lines, such:
; Extension = php_bz2.dll
; Extension = php_curl.dll
; Extension = php_fileinfo.dll
; Extension = php_gd2.dll
; Extension = php_gettext.dll
..........
Remove the semicolon to open the corresponding extension. If you are not sure which extension should be enabled, do not setMySQLThe related extension is enabled. If you want to use an extension library to find that the database is not running, you can configure it again.
After completing step 3,PHPThe configuration is complete. Remember to finish the modification.PHP. iniAnd save it.
restart apache server