2-1-1php Environment Build installation Server I win the workplace
One, Web server: Apache
Configure server: C:\Apache2.2\conf\httpd.conf
Apache Home directory: DocumentRoot node
Directory:apache's Browse directory and home directory remain consistent
Apache default home page: DirectoryIndex
Restart the Apache service after the modification is complete
working principle of 2-1-2php environment I win the workplace
The principle of Apache work
Apache is a Web server that provides Web browsing capabilities for software.
Apache can only handle HTML-type files. To handle PHP, tutorial and PHP installer to work together to complete.
Installing PHP
1 "Extract the PHP installation files
2 "Modify the installation directory under the Php.ini-dist file name php.ini, as a php configuration file."
2-1-3php Environment Building binding PHP I win the workplace
5, the Apache binding PHP
1 "Configure Apache server, httpd.conf
2 plus loadmodule php5_module "Location of Php5apache2_2.dll files"
3 phpinidir "php.ini config file directory"
4 "AddType application/x-httpd-php. PHP tells Apache2 which files can't be handled by PHP.
5 "Restart the Apache service
Example:
|
LoadModule php5_module "C:\php5.2\php5apache2_2.dll"
Phpinidir "C:\php5.2"
AddType application/x-httpd-php. php |
Installing the PHP integrated environment: Wamp/appserv but not recommended for trial