One of the LNMP series tutorials: Adding a domain name to build a site

Source: Internet
Author: User
Tags vps install wordpress

Yesterday shared the "Linux VPS CentOS Installation LNMP system Environment Tutorial", some friends said that the Internet has been similar to the tutorial, you may be released some redundant. I think it is necessary, one is my own learning to use, and can be used as a record of their own time to use notes, so that the next time to use the direct use of, and others, after all, others, they still need to comb. Just as I've started a series of tutorials on LNMP from now on, I'll start with a record of the use of LNMP, until the final maintenance upgrades, and so on. I believe that through such a accumulation, but also for the future with me as a novice can have a good reference. What do you think?

Today, after the Tutorial foundation that I installed yesterday, add the site that we need to build a website. Although we have added the main domain name yesterday, but is far from enough, we need to add different domain name to build multiple sites, that is today to share how to add a multiple domain name in the VPS site, the same is based on LNMP.

The first step, or landing our VPS, add a virtual host with the following command;

/root/vhost.sh

The second step, see as above the interface, it is necessary to note that we enter the WWW and do not enter the WWW to represent different directory domain names, so I suggest you use what domain name on which, some friends like www, some like directly without the WWW, their own discretion.

The third step, asked if we need to add more than one domain name, we can choose N or y to decide, the default path file for wwwroot after our domain name added as a directory, so it is good, you can directly see which corresponds to which domain name.

The fourth step, asked if we need to add pseudo static, general LNMP default has discuz,wordpress and other common CMS, if there is additional need to add themselves, this we later speak, here generally choose N.

Step Fifth, ask if we need to create a log file, I do not recommend creating, because after the creation of the system too much content, is also n, and then press any key to install.

In this way we will add the ***.org domain name into our VPS. So we just put the domain a record resolution to the VPS IP can start to build a station trip. Next I will share directly using the command to install WordPress build blog, improve efficiency.

This article fixed link: http://www.laozuo.org/181.html (old left blog), the contribution Chinaz share to have the need friend, reprint indicates the source. will continue to serialize a variety of VPS installation and use. Learn VPS with old left together.

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.