Build a Web site with all process steps

Source: Internet
Author: User
Tags domain name server icann mx record

I. Site preparation materials: domain name and space

650) this.width=650; "src=" http://www.bj-dns.net/website/upload/design.jpg "alt=" Design.jpg "/>

A web site is usually composed of a domain name and a bunch of web page files:

Domain name: The suffix name originally has the meaning, for example COM is company,org is organization and so on, but now no one cares about. The role is to map to an IP address as a string, which means that you have the freedom to change space, which day the space service providers are not happy, the domain name to other places to go, with another space

Website space: Think simple, space and your hard drive no difference,

Two. Specific configuration

  1. Setting up the domain name

Registered domain name after the silver, the domain name is yours (in the domestic registration to note, modify registered contacts, management contacts, technical contacts and paid contacts, if you can not find the change in the background, then congratulations, this domain is not you, but a dishonest businessman, use Whois to check the domain name information it, Get the Authorization Code (AUTH code), there is also called the Domain name transfer password, this code is very important, if you do not know or unscrupulous businessmen do not tell you, that again congratulations, this domain name is still not yours, want to move to another registrar can not move, in case you do not encounter this situation, then go to ICANN complaints merchants, Three times a day, if a registrar is always complained, ICANN will fix it, and you must know what you are entitled to as a consumer.

If the domain name really belongs to you, then you are not happy with the Registrar any day, you can also kick it off, transfer to another registrar.

The domain name is set up primarily with some parsing work, including:

Name server: Usually a URL such as ns*.***.***, this server is responsible for parsing the following various settings, that is, it is the boss of the domain name settings. Some of the domestic domain name registrars usually use this as a means to get stuck with users, such as restricting your only domain name servers, and then restricting you to set up up to 10 A records or MX records, and so on, this is a very ridiculous rule, especially for those who need more subdomains, this is very inconvenient , the situation is better abroad, at least I have not seen any restrictions on your use of a specific domain name server;

A special mention is that some space service providers only need you to set the domain name server as their domain name server, all the remaining resolution problems you basically do not have to control, you can freely create subdomains, without having to add a record

A record: is to point the domain name to the host IP, you can point the top-level domain name or sub-domain name to a specific IP, so your sub-domain name and top-level domain name can not be on the same server, for example, I can www.zuiuren.com Point to 66.147.240.177, point m.zuiuren.com to 127.0.0.1, and so on.

MX record: Is the mail server, we know that the mailbox is the form of ***@***.***, when you send the mail point "sent", first your mail service provider to the domain name of your recipient to find its MX record, and then send the mail to the corresponding (another) mail service provider, For example, my domain name Yihui.name's MX record is aspmx.l.google.com, that is, GOOGLE apps mail Service address, when you send [email protected] e-mail, System first to look for Yihui.name MX record, a look, oh, Google Ah, then the delivery to Google home, Google received mail, a look, oh, to send to the Xie user Ah, then sent to the Xie Inbox it; I remember the sogou seems to have provided free mail service, I do not know that it is still not in, I've been using Google Apps for a long time.

CNAME: Alias, this thing is a domain "mask", For example, if I set Google.yihui.name's cname to google.com, then you actually visit Google when you visit the former, and any path contained in the domain name will be passed to google.com intact, such as Google.yihui.name /services/is accessing google.com/services/, but the address in your browser's address bar does not show the latter, but instead displays the "masquerading" address. So as long as I am happy, I am free to make news, such as "Google changed the URL, the new URL is http://google.xiexie.name."

Other settings: Don't say, theoretically a record is enough, nothing else.

  2. Settings for the host

After the domain name has been set up, the host also needs some echo work. If the domain name is set to a record, but the host does not "receive", the website also cannot use. Host how to receive depends on its installed website service program, now popular is Apache, of course, there are a few sites still holding windows IIS thigh (with ASP language +access database), it is said that in recent time a new software, there is the possibility of replacing Apache, the name has been forgotten. Take Apache for example, the host will create a virtual host configuration file, tell the server, "Hey, there is a website point to you, you want to serve this site, this site in a directory, if users visit a URL, You are responsible for taking the files out of the directory to the user to see. "The general principle is this, the details are not much to say."

For the user, do not care so much detail, the above principle of implementation for you is in the background to bind the domain name to the host directory (and sub-domain name binding to subdirectories). In general, the site needs two additional tools to allow the owner to configure their own site, that is, FTP and database.

(1) Transferring Web files with FTP

FTP is used to transfer files to a certain server, as long as you purchase a virtual hosting service, you will generally give you an FTP account, you can use this account to log in to your host, the Web page files, and then users can access. A little common sense is that index.htm/ index.php such as web files is usually when you access a directory when the host will automatically find the files for you, such as you visit Yihui.name, the host will automatically find there is no index.php, if there is, execute this file, generate HTML to your browser. The file name may be configurable, but it is not recommended to be a maverick.

Now a lot of mature station system, downloaded from the Internet and then uploaded to the server, access to your Web site, follow the prompts step by step configuration, with the installation of software is no different.

(2) Website database

Most dynamic sites require a database (even a text file "database"), and if your website is in PHP, then MySQL is perfect. If the Php+mysql space (the General Linux host is this), the host will assign you the MySQL database account number, including: Database host (mostly localhost), database name, user name, password. These four items will require you to fill in the process of installing the Web application.

Three. Operation of the website

For those programmers, the first example is usually Hello world, and if you want to see Hello World, write "Hello World" with any text editing tool in a text file. Named index.htm (Note that Windows hides the file name extensions by default!) You make sure the file name is not index.htm.txt, I don't care, upload to the root of the website, and then visit your website, you can be delighted to see this old no longer old Hello world.

A decent site is certainly not Hello world so simple, it runs like a complex program, there may be function calls between files and database access and so on. The world really develop Web site program is certainly a few people, so do not worry, you use other people's program it, typical web system has:

Blog System (blog): Recommended WordPress, the reason is that the program is written concise, strong extensibility, I used to use domestic bo-blog system, and later did not have to live the temptation to go to WP

Content Management System (CMS): News gossip station, tutorial station, and so on, as the name implies is filled content, this site probably is to copy each other, not a few serious write, so in order to alleviate the pressure of reading, please Sir Cherish life, away from this site, also do not repeat the construction

Forum System (BBS): Netizens should be very familiar with this, the domestic common system has phpwind, discuz, foreign flourished has phpbb, I personally recommend a relatively new debut bbpress, the reason with WordPress, In everyone desperately to increase the functionality of today (make users face a lot of options to burn), rare to see a desperately reduced function of the forum system

Wiki: Wikipedia uses the MediaWiki system, and if you don't want the wiki to interact with the database, DokuWiki will be a good choice, it doesn't require database support, it's all text file operations.

The installation of the site did not say anything, the general is to put the Web file on the end of the server, and then visit your Web site, follow the prompts to walk. The site name is set to the name, the password to lose passwords. Then you will realize that a small individual can also create a seemingly scary big website.

But the maintenance of the site is not a simple thing, and when you have the right to face all the options, you will feel pain. Like my this kind of amateur play for several years the site of people are almost an occupational disease, where no alignment will feel uncomfortable, where a space is less than one eye to see, paragraph the first space indent 2 characters or 1.9 characters feel is not the same. All things you can change, you are willing to decorate on how to decorate. Just a text editor and FTP, you can change the biography, spread the look, looked at the change. It's no longer a perpetual robbery. So build a website to have a good mentality, do not perfect mentality, otherwise this life will have to constantly change. Now the website system update also fast, go out has new function, see your heart itch: Should I put a plug-in/change a B theme ah? Zhang San home has a very cool function, I want to think about how to do it? ......

So, I suggest you crossing to learn HTML and CSS and Php+mysql, or not to recommend it? I don't know.

There are search engine optimization (SEO), take some strategy to make search engine like your website, make your search ranking up front, you have to learn what is meta information (keywords, description), what is 301 redirect, what is 404 error, What is the Apache rewrite module what is pseudo static URL;


This article from "The most beautiful Aunt Yuan" blog, please be sure to keep this source http://zuiuren.blog.51cto.com/12250788/1871737

Build a Web site with all process steps

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.