14-Day Money Back Guarantee on Cloud Solutions + 1H/mo extra Managed Support

14-Day Money Back Guarantee on Cloud + 1H/mo extra Managed Support

Setup WordPress on my server

December 10, 2022

In this guide provided by Space Hosting, we will show you how to install, setup and configure WordPress on your server hosting i.e Ryzen VPS, AMD Dedicated servers, etc.

 

Table of contents

  1. Introduction
  2. Install WordPress on your Server
  3. Basic Requirements
  4. Dependencies Installation
  5. Database Configuration
  6. WordPress Installation
  7. WebServer Configuration
  8. WordPress Configuration

If you don’t own a server, you can review our server hosting solutions or contact our sale department.

 
  • R9-VPS-KVM-S
  • 2.99

    First Month

  • Recurring Price $3.99/mo
  • CPU AMD RYZEN 9 5950X 4.9GHz
  • CORE 1 Core
  • RAM 2 GB DDR4
  • TECHNOLOGY KVM
  • INSTANT DEPLOYMENT YES
  • STORAGE 25 GB SSD NVME M.2
  • NETWORK 1GB/s (shared)
  • R9-VPS-KVM-S+
  • 3.75

    First Month

  • Recurring Price $4.99/mo
  • CPU AMD RYZEN 9 5950X 4.9GHz
  • CORE 1 Core
  • RAM 2 GB DDR4
  • TECHNOLOGY KVM
  • INSTANT DEPLOYMENT YES
  • STORAGE 30 GB SSD NVME M.2
  • NETWORK 1GB/s (shared)
  • R9-VPS-KVM-S++
  • 7.49

    First Month

  • Recurring Price $9.99/mo
  • CPU AMD RYZEN 9 5950X 4.9GHz
  • CORE 2 Core
  • RAM 4 GB DDR4
  • TECHNOLOGY KVM
  • INSTANT DEPLOYMENT YES
  • STORAGE 35 GB SSD NVME M.2
  • NETWORK 1GB/s (shared)

  •  
     

    1. Introduction

    WordPress is a content management system (CMS) that allows you to host and build websites. WordPress contains plugin architecture and a template and many more features. Nowadays, WordPress plays an important role in enhancing business because websites can be built through WordPress with the drag/drop feature available in plugins such as Elementor, WPBakery, etc. The designers, bloggers, and developers are moving to WordPress in order to make their work smooth and reliable.

     
    networking establish connection to the world
     

    The WordPress sites can be optimized through custom plugin development. It can boost the performance of the sites through already-developed plugins such as LiteSpeed cache, WPRocket, etc. One of the important factors that WordPress has is that it stores the content of the post or page in a database except for multimedia files etc, so it’ll also boost the performance because the content will fetch from the database through multiple SQL queries.

     
    control panel with web interface
     

    The migration of WordPress from one hosting provider to another or one server to another is very easy if we exclude the operating system dependencies. If your WordPress site is using the default extension of PHP and Apache/Nginx Web server then migration will be easy, you just have to make a backup of your WordPress folder and database then follow the steps given below in the new server, after replacing the new WordPress folder with the backup folder and new database with the backup database.

     
     

    2. Install WordPress on your Server

     
     

    3. Basic Requirements

    • Root Server
    • Fresh install Ubuntu/Debian OS
     

    Connect to the server using Putty

     
    Setup WordPress on my Server
     
     

    4. Dependencies

    Before installation of the WordPress application, the dependencies required in order to run WordPress without any problem must install on Linux. The applications such as Apache, and MariaDB perform the backend functions of WordPress.

     

    Type and send line by line the following commands in order to install the dependencies:

     
    apt install apache2 unzip wget curl mariadb-client mariadb-server
    
    apt install sudo nano -y 
    
    sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg2 -y 
    
    echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list 
    
    wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add - 
    
     

    Now it is time to update & upgrade your system with the following command:

    apt update && apt upgrade –y 
     

    Next, install php8.1 with the following command:

    apt install php8.1 -y
     

    Now access MySQL with the following command:

    mysql –u root –p
     
     

    5. Database Configuration

    Below commands will create a WordPress user and database and give privileges to the specific table.

     
    create database wordpress;
    create user 'wordpress'@'localhost' identified by 'PASSWORD';
    grant all privileges on wordpress.* to ‘wordpress’@’localhost’;
    flush privileges;
    exit;
    
     
     

    6. WordPress Installation

    Now configure WordPress and update the files/folders permission of WordPress.

     
    cd /var/www/html && rm index.html
    cd /home && wget https://wordpress.org/latest.zip
    unzip latest.zip
    rm latest.zip
    cp -R /home/wordpress/* /var/www/html
    chown -R www-data:www-data /var/www/html
    sudo find /var/www/html -type d -exec chmod 755 {} ; 
    sudo find /var/www/html -type f -exec chmod 644 {} ;
    
     

     

     

     

    7. WebServer Configuration

    We will use an Apache web server in order to run your WordPress site publically. This is an important step so please type the commands properly. we will use nano editor to edit the text file

     
    nano /etc/apache2/sites-available/wordpress.conf
     

    Note:

    • Edit <TypeYourEmail> and <TypeYourSubDomain>
    • for example: edit <TypeYourEmail> to [email protected] and <TypeYourSubDomain> to space-hosting.net

    Paste the Following content to the editor

    <VirtualHost *:80> 
    
         ServerAdmin <TypeYourEmail> 
    
         DocumentRoot /var/www/html/ 
    
         ServerName <TypeYour(Sub)Domain> 
    
      
         <Directory /var/www/html/> 
    
            Options +FollowSymlinks 
    
            AllowOverride All 
    
            Require all granted 
    
              <IfModule mod_dav.c> 
    
                Dav off 
    
              </IfModule> 
    
            SetEnv HOME /var/www/html 
    
            SetEnv HTTP_HOME /var/www/html 
    
         </Directory>

    Note: To save Nano Text Editor files, Press: CTRL + X Button to save a file

     

    Continue Typing the following commands

     
    a2ensite wordpress.conf
    systemctl restart apache2
    apt install certbot python3-certbot-apache -y
    certbot --apache
    
     
     

    WordPress Configuration

    Now everything is completed regarding typing commands in the terminal, Now it’s time to install WordPress using your browser. Installing WordPress is a simple process that takes less than five minutes to complete.

     

    # Just visit YourDomain.com/wp-admin and Type the following information in Database

     
    example of wordpress setup
     
    • After you have entered your database connection, click Submit.
    • On the next page click on “Run the installation”:
    • In the following menu, you can type information as required and create an admin also.
    • After you click on Install WordPress, it will confirm that the installation was successful. Now click on “Login” to log in to the WordPress Admin Panel.
     

    Click Submit and then type the information as required and Begin installation of WordPress!

     

    Let us know in the comments if you face any trouble 🙂

     
    Follow and like us:

    About US

    Welcome to the Space Hosting Blog

    Stay updated with the latest news from the Top Tier Leading European cloud provider. Explore technical insights from our engineers, interviews with satisfied customers, and our posts on the digital revolution.

    How to Flush Hosts in MySQL?

    Learn the importance "FLUSH HOSTS" command in MySQL and the method of how to flush hosts in MySQL. This guide provides a comprehensive understanding of the process, walking you through when to use it, its implications, and detailed steps to execute the command...

    Icarus Dedicated Server Guide For the Beginners

    Navigate through the vast terrain of Icarus dedicated server guide to setting up your dedicated server. From choosing the server type, managing backups, and understanding technical requirements, to detailed steps on installing and configuring your server - we offer a...

    How to run your own Ark Dedicated Server

    To run your own Ark dedicated server may appear daunting, but this guide demystifies the process. From the initial setup to managing game mods, every aspect is covered. Whether you are a gaming enthusiast or a hosting business exploring new ventures, this guide...

    Best Dedicated Server Hosting for Games

    Unleash superior gaming experiences with our guide on the best dedicated server hosting for games. We delve into high-performance servers, ensuring smooth gameplay for various online games. Catering to hosting businesses, resellers, and individual gamers, our insights...

    What is Dedicated Web Hosting?

    Explore what is dedicated web hosting and its significance in ensuring high-performance web solutions. Learn about its benefits, costs, and how it compares to other hosting types like Shared Hosting, Virtual Private Servers (VPS), and Physical Server Hosting. Find out...

    Advantages and Disadvantages of Dedicated Web Hosting

    Explore the balance between the advantages and disadvantages of dedicated web hosting in our detailed guide. Understand the advantages, including total server control and unrivaled power, against the disadvantages like high costs and required technical knowledge....

    How to Host a CSGO Server on Linux as a beginner

    Immerse in the thrill of your favorite game by learning how to host a CSGO server. This guide provides step-by-step instructions, ensuring a seamless gaming experience. Perfect for gamers and server enthusiasts seeking to create their own private CSGO server. Let's...

    How to Host a CS 1.6 Server as a beginner

    Immerse in the thrill of your favorite game by learning how to host a CS 1.6 server. This guide provides step-by-step instructions, ensuring a seamless gaming experience. Perfect for gamers and server enthusiasts seeking to create their own private CS 1.6 server....

    How to Access a VPS via SSH Protocol

    Discover how to securely access your VPS (Virtual Private Server) using SSH (Secure Shell). We offer a step-by-step guide to establishing a connection using the root or VPS Control Panel. In this guide provided by Space Hosting, we will learn how to access VPS via ssh...

    Best Valheim Dedicated Servers: 13 Things to Know

    Discover the best Valheim dedicated servers for an optimal gaming experience. We've curated a list of top hosting providers, examining features, customer service, pricing, and more. From fast ping and 24/7 server availability to easy setup, find a server that fits...

    You May Also Like…

    How to Flush Hosts in MySQL?

    How to Flush Hosts in MySQL?

    Learn the importance "FLUSH HOSTS" command in MySQL and the method of how to flush hosts in MySQL. This guide provides...

    0 Comments

    Submit a Comment

    Your email address will not be published. Required fields are marked *

    Pin It on Pinterest