Home>Article>CMS Tutorial> How to create your own web page
Steps to create a web page (website)
I have talked about a lot of reasons, advantages and disadvantages of creating a personal website. Wait, now let’s talk about some real stuff. How to build a website of your own? It is estimated that many people (whether technical or non-technical) have the urge to build a small online world of their own, but they are afraid of not knowing where to start, or because they don’t know how deep the water is. , in fact, building a website is not as complicated as imagined. As long as you follow the following operations, there will be no problem. There are five steps in total:
(1) Register domain name
(2) Purchase space
(3) Server environment installation (website code deployment)
(4) Submit filing
(5) Domain name resolution
1. Register domain name
Here is Alibaba Cloud as an example (you can also choose other Service providers: Tencent Cloud, Baidu Cloud and foreign).
Registering a domain name is very simple, you just need to spend money, and it is not expensive. A .com domain name costs 45 yuan in the first year (recommended to use: .com domain name), and the latest top domain names cost less than 10 yuan. To arrive, first open the website: http://www.aliyun.com/, please click to register the domain name, refer to the picture below:
Query the domain name you want to register, for example : yiibai123.com, just enter yiibai123 to search. Why do you need to search? This is because some domain names may have been registered by others, and you can register them as long as others have not registered them yet. The search results are as shown below:
Related recommendations: "WordPress Tutorial"
Click to add to the list, If you are not logged in, it will ask you to log in (if you do not have an account, you can register an account first and log in). Assuming that you have already logged in to your account, it will be as shown below on the left:
Click to checkout and pay.
2. Purchase a server
If you want to run your website (blog) stably, you need to purchase your own server. The server does not need to be very good, but it is required to be an independent host. . It doesn’t matter if you don’t know how to buy it. In fact, Alibaba Cloud has application-level servers specifically designed for this. You can purchase it by referring to the following link:
Lightweight application server: http://common-buy.aliyun.com/?spm=5176.8064714.850240.pricedetail1111.7da62946Mv8XAQ&commodityCode=swas#/buy, as shown in the figure below :
#3. Website registration
According to the "Internet Information Services Management Measures" of the Ministry of Industry and Information Technology (State Council Order No. 292), the website will not be registered in the future. Before completing the registration, you cannot open access to servers in mainland China. If your website is hosted on a node server in mainland China, or if you activate a CDN service, you must apply for ICP (Internet Content Provider) registration. If the website server is a non-Mainland China node, there is no need to apply for registration.
ICP includes two types:
(1) ICP filing: For websites that are purely informational and do not involve direct sales, you need to apply for ICP filing. ICP filing can be applied through website hosting server providers or cyberspace service providers (such as China Telecom, China Mobile, China Unicom, etc.). Alibaba Cloud ICP registration operations can be divided into: first-time registration, access registration, new website registration (the original registration is not in Alibaba Cloud) and new website registration (the original registration is in Alibaba Cloud). Note: Personal websites fall into this category.
(2) Commercial ICP license: For online platforms or third-party sellers of goods or services, a commercial license is required. To apply for an operational ICP license, you must first have a valid ICP filing number. Users need to go to the relevant departments of the local administration to handle the operational registration. The service provider can assist in providing qualifications and access agreements.
Regarding website registration requirements, you can learn about it through: http://beian.aliyun.com/. It should be noted that different server providers have their own registration access. Cross-service provider registration is not allowed, that is to say: A server purchased from Alibaba cannot be registered with a service provider other than Alibaba Cloud.
4. Server environment installation
The installation of the server is relatively simple. Here we mainly introduce: Window system and Linux system servers. For those who are not familiar with IT technology, it is recommended to choose the Window system when purchasing a server, so as to avoid unnecessary troubles. If you have some basic IT skills and want to understand and learn the Linux system, it is recommended to install CentOS or Ubuntu.
Window installation PHP environment: WampServer and other integrated environments are installed, search and download the WampServer software, and install it to a directory, such as: C:/wamp.
Linux installation PHP environment: http://www.yiibai.com/nginx/lnmp.html
5. Install blog system
Use There are too many free systems for building websites or personal blogs. After years of development, these systems are very robust and powerful. Here are several mainstream free blogging systems.
·Wordpress: The well-deserved king. It has many users at home and abroad, a large number of plug-ins and templates, and it is also very good at SEO.
·bo-blog: A well-known blog system based on PHP technology in China, with many beautiful Chinese templates.
·Z-BlogPHP: The system code has not been updated for a while, which does not affect use.
·emlog : emlog is a powerful blog and CMS website building system based on PHP and MySQL. We are committed to providing you with content creation and site building services that are fast, stable, and extremely simple and comfortable to use.
Recommendation: Wordpress has many users, and it is easier to find solutions to any problems.
The installation is very simple. Download the source code of the system and unzip the code file to the installation directory where WampServer is installed (as mentioned earlier: C:/Wamp directory), and access it through the browser on the server. : http://localhost to install.
6. Domain name resolution
Assuming that you have registered a domain name and successfully installed the blog system, the necessary task for a blog website that is open to the public is to resolve the domain name. First, Log in to your Alibaba Cloud account, enter the console, and find the domain name and website (Wanwang) in the side menu item -> Domain name, as shown below:
## Select the domain name you want to resolve, and then click the resolution link to go to the following interface: When you first enter, there should be an empty resolution list. Click to add resolution. In the pop-up input box, fill in the relevant data values, as shown in the figure below: After adding the above record, you can access your website through the domain name in the browser website. Note: The parsing added above does not take effect immediately. The TTL value specifies the effective time. The selected value in this option is 10 minutes, which means that it needs to be added and submitted for 10 minutes before it can take effect.The above is the detailed content of How to create your own web page. For more information, please follow other related articles on the PHP Chinese website!