How to build your own website with WordPress? Xiaobai can also easily get started (Linux version)

1. Preparation: Prepare the website domain name, host and WordPress installation package

Before building a website, prepare these:

Figure 1: GoDaddy domain name purchase interface, arrow pointing to "Search for domain names” button, next to it, “Enter your name here”.

2. Install WordPress: Linux manual installation is super detailed

1. You can install the server panel for one-click creation

1Panel

  • Official website:https://1panel.cn
  • Features: Open source is free, supports one-click WordPress installation, and the interface is simple and suitable for beginners.

Pagoda (BTPanel)

  • Official website:https://www.bt.cn
  • Features: Chinese-friendly, supports one-click WordPress installation, built-in application store, suitable for domestic users.

CyberPanel

  • Official website:https://cyberpanel.net
  • Features: Open source and free, integrated LiteSpeed one-click installation of WordPress, and strong performance optimization.

CloudPanel

  • Official website:https://www.cloudpanel.io
  • Features: Free and lightweight, supports one-click WordPress installation, and built-in cache optimization.

cPanel

  • Official website:https://www.cpanel.net
  • Features: Worldwidely renowned, supports WordPress one-click installation, rich features, suitable for VPS management.

No panel? Linux is not installed with one click? No problem, manual installation is also very easy. You need to use the terminal, follow it:

  • Step 1: Connect to the server
    • Use SSH tools (such as terminal commandsssh username@your server IP) Log in to the Linux server.
    • Account password can be viewed in the server background
    • Enter your password or key and enter the command line interface.
  • Step 2: Install the necessary software
    • Update the system: Entersudo apt update && sudo apt upgrade -y(Ubuntu/Debian) orsudo yum update -y(CentOS).
    • PackApache(Web server):
    • sudo apt install apache2 -y or sudo yum install httpd -y
    • Start it:
    • sudo systemctl start apache2 or sudo systemctl start httpd
    • PackPHPand extension:
    • sudo apt install php libapache2-mod-php php-mysql -y or sudo yum install php php-mysqlnd -y
    • PackMySQL:
    • sudo apt install mysql-server -y or sudo yum install mariadb-server -y
    • start up:
    • sudo systemctl start mysql
  • Step 3: Download and Unzip WordPress
    • Enter/var/www/htmlTable of contents:cd /var/www/html.
    • Download WordPress:wget.
    • Unzip:tar -xvzf latest.tar.gz.
    • Remove excess files:mv wordpress/* . && rm -rf wordpress latest.tar.gz.
  • Step 4: Create a database
    • Log in to MySQL:sudo mysql -u root -p, enter your password.
    • Create a database:CREATE DATABASE wordpress_db;
    • Create a user:CREATE USER 'wordpress_user'@'localhost' IDENTIFIED BY 'Your Password';
    • Authorization:GRANT ALL PRIVILEGES ON wordpress_db.* TO 'wordpress_user'@'localhost';
    • Refresh and exit:FLUSH PRIVILEGES; EXIT;
  • Step 5: Configure WordPress
    • Copy the configuration file:cp wp-config-sample.php wp-config.php.
    • editwp-config.php:usenano wp-config.php, change these:
      • define('DB_NAME', 'wordpress_db');
      • define('DB_USER', 'wordpress_user');
      • define('DB_PASSWORD', 'your password');
      • Save (Ctrl+O, Enter, Ctrl+X Exit).
    • Give directory permissions:sudo chown -R www-data:www-data /var/www/html(Ubuntu) orsudo chown -R apache:apache /var/www/html(CentOS), restart Apache:sudo systemctl restart apache2orsudo systemctl restart httpd.
  • Step 6: Run the installation
    • Enter the domain name in the browser (for exampleSomeone domain.com), the WordPress installation page pops up.
    • Fill in the website title, administrator account, click "Install WordPress”, log in after installationSomeone domain.com/I'm afraid-admin.

Picture 2: PuTTY logs into Linux terminal and circlesssh username@IPOrder.
Picture 3: MySQL command line, displayCREATE DATABASESteps, write "Note the username and password" next to it.
Picture 4: Browser WordPress installation page, arrow pointing to "Install WordPress” button.

3. Choose the topic: Make the website beautiful

Enter the background and click "Appearance” -> “theme”, choose someone you like:

  • Free themes include Minimalist (simple style) or multi-column style.
  • point"activation”, the website will be replaced immediately!
    Want to be cooler? go**https://themeforest.net**Buy high-end themes, dozens of dollars are worth it.

Picture 5:Backstage"theme"Page, displaying free theme thumbnails, arrow points to "activation” button.

4. Fill in the content: add some of your own things

After the website is built, fill in some content:

  • point"article” -> “Add a new article”, writing text, uploading photos, like writing a diary.
  • Add the "About Me" page and go to "page” -> “Add a new page”.
  • use"Block Editor"Drag and drag, super simple, just put pictures and texts at will.

Picture 6: Block editor interface, display drag and drop blocks, mark "Add text""Add pictures” button.

5. Install plug-ins: Make the website more powerful

Plugins are the "super power" of WordPress! go"Plugin” -> “Add new plugin”, install these:

  • Yoast SEO: Let search engines find you.
  • Contact Form 7: Add contact form.
  • Elementor: Drag and drop the design page.
    After installation, follow the prompts to set it up, and the function will be updated!

Figure 7: Plugin page, circle "Yoast SEO"Search results, arrow points to"Install” button.

6. Publish the website: Let everyone see it

Content and settings OK, click "release"Button, the website will be online! Promote it:

  • Share to WeChat and Weibo.
  • Write interesting content and attract people.

Picture 8:Backstage"releaseThe button screenshot is taken, and the next one is "Click here to go online! ”.

7. Maintain the website: Use it for a long time

Regular maintenance:

  • Update WordPress, themes, plugins (backend"renew”)
  • Backup data (usingUpdraftPlusPlugin, super convenient).

Figure 9:Backstage"renewThe "page marked with the "Update Available" prompt, and next to it, "Remember to clickrenewoh".

Tips for Novice

  • Don't be afraid of making mistakes, just give it a try.
  • Stay stuck to **https://wordpress.org/support/**Forum asked, there are so many kind-hearted people.

Follow these detailed steps and pictures and your website will be online. Try it quickly and look forward to your works!

Share:

More Posts