How to build a personal server and create your own website

Source: Internet
Author: User
Tags free ftp

How to build a personal server and create your own website2012-01-30 18:49:41
See other people's beautiful personal homepage, you will be tempted, and now free resources are less and more often, you spend a lot of time to find free home space, but finally because of their instability and bring some regrets. In addition, in the information society, we often need to transfer, staging some documents and materials, or to achieve file sharing with others, [wiki]ftp[/wiki] services are often used as our best way to transfer information. But most of the time, when we shuttle to the free FTP server, but because of the lack of anonymous accounts or too many people can not log in properly. In fact, we can completely avoid these embarrassment, to create a personal server belonging to their own, from now on hitchhiking, began to experience the thrill of having! Let me start with a personal server network Setup tour. The erection of WWW server
We visit a variety of websites almost every day to obtain a wide range of information, WWW server is to provide such services, there are many information providers to provide the WWW server set up pay services. In fact, we can completely build the personal server of WWW, publish some personal information on the net, and realize the pleasure of being an administrator. WWW server is set up in a number of ways, the following are some of the main implementation methods:
1. Via Microsoft-provided IIS
A large part of the WWW server is now built on Microsoft's IIS. It uses an environment of winnt/2000/xp+internet information Service (IIS), believing that many users are now using Win2000 or WinXP systems, in Win2000 Professional and WinXP systems, by default, they will not install IIS at the initial installation of the system (current version is IIS5.0), so these components have to be added to the system.
First step: Installation of IIS
A. Select Add/Remove Programs in the Control Panel and select Add/Remove Windows Components (1) In the dialog box that appears.
B. In the check box that appears, select Install Internet Information Services (IIS) (2), which takes approximately 19MB of space.
C. Click "Next" and put the Win2000 installation CD into the CD-ROM drive, the installer can copy the program files to the hard disk, click "End" to complete.
Step two: Basic configuration of Web server in IIS
The basic configuration of a Web server in IIS consists of the following sections:
A. Open the Configuration window for the IIS server, choose start → programs → administrative tools → Internet Services Manager, or select → control Panel → administrative tools → Internet Service Manager Also, open Windows 3. "."
B. In the window that opens, right-click Default Web site and select the Properties menu.
C. In the Default Web Site Properties window that appears, select the Home Directory tab to set the location of the Web content on the hard disk, the default directory is "C:inetpubwwwroot", and you can set it yourself (4) as needed.
D. Select the Documents tab at the Properties window and set your default home page name, such as "myfirstweb.htm", to add and move it to the top of the list (5).
E. Confirm that the default Web site has been started, if there is no right mouse click on the "Default Web Site", select "Start", in the open IE Address bar type the local [Wiki]ip[/wiki] address, you can see your designated home page has started to publish on the Internet.
This is just the most basic setup option for IIS, and you can configure IIS security and other parameters by setting the "Default Web site Properties" mentioned above as needed.
While IIS works, it also has a number of security vulnerabilities, including the famous Unicode and CGI vulnerabilities, by default, so after the installation of IIS, it is recommended that you continue to download the security vulnerability patches SP1 and SP2 that they provide on the Microsoft home page. In addition, it is recommended to convert the disk file system to NTFS format, the partition of the installation system can be converted in the system installation, or after the installation of the system with pqmagic and other tools to convert.
2, the use of Microsoft's PWS
The full name of PWS is "Personal Web server", which literally means Personal Web server, provided by Microsoft Corporation, which is mainly suitable for the creation of small personal sites, its configuration and use is relatively simple, but the function is very powerful. The difference with IIS is that PWS can be installed in the WIN9X/ME/NT/2000/XP system, which is particularly valuable for win9x/me systems.
First step: Installation of PWS
For the win9x/me system, put the Win98 installation CD in the CD-ROM, enter the ADD-ONSPWS directory of the CD-ROM, double-click the Setup.exe command to start the installation of PWS, installation Interface 6 is shown. If we need some advanced features such as ASP, you can also choose a custom installation mode, or choose a typical installation directly. After the component installation is complete, the options shown in 7 will appear to set the WWW service directory, which we can set according to the actual situation, it is recommended to install it in the default directory. When you finally select Finish and follow the prompts to restart your computer, you will see the PWS icon (8) in the lower right corner of the taskbar.
When you open an IE window, enter "http://localhost", "http://127.0.0.1" or "http://Your IP address" in the address bar, you can see the default page of PWS, indicating that PWS has run successfully.
For WIN2000/XP, PWS is installed as a component of IIS. If you are win9x/me system, do not install PWS CD-ROM also does not matter, you can go to http://img.cn99.com/cn99new/series/dyndns/pws.zip download PWS installation software, installation steps similar to the above.
The second step: the configuration of PWS
Double-click the PWS icon in the lower-right corner of the screen, or select the appropriate program group in the menu to start the Personal Web Manager (9). The manager interface (Figure 9 is the PWS of IIS in Win2000, so there are only 3 options) can be seen that it includes 5 parts, can manage different functions separately, using PWS to set up their own WWW server generally has the following several steps.
A. Activate the PWS. At the main screen option of PWS, it is subdivided into "release" and "Watch". You must first turn on the PWS service by clicking on the "Start" button. Here, you can also view some of the Web site's access statistics through the contents of the watch.
B. Set the virtual directory. Assuming that your page is stored under "E:wwhomepageshomepage", the home file is named "Myfirstweb.htm". First select the virtual directory in Figure 10, click the "Add" button, in the "Add Directory" dialog box (11), specify the drive letter and directory where the page is located, this is "E:wwhomepageshomepage", and set an alias for their own virtual directory, alias can be set casually , is the name of the directory when a friend visits your website. Security recommendations: Set Directory access to read and script, and do not choose Execute permissions for security reasons.
By default, the root directory of the PWS server is "C:inetpubwwwroot". If we do not want to specifically set up the virtual directory, you can also copy all the files of the page you have stored in the directory, for example: "E:wwhomepageshomepage" in the copy of all the files to "C:inetpubwwwroot".
C. Set the default document. Next, set up a Web document that will automatically be recognized by default for your virtual directory. The purpose of this document is that when you enter this site, if you do not specify a document to access, the server automatically provides a default document for it to access. In Figure 10, select the Enable Default document check box, and in the Default document box, enter your own home page document name "Myfirstweb.htm". Security advice: As above, for security reasons, do not select the Allow browsing directory check box to prevent others from seeing all the files in the entire directory.
D. Create an Access record. If we want to monitor visitors to our page, you can also select "Save Web Site Activity log" in Advanced (Figure 11), and the system will automatically help us record the data that accesses the Web site, which will record the visitor's IP address, access time and access content. The server will create a file named "Ncyymm.log" in the Folder "C:windowssystemlogfiles" (yy is the year, MM is the month). The file can be viewed in a text editor or in a DOS window using the "Type" command.
With this simple setup, open IE and enter your own IP address to see your published home page, whether or not the Internet can debug their own site. Of course, you can also use a special IP to verify the correctness and loopback address of the installation, i.e. http://127.0.0.1 or http://localhost.
In addition, PWS has several other options to enhance its functionality, including the following two tags.
A. Release. This section is mainly to provide customized personal homepage publishing and editing the file publishing list function,
You can publish files for others to browse and download. This process is actually a combination of the PWS ASP functionality. In addition, you can create a guest book and Guestbook When customizing your home page, for example, if you want to publish "D:downloadtt.zip", first select "Publish", click the Next button, go to the "Publish Wizard" and fill in the appropriate items in the "Publish Wizard" (12). Click on the "Add" button and click "Next", PWS will prompt you "added the following files: Tt.zip". Continue to click "Next", the default is to select "Add files to the list of publications", click "Next", you will publish the "Tt.zip" file published. Open the IE window and visit your Web site to see a link to the published document on the page that contains the published file that you just configured.
B.web site. Click on "Web Site" to appear the "Home Page Wizard" interface, PWS provides home page, guest book and Guestbook 3 kinds of pages of the template. Follow the wizard's prompts to choose a good option, you can see the Dynamic ASP Settings page, where you can edit the home page, view the guest book, open the guestbook, to get some feedback information.
3. Using Apache
Apache is the world's most widely used Web server settings software, more than 50% of sites are using it, it is mainly efficient, stable, secure, free (the most important point) is known. At present its latest version is 1.3.26, File size only 2.07MB, you can go to its homepage: Http://www.apache.org/dist/httpd/binaries/win32 download. Remember to select the no-source version of for Win32 (Apache_1.3.26-win32-no_src.msi) when downloading. The latest version of Apache for Win32 started to be released in the form of MSI, making it easy to install Apache in the Windows environment, which is an all-English interface, but it's easy to use.
The first step: Apache Installation
A. Double-click the Apache installation file, like the normal Windows program installation, all the way to "Next".
B. During the installation of the program it also requires you to enter your network domain (the Web name: xxx.com); Server Domain (server www.XXX.com) and the webmaster's e-mail, there is the actual fill, if the individual users can not fill in the form of a random (13).
C. To choose the installation path, according to the personal habits of choice.
D. All the Way "Next" until "Finish", the installation can be completed.
At this point, your Apache has started, you can enter in the IE Address bar: "http://localhost" or "http://127.0.0.1" see the Default Apache home page (14). In addition, the Apache service can be found in the "services" item of the "Administrative Tools", and Apache can be used as a service to run automatically as the machine starts.
Step Two: Apache configuration
Apache Core profile is "httpd.conf", its location in the computer is the Apache installation path conf, if installed in the root directory of the C drive, then the file should be in "c:apacheconf", in addition, open the Windows "Start Menu" → " Program "→" Apache [wiki]http[/wiki] Server → "Edit the Apache httpd.conf Configuration File" can also, in the latest version 1.3.26, its role is more obvious. Open it with Notepad, you can see that these profiles are in text, where "#" is the Apache comment symbol, we can click "Find" in the Notepad menu to enter the following keywords to configure, and configure the corresponding. 15 Look for "DocumentRoot" in the configuration file.
A. Configure DocumentRoot. This statement specifies your Web site path, which is the directory where your page is located. You can use the default, generally is the Apache installation directory under a subdirectory, of course, you can also specify one, you need to note that the end of the sentence do not add "". In addition, the path delimiter is written in Apache server "", for example, we can set it here as "E:wwhomepageshomepage", open the home page, the default open document will go directly to the directory to find.
B. Configure DirectoryIndex. This is the home page that your site displays by default, such as the default page name for "E:wwhomepageshomepage" in "myfirstweb.htm", which you can add here. In addition, under normal circumstances, we can also join "index.htm index.php index.php3 index.cgi index.pl default.htm" and so on. Note that a space is left between each type.
The above two steps are basically set up, start IE input your computer's IP to access their Web site, you can also define your domain name at the servername of the file, enter your e-mail address at serveradmin. The above two are configured at the time of installation and can be modified later in this section.
In addition, if you deny some people access to your WWW site, you can also go to the Apache installation directory to find access files, enter your forbidden IP address.
As can be seen, Appache does not have a graphical configuration interface, which is the main reason for its very safe and stable, but its configuration is very simple, just need to input parameters in the text file, this WWW server architecture is the most professional in all ways.
Other ways of 4.WWW server Setup.
At present, there are many WWW server set up software available for use, and many of them are free software, we can go to try, here is a brief introduction of several software and.
A.ANALOGX simple Server. It's easy to use, you just drag and drop "index.html" into simple server, the rest of it to help you solve. The software can be run under WIN9X/NT/2000/XP, software size only 187kB, is an English software, but it is completely free, one of its download site:http://ln.skycn.net/down/sswwwi.exe<;/p>
B. The Web server of the day goose. This is also a Chinese Web server Erection tool, the interface is beautiful, easy to use. Support virtual directory, no installation, no garbage, it is also very simple to use. Can be used under the WIN9X/NT/2000/XP, software size 612kB, is also free software, one of the download site:http://ln.skycn.net/down/webserver.zip<;/p>
C. Peanut shells. "Peanut Shell" is a set of completely free dynamic domain name resolution service. Accessible: http://www.oray.net

How to build a personal server and create your own website

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.