Preparations:
Windows XP SP2 (in fact, the system can follow this method as long as it is more than 98)
Apache (the most popular WEB server platform on Unix) 2 in this example, I chose 2.2.2 for Win32 ......)
Http://archive.apache (the most popular WEB server platform for Unix). org/dist/httpd/
Php (as the mainstream development language) 5 (although the number of versions is a bit unlucky ...... But I decided to choose 5.1.4 for Win32 Zip ......)
Http://www.php (as the mainstream development language). net/downloads. php (as the mainstream development language)
MySQL (the best combination with PHP) 5 (5.1 is not stable ...... Let's just select MySQL (the best combination with PHP) 5.0.22 for Win32 Zip ......)
Http://www.MySQL (best combination with PHP). com/
This solution does not involve system folders ...... So we can select a folder in another partition to facilitate future server maintenance ...... Take X: Server as an example ...... Note: The folder name should not contain spaces or other non-English characters ...... Otherwise, the server may crash in some situations ......
==========================================================
Install apache (the most popular WEB server platform on Unix ):
Run apache (the most popular WEB server platform for Unix) _ 2.2.2-win32-x86-no_ssl.msi ...... All the way down Next ...... When selecting the installation method, select the "Custom" Custom method ...... Next, select the installation path ...... Go to X: Serverapache (the most popular WEB server platform on the Unix platform) (you can select another path, or even select Complete for installation ...... I am just used to talking about how to integrate all server-related software)
I was not prepared to write the coexistence Configuration between iis (Microsoft's WEB server platform) and apache (the most popular WEB server platform on Unix ...... Think about it and bring it ...... Prompt to enter Server Information ...... At the bottom, you will be asked to select the port ...... If you have installed the iis (Microsoft WEB server platform) server ...... Select the second item "only for the current user, on Port 8080, when started manually ."...... That is to say, apache (the most popular WEB server platform on Unix) will occupy port 8080 ...... If you have not installed iis (Microsoft's WEB server platform )...... Ignore ......
Continue to Next ...... After several Windows Services are installed in the CMD window ...... Installation is complete ...... The Pink Feather Icon appears in the lower right corner of apache (the most popular WEB server platform on the Unix platform). The green light should be displayed on the Icon, indicating that the HTTP servo has been started properly )...... You can access the http://www.quchao.com/to try It. If "It Works" appears on the screen, It means the installation is successful ...... (I remember that the previous version was not like this, but a pretty fancy page ...... So as long as the page cannot be found ...... Apache (the most popular WEB server platform on Unix) servo is successfully installed.) Of course ...... If a red light is on ...... Configuration error ...... Look back ......
Apache (the most popular WEB server platform on Unix) server is installed ......
========================================================
Install php (as the mainstream development language ):
Decompress PHP (for the current development language example -5.1.4-win32.zip ...... And place it under X: Serverphp (as the mainstream development language ......
Next, add environment variables to the installation directory of php (as the mainstream development language ...... Right-click my computer icon ...... View 'properties '...... Switch to the 'extension' tab ...... Click the 'environment variable 'button (shortcut: Alt + N )...... In the pop-up 'System variable 'field, find the 'path' variable ...... Double-click Edit and add '; X: Serverphp (as the mainstream development language)' At the end of the variable value (note that there is a semicolon to separate the previous values )......
Restart your computer ...... Why? Let the environment variables take effect ......
Now php (as the mainstream development language) has been installed ...... Of course, there is no association with apache (the most popular WEB server platform on the Unix platform ...... And no settings ...... Don't worry ...... I will write ......
========================================================
Configure apache (the most popular WEB server platform on Unix ):
Particularly important: If you select the latest php (as the mainstream development language) stable version 5.1.4 like me ...... Modular support for php (as the mainstream development language) 5 apache (the most popular WEB server platform on the Unix platform) in the officially downloaded source code package) 2.dll is not applicable to apache (the most popular WEB server platform on the Unix platform) 2.2.2 ...... We need to recompile php as the mainstream development language )...... However, php (as the mainstream development language) 5 provides solutions:
Download this package (http://www.php (as the mainstream development language) v.net/php plugin )...... Decompress php (as the mainstream development language) 5 apache (the most popular WEB server platform on Unix) 2.dll into X: Serverphp (as the mainstream development language) overwrite the original file ...... Run httpd.exe. manifest in the X: Serverapache (the most popular WEB server platform on Unix) Bin folder ...... Finally, run vcredist_x86.exe (if you install the. Net FrameWork, you do not need to install this file )......
If you select an earlier version, skip this step.
Modify the configuration file X:/Server/apache (the most popular WEB Server platform on the Unix platform)/conf/httpd. conf.
Modify the document release path ......
Search:
DocumentRoot "X:/Server/apache (the most popular WEB Server platform on the Unix platform)/htdocs"
Change the value to the desired release path, for example:
DocumentRoot "X:/Server/WWW"
There is another one that needs to be modified ...... Otherwise, you will not be authorized to access ......
Search:
Directory "X:/Server/apache (the most popular WEB Server platform on the Unix platform)/htdocs"
To:
Directory "X:/Server/WWW"
Modify the default script:
Search:
DirectoryIndex index.html
Add the default script name that you want and separate it with spaces. Note that the script names are prioritized, for example:
DirectoryIndex index. php (as the mainstream development language) index.html index.htm
For php (as the mainstream development language) 5 Configuration:
Add the following characters at the bottom of the document:
# Call php (as the mainstream development language) 5 modules
LoadModule php (as the mainstream development language) 5_module "X:/Server/php (as the mainstream development language) 5. apache (the most popular WEB server platform on Unix) 2. dll"
# Add the Mime type ...... You can also modify the mime. types file.
AddType application/x-httpd-php (as the mainstream development language). php (as the mainstream development language)
AddType application/x-httpd-php (as the mainstream development language)-source. php (as the mainstream development language) s
# Add a default character set ...... Utf8 is king ......
Adddefacharcharset UTF8
# Set php (as the mainstream development language). ini directory
Php (as the mainstream development language) IniDir "X:/Server/php (as the mainstream development language )"
Now, apache (the most popular WEB server platform on the Unix platform) supports php (as the mainstream development language ...... Of course ...... This article only describes how to perform basic installation ...... Detailed configuration and optimization will not be involved ...... You can refer to the Manual for configuration ......
Www.knowsky.com
========================================================
Install MySQL (the best combination with PHP ):