Here is the IIS server, in fact, peanut shells under the normal use of Apache, which I have in the previous post has been said, now specialized in Apache configuration for a detailed description:
First: Of course, the download Apache, Apache is currently the latest version of Windows is 1.3.2X, you can go to its official website to download the latest version (http://www.apache.org), Win2000 corresponding download file is Win32 version, Win98 and WinME corresponding download file is R298orme version, note that do not download the wrong. If you are using Win2000 to download the win98orme version, hey, wait to see the Black DOS window, in addition, also pay attention not to download the UNIX or Linux version, the current UNIX or Linux version of the latest is
1.2X, the version is higher than Windows, which is easy to distinguish.
Second: script support, I'm here to recommend PHP, the reason is very simple, both in the functional or performance of the implementation of the efficiency of the performance, in addition, learning is also very simple, you can go to this forum [Web development] to pay attention to my PHP tutorial series, you can buy a book to learn, Even you can learn directly through PHP online manual ... if your level E is good enough!
PHP Download Address: http://www.php.net/downloads.php
Currently the latest version is 4.1.0, the function has been super strong, the same attention do not download into Linux or Unix version, and do not download the source code
Once again: Before I get into the conversation, let me drink a sip of water
1. Unzip the PHP download file to the C:/Program files/php. For php.ini configuration, refer to the "How to install PHP in IIS" version of [Web development], which is not in detail here, It is important to make sure that the modified php.ini file is copied to the installation directory of the system, such as D:\Winnt or C:\Windows (Win9xorme)
2. Download the latest version of Apache may be the MSI end of the file, in Win2000 and WinME inside the installation of nature is no problem, but for the preference of Win98 comrades to find an intermediary, looking for to go, Find a name InstMsi.exe (1.42M), the software can be downloaded to Microsoft's Web site, in the domestic many software download site can also find, first install InstMsi.exe, and then install Apache
Click [Next]->[i Accept the terms in the license agreement]->[next]->[next]->
The configuration window for the [Server information] will pop up.
In network domain below enter your domain name (of course, is the top-level domain name, if not, blindly write a also become, such as boy.com), if you registered peanut shell when registered www.xxx (don't think crooked oh ^q^). com's right to use, and modified the DNS server point to the peanut shell provided to your server (primary domain name server (Primary DNS): dns.faseng.com secondary Domain name server (secondary DNS) : ns.soonway.net), then, here you can fill in the xxx.com
www.xxx.com below server name
Enter your e-mail address below the administrator's Email addresses
Install Apache HTTP Server programs and shortcuts to: bottom two options
If you do not want to boot every time automatically start the Apache server, you can choose the second, the default is to install the service, that is, each boot automatically start the server, I see To do well
Then it involves choosing the installation path or whatever, I don't need to say more, until the end of the installation
Test Apache for Successful installation: Stop IIS or other 80-port-open servers first. then enter 127.0.0.1 in the browser, and if you see a page titled 406 Not acceptable, which is a index.html.xx list and has a short description, congratulations, you've installed it successfully.
Of course, you can't always take a 406 not acceptable Web page, so, you need to modify the Apache configuration file, which is located in the Apache directory under the Conf subdirectory inside, Branch look for you will find a file called httpd.conf, and then there is a httpd.default.conf file, the latter is the former backup file, if you modify the httpd.conf cause the Apache server can not start, and you do not know how to restore httpd.conf , you can copy the httpd.default.conf to a httpd.conf and restart the server, and you will see the original 406 not acceptable page.
Or how to modify the Httpd.conf bar,
For the average user, the following areas need to be modified:
Find port around 268 lines, this is the server open port, default is 80, So that others can access your server www.xxx.com or aaa.xxx.com, if you want to use both IIS and Apache, you can modify the port of the Web server in IIS or the port here, as long as the port is not conflicting, you can access, such as: The 80 here to 8080, then others need To access your Web server, you can lose www.xxx.com:8080 in the browser.
The next few lines you will see serveradmin, is that you just fill in the server administrator address, if someone in the access to your site error, then the system will generate a page prompts visitors to contact your e-mail.
Further down more than 10 line has servername, this is the server name (domain name, with IIS in the host header names function is similar), if you did not apply for the international domain name, only then applied for a level two domain name, for example Boy.vicp.net, then here you can also enter boy.vicp.net
And then down DocumentRoot, here to set the root of the Web site, suggest that the root directory set on another disk, or in case or perhaps your system crashes, with ghost and other software recovery and forget the data backup, it is miserable!!! :(
Further down, there
<directory/>
Options FollowSymLinks
AllowOverride None
</Directory>
A few lines, modified into
<directory "C:/Program files/php" >
Options None
AllowOverride None
</Directory>
The C:/Program files/php above is the path you have downloaded php4.x decompression
And then down there.
<directory "C:/Program files/apache Group/apache/htdocs" >
Change the line into
<directory "Your site root directory" >
such as: <directory "D:/www" >
Go down and find
<ifmodule mod_dir.c>
DirectoryIndex index.html
</IfModule>
A few lines, here is used to set the default homepage name of the site, you can add a few more, such as
<ifmodule mod_dir.c>
DirectoryIndex index.html index.htm inde.shtml index.shtm index.php index.php3 index.phtml
</IfModule>
is more ideal:)
OK, now go to the end of the file and add the following code:
scriptalias/php/"C:/Program files/php"
AddType application/x-httpd-php4. php3. php. phtml
Action Application/x-httpd-php4/php/php.exe
Among them, "C:/Program files/php" is the PHP you unpack the road after
Save httpd.conf and restart Apache with [Start]->[Settings]->[Control Panel]->[admin tools]->[Services] Inside
You can also run]-> by starting]->[
Enter net stop Apache carriage return
Then enter net start Apache to restart Apache so that the changes you just made are in effect.
The following information is for reference only *****************************************
Virtual Host Settings: If you apply for n a peanut shell domain name, as I applied for boy.vicp.net girl.vicp.net
can also be easily implemented, detailed methods see below
*********************************************************************************
Add the following code at the end of the httpd.conf file:
Namevirtualhost 127.0.0.1
<virtualhost 127.0.0.1>
ServerAdmin youremail@youdomain.com
DocumentRoot D:/www/boy
ServerName boy.vicp.net
</VirtualHost>
<virtualhost 127.0.0.1>
ServerAdmin youremail@youdomain.com
DocumentRoot D:/www/girl
ServerName girl.vicp.net
</VirtualHost>
(The 127.0.0.1 in the top code can also be your real IP, that is, through legitimate channels of IP, not the Internet random IP, remember.) )
So, you can add more than one domain name, just the end of the file to increase
<virtualhost IP Address >
ServerAdmin Administrator E-mail
DocumentRoot child domain name root directory
ServerName name of the child name
</VirtualHost>
A few lines of code. If you register a top-level domain name, you can also use this method to configure your own boy.domain.com or girl.domain.com ...
Note: The virtual domain name and the front of the main documentname can not be the same, otherwise all go to the front of the root directory.
Save httpd.conf and restart Apache with [Start]->[Settings]->[Control Panel]->[admin tools]->[Services] Inside
You can also run]-> by starting]->[
Enter net stop Apache carriage return
Then enter net start Apache to restart Apache so that the changes you just made are in effect.
OK, dial-up Internet, run peanut shells, if the connection is normal, others in the address bar input http://boy.vicp.net/and http://girl.vicp.net can access your two different domain name of the site.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.