Early preparation:
Windows XP SP2 (in fact, as long as the system is 98 or above, I think this method can be followed)
Apache 2. In this example, I chose 2.2.2 for Win32...)
http://archive.apache.org/dist/httpd/
PHP 5 (Although the version number is a bit unlucky... but I still chose the 5.1.4 for Win32 Zip version...)
http://www.php.net/downloads.php
MySQL 5 (5.1 is not yet stable... We will choose MySQL 5.0.22 for Win32 Zip version for now...)
http://www.mysql.com/This
solution does not involve system folders... So we can choose a folder in other partitions to facilitate future server maintenance... This article takes X:Server as an example ... Note: It is best not to include spaces or other non-English characters in the folder name... Otherwise, it may easily cause the server to crash in some cases...
=================== =====================
Install Apache:
Run apache_2.2.2-win32-x86-no_ssl.msi... Next all the way down... When it comes to selecting the installation method, select the "Custom" custom mode... Then Next select the installation path... Navigate to X: ServerApache (Of course, you can choose other paths, or even choose Complete to install, no problem... I'm just used to saying that all server-related software is gathered together)
I wasn't planning to write the coexistence configuration of IIS and Apache... I'll think about it for a while... When prompted to fill in the Server Information... The bottom will ask you to select the port... If you have installed an IIS server... Just select it here. The second item is "only for the current user, on Port 8080, when started manually."... In other words, Apache will occupy port 8080... If you have not installed IIS... ignore it...
Continue Next... After several CMD windows pop up to install the Windows service... The installation is complete... The Apache pink feather icon will appear in the lower right corner. As expected, the icon should show a green light (indicating that the HTTP server has started normally)... You can try it by visiting http://www.quchao.com/ . 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 very fancy page... So As long as there is no prompt that the page cannot be found... the Apache server has been installed successfully) Of course... if the red light lights up... the configuration must be wrong... check back...
The Apache server is installed...
=========================================
Install PHP:
Unzip PHP-5.1.4-Win32.zip...and place it under X:ServerPHP...
Next, add environment variables to the PHP installation directory... Right-click on the My Computer icon... View 'Properties'... Then switch to the 'Advanced' tab... Click the 'Environment Variables' button (shortcut key: Alt+N)... Find the 'Path' variable in the pop-up 'System Variables' field... Double-click to edit and add ';X:ServerPHP' at the end of the variable value (note that there is a semicolon to separate previous value)…
Restart the computer... Why? Let the environment variables take effect...
At this point, PHP is installed... Of course, it is not associated with Apache yet... and no settings have been made... Don't worry... I will write about it later...
=============== ========================
Configuring Apache:
An especially important step: If you choose the latest stable version of PHP 5.1.4 like me... The modular support PHP5apache2.dll in the officially downloaded source code package is not applicable to Apache 2.2.2... ... It is found that PHP needs to be recompiled... However, the PHP5 Research Laboratory provides a solution:
Download this compressed package ( 'root'@'localhost' = old_password('Password_for_root');
(This is a new command for MySQL 5. Please change old_password to password for previous versions)
Replace Passwor_for_root with your own password... Don't be too simple...
The prompt 'Query Ok' indicates that the modification was successful.
Don’t believe it? You can exit; try logging in again...
At this point... The installation of MySQL is completed... Please refer to the manual for detailed optimization configuration... As for the relationship between MySQL and PHP, it will be mentioned below...
=================== ==================
'www.knowsky.com
Configure PHP:
Enter X:ServerPHP... Rename PHP.ini-recommend to PHP.ini and open it with a text editor...
Modify the error reporting level... Run some irregularly written programs... You will find a screen full of 'errors'...
search:
error_reporting = E_ALL
Modify to:
error_reporting = error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
Since it is local debugging, of course I want the error to be output for me to debug...
search:
display_errors = Off
Modify to:
display_errors = On
For local developers, logging errors seems unnecessary...
search:
log_errors = On
Modify to:
log_errors = Off
It is necessary to set the path to the extension library...
search:
extension_dir = "./"
Modify to:
extension_dir = “X:/Server/PHP/ext”
PHP 5 does not enable support for MySQL by default...
search:
;extension=PHP_MySQL.dll
Remove the preceding semicolon:
extension=PHP_MySQL.dll
In addition, vBulletin has already enabled support for Mysqli... so here we introduce the MySQL extension library...
search:
extension=PHP_MySQL.dll
Join below:
extension=PHP_mysqli.dll
Of course, in order to better use some image-related functions of vBulletin, we need to enable the GD2 library...
search:
;extension=PHP_gd2.dll
Remove the preceding semicolon:
extension=PHP_gd2.dll
We also hope to call some more commonly used libraries, such as PHP_mbstring.dll, PHP_curl.dll, PHP_sockets.dll, PHP_xmlrpc.dll, etc... The opening method is the same as above...
(Only common extensions are enabled here... Please decide other extensions according to your needs...)
Although vBulletin uses its built-in Session mechanism, PHP's Session mechanism is necessary in many programs...
search:
;session.save_path = "/tmp"
Change it to an existing path...
Or create a tmp directory in the release directory...
Here we choose the former method... First create such a directory X:Session...
Then modify it to:
session.save_path = “X:/Session”
The settings are basically completed here... PHP can also support MySQL normally... For more detailed settings, you should read the manual...
==================== ================
Conclusion:
The most basic WAMP environment is now configured... Next, I also configured Zend Optimizer and Subversion... Since they are not standard configuration... I will not introduce them here...
In fact, the Apache server does not need to be installed... Unfortunately, I did not find the ZIP version of 2.2.2... And compiling with SRC files is too cumbersome... So I simply executed the installation program... Wait until I reinstall the system next time... Apache will become green... Let us look forward to it... (about two years from now?)
Uh......... I'll add more when I think of something...