Prepare the software first:
One, install Apache, configure the success of a common Web server
To run the downloaded "Apache_2.0.55-win32-x86-no_ssl.msi", the following interface appears:
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642335929-0.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
The installation Wizard interface for Apache HTTP Server 2.0.55 appears, click "Next" to continue
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/064233al-1.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
Confirm consent to the Software Installation license regulation, select "I accept the terms in the License Agreement", click "Next" to continue
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642334s1-2.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
For instructions on installing Apache to Windows, please read on and press "Next" to continue
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642331455-3.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
Set up system information, fill in your domain name under network domain (for example: goodwaiter.com), in the server Name Enter your server (for example: www.goodwaiter.com, hostname plus domain name), in Administrator ' s Email Address under the system administrator's contact e-mail addresses (such as: yinpeng@xinhuanet.com), the above three information for reference only, where the contact e-mail address in the case of a system failure to provide visitors, three information can be arbitrarily filled, invalid also line. Here are two options, the image is selected for all users of the system installation, using the default 80 port, and as a system service automatically start, the other is to install only for the current user, using port 8080, manually started. General choice. Press "Next" to continue. ]
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642335619-4.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
Choose the installation type, typical as the default installation, custom for user-defined installation, we choose custom here, there are more options available. Press "Next" to continue
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/064233l55-5.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
The Select installation Options screen appears, left-click on "Apache HTTP Server 2.0.55", select "This feature, and all subfeatures, would be installed on the local hard drive." , that is, "This section, and sub-sections of subordinate content, all installed on the local hard disk." Click "Change ..." To manually specify the installation directory.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642331923-6.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
I choose to install in the "D:\", you choose, generally recommended not installed in the operating system disk, lest the operating system is broken, the restore operation to the Apache configuration file also cleared. Select "OK" to continue.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642332441-7.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
Go back to the interface and select "Next" to continue.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/064233no-8.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
Confirm that the installation options are correct, if you think you want to check again, you can click "Back" step-by-step to return to the check. Click "Install" to start the installation as set by the previous setup option.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642331a6-9.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
The interface is being installed, please wait patiently until the following screen appears.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642335630-10.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
The installation Wizard completed successfully, the lower right corner of the status bar should appear below the green icon, indicating that the Apache service has started to run, press "Finish" to end Apache software Installation
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642334219-11.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
We are familiar with this icon, very convenient, left-click on the icon, the following interface, there are "start", "Stop", "Restart (restart)" Three options, it is convenient for the installation of Apache server to do this.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642335j5-12.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
Okay, now let's test it. By default
ConfigurationRun the Web interface, in the IE Address bar hit "http://127.0.0.1", click "Go", you can see the following page, indicating that the Apache server has been installed successfully.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642332a4-13.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
Now start configuring the Apache server so that it serves us better, in fact, if not
Configuration, the Apache2\htdocs folder in your installation directory is the default root directory of the website, where you can put the file. Here, we still have to
ConfigurationWhat's the problem or modification,
ConfigurationAlways yes, "start", "All Programs", "Apache HTTP Server 2.0.55", "Configure Apache Server", "Edit the Apache httpd conf Configuration file" , click Open.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Style= "Cursor:hand" onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "Click here to open new Window Ctrl+mouse wheel to zoom in/out "src=" Http://www.bkjia.com/uploads/allimg/131016/0642332437-14.gif "width=716 Onload= "if (this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt= ' click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' border=0 resized= "true" >
XP Notepad has a few changes, very useful one function is to see the file content of the row, column location, as shown, click "View", tick "status bar", the interface in the lower right corner of more than a mark, "Ln, Col 10" means "row 78, Column 10", so you can quickly locate in the file, Convenient commentary. Of course, you can also use "edit", "find" to enter keywords to quickly locate. Each
ConfigurationFile changes, after saving, must be in the Apache server restart after the effective, you can use the small icon in front of the convenient control server at any time "restart."
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/064233c07-15.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
Now formally start to configure the Apache server, "Ln 228", or find the keyword "DocumentRoot" (that is, the Web site root), find the place as shown, and then the "" in the address to your website root directory, address format please follow the picture, mainly the general file address of the "\" Change to "/" in Apache.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642336124-16.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
"Ln 253", again, you can also find "
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642335k1-17.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
"Ln321", DirectoryIndex (directory index, that is, in the case of a directory only, the default display of the file name), you can add a lot, the system will be based on the left-to-right order of precedence display, separated by a single half-width space, For example, some of the site's homepage is index.htm, in the cursor there with "index.htm" filename is arbitrary, not necessarily "index.html", such as "test.php", etc., can be.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642332013-18.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
Here's a choice.
Configurationoption that might have been previously
Configuration, it seems to have been fixed now.
Configuration, is to enforce the language encoding of all output files, the HTML file has a language tag (this is the setting document language is gb2312) will also be cast. If you open a Web page garbled, please check the Web page there is no above HTML language tag, if not, add it can be displayed normally. "# DefaultLanguage NL" Before the "#" removed, "NL" to the language you want to force the output, Chinese is "ZH-CN", save, close.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642331620-19.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
Well, the simple Apache configuration is over, and now with the previous small icon reboot, all
Configurationis in effect, your site becomes a Web server, if you load the firewall, open 80 or 8080 ports, or allow the Apache program to access the network, otherwise people can not access. If you have a public network IP (general ADSL or telephone dial-up Internet is all), you can invite all Internet friends access to use HTTP.//Your IP address (IP address query can access HTTP.// www.goodwaiter.com, query content within that is) your site, or if you do not have a public IP, you can also tell the intranet IP address to other users in the LAN, let them through http://Your intranet IP address, access to your website.
Two
PHPinstallation, module, PHP with Apache to make your website server support PHP server script
Unzip the downloaded PHP installation file Php-5.0.5-win32.zip right-click.
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642335a3-20.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
Specify the location of the decompression, my settings in "D:\php"
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor= ' hand '; this.alt= ' Click here to Open new Window\nctrl+mouse wheel to Zoom in/out ';} ' Onclick= "if (!this.resized) {return true;} else {window.open (THIS.SRC);}" alt= "" src= "http://www.bkjia.com/uploads/ Allimg/131016/0642332601-21.gif "onload=" if (this.width>screen.width*0.7) {this.resized=true; this.width= screen.width*0.7; this.alt= ' Click here to open new window\nctrl+mouse wheel to Zoom in/out ';} ' Border=0>
View the contents of the extracted folder, find the "php.ini-dist" file, rename it to "PHP.ini", open the edit, find the place in the figure below, Ln385, there is a "register_globals = Off" value, which is used to open the global variable, For example, the value of the form sent over, if the value is set to "off", you can only use "$_post[' variable name '", $_get[' variable name '] "and so on to get the value sent, if set to" on ", you can directly use" $ variable name "to get the value sent, of course, set to" off " It is more secure and will not allow people to easily intercept data that is transmitted between pages. Does this value change to "on" to see oneself feel, is safety important or convenience important?
http://www.bkjia.com/PHPjc/318690.html www.bkjia.com true http://www.bkjia.com/PHPjc/318690.html techarticle Prepare the Software: first, install Apache, configure the success of a common website server run download Good "Apache_2.0.55-win32-x86-no_ssl.msi", the following interface appears: Screen.width*0 ...