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:
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

There are four ways to adjust the WordPress article list: use theme options, use plugins (such as Post Types Order, WP Post List, Boxy Stuff), use code (add settings in the functions.php file), or modify the WordPress database directly.

To build a website using WordPress hosting, you need to: select a reliable hosting provider. Buy a domain name. Set up a WordPress hosting account. Select a topic. Add pages and articles. Install the plug-in. Customize your website. Publish your website.

WordPress IP blocking plugin selection is crucial. The following types can be considered: based on .htaccess: efficient, but complex operation; database operation: flexible, but low efficiency; firewall: high security performance, but complex configuration; self-written: highest control, but requires more technical level.

A step-by-step guide to replacing a header image of WordPress: Log in to the WordPress dashboard and navigate to Appearance >Theme. Select the topic you want to edit and click Customize. Open the Theme Options panel and look for the Site Header or Header Image options. Click the Select Image button and upload a new head image. Crop the image and click Save and Crop. Click the Save and Publish button to update the changes.

WordPress editing dates can be canceled in three ways: 1. Install the Enable Post Date Disable plug-in; 2. Add code in the functions.php file; 3. Manually edit the post_modified column in the wp_posts table.

The steps to create a custom header in WordPress are as follows: Edit the theme file "header.php". Add your website name and description. Create a navigation menu. Add a search bar. Save changes and view your custom header.

Importing WordPress source code requires the following steps: Create a sub-theme for theme modification. Import the source code and overwrite the files in the sub-topic. Activate the sub-theme to make it effective. Test the changes to make sure everything works.

WordPress Error Resolution Guide: 500 Internal Server Error: Disable the plug-in or check the server error log. 404 Page not found: Check permalink and make sure the page link is correct. White Screen of Death: Increase the server PHP memory limit. Database connection error: Check the database server status and WordPress configuration. Other tips: enable debug mode, check error logs, and seek support. Prevent errors: regularly update WordPress, install only necessary plugins, regularly back up your website, and optimize website performance.
