1
Copy the F:\phptools\php5.5\php.ini-production and rename it to php.ini;
2
Add F:\phptools\php5.5 and F:\phptools\php5.5\ext to the environment variable path, select Computer, right-click Properties--Advanced system settings--environment variables--system variables, find path, edit, to be added thereafter; F:\phptools\php5.5; F:\phptools \php5.5\ext
Method/Step 4, configure Apache
1
Open F:\phptools\Apache2.4\Apache24\conf with Notepad
Find ServerRoot, modify ServerRoot "C:/apache24" + ServerRoot "F:/phptools/apache2.4/apache24" (Here you enter the location after unpacking the Apache installation package)
2
Find #servername www.example.com:80, modify to ServerName www.example.com:80 (remove the previous #)
3
Find DocumentRoot "C:/apache24/htdocs", modify to DocumentRoot "F:/phptools/apache2.4/apache24/htdocs" (if same, do not change)
4
Find <directory "C:/apache24/htdocs" >, modify to <directory "F:/phptools/apache2.4/apache24/htdocs" > (if same, do not change)
5
Find DirectoryIndex index.html, modified to DirectoryIndex index.html index.php index.htm (Here we have added index.php index.htm)
6
Find scriptalias/cgi-bin/"c:/apache24/cgi-bin/" and modify it to scriptalias/cgi-bin/"F:/phptools/apache2.4/apache24/cgi-bin" ( If same, do not change)
7
Find <directory "C:/apache24/cgi-bin" > Modify to <directory "f:/phptools/apache2.4/apache24/cgi-bin/" > (If Same, Don't change it.)
8
Add LoadModule php5_module "F:/phptools/php5.5/php5apache2_4.dll" to the last line in F:\phptools\apache2.4.10\conf\httpd.conf Apache Support PHP (please confirm f:/phptools/php5.5/has php5apache2_4.dll, if you download is I provide the connection must be there)
9
Add AddType application/x-httpd-php. php. html. htm
10
Add Phpinidir "f:/phptools/php5.5" (Tell Apache PHP.ini location)
At this point, httpd.conf configuration is complete, save httpd.conf.
Latest PHP Environment Setup
END
Method/Step 5, install Apache into system services
1
Input F:\phptools\Apache2.4\Apache24\bin\httpd-k Install, enter
Virtual Domain Configuration
- 127.0.0.1 (not modified) www.fangchan.com (custom)
- loadmodule vhost_alias_module modules/mod_vhost_alias.so //Remove the previous #, meaning to enable the Apache Virtual Host feature, line No. 203
- include conf/extra/httpd-vhosts.conf //Remove # Import Virtual Host configuration from httpd-vhosts.conf this file;
-
- <virtualhost& nbsp;*:80>
- serveradmin [email protected]
-
- Servername www.fangchan.com //servername later modified to the domain name set in the hosts
-
- customlog " logs/ Dummy-host2.example.com-access.log "&NBSP;COMMON&NBSP;&NBSP;
- </virtualhost>
Apache+mysql+php