Installing the PHP Environment
PHP is an uncompressed version, not a setup version
?
1, in the PHP installation directory, locate the file Php5ts.dll, copy it to the C-drive system32 directory.
2, in the PHP installation directory, locate the file Libmysql.dll, copy it to the C-drive system32 directory.
3, in the PHP installation directory, locate the file php.ini, copy it to C:\windows.
?? This file is the basic configuration of PHP files, such as setting up the server root directory configuration, open the php.ini file with a text editor, find "doc_root=", because I have Apache installed by default in the D-packing directory, so, modify the value of this configuration item is: Doc_root=c:\ Htdoc
4, found in the php.ini "Extension_dir ="./"", this configuration item is used to load the PHP extension module, modify the configuration entry as follows: Extension_dir = C:\php5\ext, (need to modify PHP's loading location according to their own installation directory)
5, found in the php.ini "; Extension=php_mysql.dll", the preceding semicolon removed, indicating that the entry into force. This configuration item is used to enable PHP to support MySQL, where the semicolon acts as a comment. After modifying the PHP configuration file php.ini, save and exit the file.
6, the configuration of Apache. Go to the Conf directory under Apache's installation directory and open the Apache configuration file http.conf with a text editor. Find the dynamic Shared object (DOS) support in this file and add the following configuration entry at the end of the LoadModule line: LoadModule php5_module d:/php/ Php5apache2.dll, (you need to modify the PHP loading location according to your own installation directory). This item is loaded into PHP module Php5apache2.dll via Apache, PHP is run as a module of Apache.
Cases:
LoadModule Php5_module C:/php5/php5apache2_2.dll
Phpinidir "C:/PHP5"
?
Put ServerRoot "C:/Program Files/apache software foundation/apache2.2"
And
It's all changed into C:\htdoc.
7, in order to let Apache support. php suffix files, locate the AddType entry in http.conf, and add the following configuration entry at the end: AddType application/x-httpd-php.php. Find DirectoryIndex and add index.php at the end.
In order to support Chinese, find Adddefaultcharset iso-8859-1 to Adddefaultcharset GB2312 instead. Save http.conf When you are finished modifying. The basic configuration of Apache is completed. (This doesn't seem to be necessary)
In the Apache configuration file, if you use a Tomcat proxy, you need to filter the directories that are accessed directly by Apache
#在 the root directory of Apache
Proxypass/discuz!
Proxypass/limesurvey!
Proxypass/clubupload!
Proxypass/ikeaupload!
Proxypass/21days!
Proxypass/fordclub!
proxypass/ajp://127.0.0.1:8009/
proxypassreverse/ajp://127.0.0.1:8009/