First ready software:
First, install Apache, a common web server configuration successful
Download a good run " apache_2.0.55-Win32-x86-no_ssl.msi ", the following interface appears:
Apache HTTP Server 2.0.55 appears the installation wizard interface, point "Next" to continue
Confirmation of agreement to license the software installation regulations, select "I accept the terms in the license agreement", point "Next" to continue
Apache install Windows on the use of Information, please read the finished, press the "Next" to continue
Set system information, fill in the Network Domain under your domain name (eg: goodwaiter.com), fill in the Server Name under the name of your server (for example: www.goodwaiter.com, is the host name plus domain name), in Administrator's Email Address Enter system administrator contact under the e-mail address (for example: [email protected]), the three information purposes only, including contact e-mail address will be provided when the system fails to visitors, three pieces of information are free to fill out, also line invalid. Here are two options, the picture chosen for the system to all users to install, use the default port 80, and as a system service starts automatically; the other is only the current user to install, use port 8080, manual start. General options as shown. Press "Next" to continue. ]
Select the type of installation, Typical is the default installation, Custom custom installation for users, we here choose Custom, there are more options. Press "Next" to continue
Interface, select the installation options appears, as shown, left click on "Apache HTTP Server 2.0.55", select "This feature, and all subfeatures, will be installed on local hard drive.", That "this part, and subordinate sub-parts, all installed on the local hard disk. " Click "Change ...", manually specify the installation directory.
I here choose to install in the "D: \", you self-selected, generally not recommended to install the operating system where the disk, so that the operating system is broken, the restore operation to Apache configuration files are removed. Select "OK" to continue.
Back just interface, select "Next" to continue.
Confirm correct installation options, if you think it will check again, you can point "Back" step by step back to check. Point "Install" to embark on the front set of installation options to install.
Interface is being installed, please wait until the following screen.
Installation Wizard completed successfully, then the status bar should appear on the bottom right corner of the green icon below that Apache service is running, press "Finish" end of the Apache Software Installation
Let us know about this icon, it is convenient, left-click the icon, there are interfaces, there is "Start (Start)", "Stop (stop)", "Restart (restart) the" three options, can easily install the Apache server on the operation.
Well, now we have to test it by default configured to run the web interface, in the IE address bar fight "http://127.0.0.1", point "to", you can see the following page that Apache server has been installed successfully.
Now configure the Apache server, make it better for our service, in fact, if you do not configure your installation directory under the Apache2 \ htdocs folder is the default web site root directory, put files in there to do. Here we still have to configure if you have any questions or modify the configuration will always be, as shown, "Start," "All Programs", "Apache HTTP Server 2.0.55", "Configure Apache Server", " Edit the Apache httpd conf Configuration file ", click Open.
XP, Notepad with some minor changes, a very useful feature is the ability to see the contents of the file line, column location, as shown below, click "View", check "Status Bar" on lower right corner of the interface more markers, "Ln 78, Col 10" means "line 78, column 10", so you can quickly locate the file for easy interpretation. Of course, you can also "edit", "Find" enter the keyword to quickly locate. Configuration file changes every time, saved, Bixu in effect after restart Apache server, you can talk with the Xiao Qian Mian icon Fangpian control server Suishi "restart."
Now configure the Apache server started, "Ln 228", or search keyword "DocumentRoot" (that is, the web root) and find the place as shown below, and then "" the address into your Web root directory, address According to the map format, please write, mainly general document addresses "\" in the Apache where we wanted to change "/."
"Ln 253", similarly, you can find "
"Ln321", DirectoryIndex (directory, that is, only the specified directory in the case, the default display the file name), you can add a lot, the system will give priority to the order from left to right shows a single-byte characters separated by a space , for example, some Web site's home page is index.htm, where the cursor is on with "index.htm" file name is arbitrary, does not have to "index.html", such as "test.php" and so on, can.
There is a choice configuration options may be configured before, it seems that over the amendment, no configuration, and is mandatory for all the language of the output file encoding, html file with language tags (this is to set the document language gb2312) of will be cast. If you open the page appears garbled, please check the website there is no language of the html tags, and if not, can add up the normal show. The "# DefaultLanguage nl" in front of "#" removed the "nl" change you want to force the output of the language, Chinese is "zh-cn", save, close.
Well, a simple Apache configuration is now over, and now use small icons the previous restart, all the configuration take effect, and that your site becomes a web server, if you add a firewall, open 80 or 8080 port, or allow the Apache process to access the network, otherwise I can not access. If you have a public network IP (ADSL or dial-up Internet generally are), you can invite friends to all be able to access the Internet using http:// your IP address (IP address lookup can access http://www.goodwaiter. COM , within the query that is) your website up; if you do not have public network IP, also within the network can be LAN IP address to other users, allowing them to your internal network through http:// IP address, access your website.
Second, php installation to module approach will combine php with apache web server to your server support php script
Php install the downloaded file php-5.0.5-Win32.zip right decompression.
Specify the location of decompression, I set "D: \ php"
View the folder after extracting the contents, find the "php.ini-dist" file, rename it to "php.ini", open the editor, find the following diagram where, Ln385, there is a "register_globals = Off" value This value is used to open the global variables, such as the value of the form gets here, if this value is set to "Off", can only use the "$ _POST ['variable name'],$_ GET [' variable name '] "and so to get sent over the value, if set to" On ", you can directly use the" $ variable name "to get sent over the value, of course, set to" Off "relatively safe, people will not easily page transmission of data between interception. This value is changed to "On" to see if their feeling is important to safety or convenience important?
There is also a place to edit, function is to enable php to directly call the other modules, such as access to mysql, as shown below, Ln563, choose to load the module, remove the front ";", it says to load this module, and loaded more also take up more resources, but also many do not where to go, like I use mysql, it is imperative to "; extension = php_mysql.dll" before ";" removed. All the module files are extracted on the php directory "ext", I am here is a screenshot of all loaded modules can be loaded up, and in front of ";" not removed is because the "ext "directory by default without this module loaded can not find the file and error prompts. Here are just for reference, generally do not need to load so much, need to add on to, and edited and saved, close.
If the previous step loading of other modules, we must specify the location of the module, or when prompted to restart Apache, "can not find the specified module" error, here presents a simple way to directly php installation path, inside ext path to the windows system path specified in the - in the "My Computer" on the right, "Properties", select "Advanced" tab, click the "Environment Variables" in "System Variables" to find "Path" variable, choice, Double-click or click the "Edit" will "; D: \ php; D: \ php \ ext" value added to the back of the original, of course, one of the "D: \ php" is my installation directory, you want it to their php installation directory, as shown below, all OK. System path to restart the computer after adding a good to take effect, you can now restart, the software can be installed or configured at all after a good restart.
Php module will now begin to form combined with Apache, so php into Apache, according to the method previously open Apache's configuration file, Ln 173, found here, added to the selected two lines as shown, the first line "LoadModule php5_module D: / php/php5apache2.dll "refers to the way load module php, the second line" PHPIniDir "D: / php" "is specified in php configuration file php.ini location, is, of course, one of the" D : / php "to change your previous choices php unzipped.
Or the Apache configuration file, Ln 757, by adding "AddType application / x-httpd-php. Php", "AddType application / x-httpd-php. Html" two lines, you can also add more substance is added to perform php file type, such as you to put on a line "AddType application / x-httpd-php. htm", then. htm file can also run php program, you can even add the line "AddType application/x-httpd- php. txt ", so that plain text file format can also run the php program.
Said before the default directory index file can change it, because it added a php, some files directly saved as. Php, we can also "index.php" default index file, a row on their own priorities I was the first place. Editing completed, save, close.
Now, php installation, integration with Apache already been completed, with a small icon in lower right corner of the screen restart Apache, your Apache server to support php.
Third, mysql installation, and php, Apache combined
Open the downloaded installation file mysql -4.1.14-win32.zip MySQL , double-click unzip, run "setup.exe", the following interface appears
mysql installation wizard starts, press the "Next" to continue
Select the type of installation, there is "Typical (default)", "Complete (full)", "Custom (user defined)" three options, we choose "Custom", there are more options, but also to facilitate the installation process familiar
In the "Developer Components (developer section)" on the left-click, select "This feature, and all subfeatures, will be installed on local hard drive.", That "this part, and the subordinate sub-parts, all installed in the local hard disk. " In the above "MySQL Server (mysql server)", "Client Programs (mysql client program)", "Documentation (document)" has done this to ensure that all the files installed. Click "Change ...", manually specify the installation directory.
Fill in the installation directory, I was "D: \ mysql", is also not recommended on the same partition with the operating system, this can prevent the system backup restore, the data is cleared. Press "OK" to continue.
Back just interface, according to "Next" to continue.
Confirm previous settings, if there is wrong, according to "Back" to return redo. Press "Install" to start the installation.
Being installed, please wait until the following interface
Here is asks you to register a mysql.com account, or use an existing account login mysql.com, generally do not need, and click the "Skip Sign-Up", press "Next" skip this step.
Software installation is now complete, and there above the interface, there is a good feature, mysql configuration wizard, do not have to, as before, his hand configuration my.ini, and the "Configure the Mysql Server now" marked hook in front of the point "Finish" the end of software installation and start the mysql configuration wizard.
mysql configuration wizard start screen, press the "Next" to continue.
Select configuration, "Detailed Configuration (Manual exact configuration)", "Standard Configuration (standard configuration)," We chose "Detailed Configuration", to facilitate the configuration process familiar.
Select the server type, "Developer Machine (development test classes, mysql occupy very little resources)", "Server Machine (server type, mysql take up more resources)", "Dedicated MySQL Server Machine (dedicated database server, mysql occupy all the available resources) ", we choose according to their type, the general election" Server Machine ", not too little, it will not fill.
Select the general use of mysql database, "Multifunctional Database (Universal multi-function type, good)", "Transactional Database Only (server type, focused on transaction processing, general)", "Non-Transactional Database Only (non-transactional, more simple, mainly to do some monitoring, and the numbers used for MyISAM data type of support is limited to non-transactional), with its own purpose, choice, and I here select "Transactional Database Only", press "Next" to continue.
Of the InnoDB Tablespace configuration is to select a database file for the InnoDB storage space, if amended, to remember location, reloading the same time to choose the place, otherwise may cause database corruption, of course, make a backup of the database on no problem, no details here. I do not have changes, use the default location, simply press "Next" to continue
Select your general mysql site visits, the number of simultaneous connections, "Decision Support (DSS) / OLAP (20 or so)", "Online Transaction Processing (OLTP) (500 or so)", "Manual Setting (Manual setting , to lose a few) ", I've selected" Online Transaction Processing (OLTP) ", its own server, should be enough, press" Next "to continue
Whether to enable TCP / IP connection, set the port, if not enabled, you can only access their own machine mysql database, and enabled me to hook in front of marked, Port Number: 3306, press "Next" to continue
This is more important is the language code of the mysql set default database, the first is the Spanish code, the second is a common multi-byte utf8 encoding, not our common coding, where the third choice, and then Character Set where the choice or fill in the "gbk", of course, can also be used "gb2312", the font difference is gbk capacity, including all the gb2312 characters, and with the traditional Chinese characters, and other mess of words - to use mysql's When, in the implementation of data manipulation command before running a "SET NAMES GBK;" (running time on the trip, GBK can be replaced by other values, depending on where the settings may be), you can normally use Chinese characters (or other text), and If not properly display Chinese characters. Press "Next" to continue.
Choose whether to install the windows mysql service, you can also specify the Service Name (Service ID name), whether to mysql's bin directory to Windows PATH (to join, you can directly use the bin file under, instead of that directory name, such as connection, "mysql.exe-uusername-ppassword;" on it, not that mysql.exe complete address, it is convenient), I've marked the hook all, Service Name change. Press "Next" to continue.
This step is asked to modify the default root user (super management) password (default is blank), "New root password" If you want to modify, enter the new password in this (if it is composing, and set a password before, here to change your password may be wrong, please leave blank, and "Modify Security Settings" in front of the hook removed, install the configuration be modified after the completion of the password), "Confirm (lose again)" within the reloading time, to prevent the wrong . "Enable root access from remote machines (whether to allow root user to other machines on the landing, if you want security, do not hook on, if convenient, to hook on it)." Finally "Create An Anonymous Account (Create a new anonymous user, anonymous user can connect to the database, not operational data, including the query)", are generally not hook up, is set up, according to "Next" to continue.
Confirm the setting is correct, if incorrect, press "Back" to return checks. Press "Execute" the settings take effect.
Is set up, press "Finish" end of the mysql installation and configuration - There is a more common mistake is not "Start service", usually appears in the previously installed mysql server, the solution, first ensure that the previously installed completely uninstall the mysql server; not work, check whether the above mentioned step, before the password is modified, according to the above operations; If still not, the mysql installation directory under the data folder backup, then delete the installation completed, it will install the data files generated folders deleted, moved back up the data File folder back and restart the mysql service on it, in which case, you may need to check the database, and then repair Yi Ci, prevent data errors.
With Apache and php combination, as has been mentioned, here to tell you, in the php installation directory, locate the previously re-named and edited php.ini, as shown below, Ln563, the "; extension = php_mysql.dll" before ";" remove, load mysql module. Save, closed, restart apache on it. Here you can select the other to load the module, remove the front ";", it says to load this module, and loaded more also take up more resources, but also many do not where to go. All the module files are extracted on the php directory "ext", I am here is a screenshot of all loaded modules can be loaded up, and in front of ";" not removed is because the "ext "directory by default without this module loaded can not find the file and error prompts. Here are just for reference, generally do not need to load so much, need to add on to, and edited and saved, close.
Similarly, after loading the module, we must specify the location of the module, or when prompted to restart Apache "specified module not found" error, here the most simple method is introduced directly to php installation path, inside ext specify the path to windows system path - in the "My Computer" on the right, "Properties", select "Advanced" tab, click the "Environment Variables" in "System Variables" to find "Path" variable, select, double-click or click the "Edit" will "; D: \ php; D: \ php \ ext" value added to the back of the original, of course, one of the "D: \ php" is my installation directory, you want to change it for their php installation directory, as shown below, all OK. System path to restart the computer after adding a good to take effect, you can now restart, the software can be installed or configured at all after a good restart.