I ,:
Apache2.0.50: http://httpd.apache.org/download.cgi
Php5.0.2: http://windows.php.net/download/
Mysql5.0.2: http://dev.mysql.com/downloads/
Zend2.5.2: http://www.zend.com/store/free_download.php? PID = 13]
I won't even mention the software installation. Only the zip package under PHP can be decompressed directly.
The installation sequence is the sequence listed above. Zend is installed only after all running tasks are complete.
Ii. simple installation process:
(1) Apache:
The installation of apache2.0.50 is very simple. I directly mounted it to the root directory of the E disk (I use the C disk as the system disk and the D disk as the temp disk, occasionally, using a partition in Windows to store temporary files does not affect the system speed. This can improve the system running speed. If you are interested, try it ), after installation, My Apache directory is E: \ apache2.
(2) PHP:
I directly decompress the package and put it under the PHP Directory of the E disk, which makes it much easier to find the file.
(3) MYSQL:
Directly mounted to E: \ mysql. Its default directory is too long. It is stored on drive C. Even drive C is not stored except Windows files.
(4) Zend:
After all the debugging operations are normal, I mounted Zend to E: \ Program Files \ Zend.
Iii. configuration process:
(1) HTTP. conf
I have changed this file to several places:
Run php directly as a module of Apache. I added two sentences to it:
Code: [copy to clipboard]
Loadmodule php5_module "E:/PHP/php5apache2. dll"
Addtype application/X-httpd-PHP. php
I created a WWW directory under the E: \ apache2 directory to store my site files. In HTTP. conf, I changed the following sentence:
Change DocumentRoot "E:/apache2/htdocs" to DocumentRoot "E:/apache2/www"
Compared with 1.3.x, apache2.0.x cannot directly list directories by default. If you feel uncomfortable, you can change it:
Run the following statement under DocumentRoot "E:/apache2/www ":
Code: [copy to clipboard]
Options followsymlinks
AllowOverride none
Changed:
Code: [copy to clipboard]
Options indexes followsymlinks
AllowOverride none
Set the default Apache characters to simplified Chinese characters:
Adddefacharcharset gb2312
Modify the default homepage of a directory:
After directoryindex, write the file name you want to set as the homepage, for example, index.html index. php.
Nothing else.
Note that to make these configurations take effect, restart Apache.
(2) PHP. ini
I used php4.x in the past and thought it was very simple to configure it, So I even used PhP5 to configure it directly. Who knows that MySQL cannot be used after it is finished, saying that it cannot be connected to a dynamic library, I carefully checked the existence of php_mysql.dll, but I couldn't find it, which made me feel depressed for a long time. Even if I decompress PhP5 again, it would be useless, later, I found this sentence in the install document of PHP: php_mysql.dll MySQL functions php> = 5.0.0, requires libmysql. DLL (bundled)
So I found the cause ......
Configure php5.0.2 as follows:
Copy PHP. ini-Dist to c: \ windows and change it to PhP. ini. (You have installed PHP before)
Then, I modified the following parts:
Extension_dir = "E: \ PHP \ Ext" (specify the directory of the dynamic Connection Library. The difference between PhP5 and PhP4 is that its dynamic Connection Library directory has changed, this is detailed in its document structure)
Remove the semicolon in the following sentence
; Extension = php_dba.dll
; Extension = php_dbase.dll
; Extension = php_filepro.dll
; Extension = php_gd2.dll
; Extension = php_imap.dll
; Extension = php_mysql.dll
Next, we modified some file uploads and the maximum memory usage limit:
Memory_limit = 20 m
Post_max_size = 20 m
Upload_max_filesize = 20 m
Nothing else can be changed. After modifying PHP. ini, You need to restart Apache.
Next, copy libmysql. dll and libmysqli. dll under the PHP Directory to Windows/system32. If this is not done, the MySQL dynamic Connection Library cannot be loaded normally.
Next, copy libmysql. dll in the MySQL directory to Apache/bin. If this is not done, the MySQL dynamic Connection Library cannot be loaded normally.
Next, copy the php5apache2. dll and php5ts. dll in the PHP Directory to Apache/bin. If this is not done, the MySQL dynamic Connection Library cannot be loaded normally.
Test libmysql. dll php5apache2. dll php5ts. dll in Apache/bin to Windows/system32.