blog sistemITecblog sistemITec

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Schedule a job on Aruba Switch

    July 5, 2023

    How to decrypt and verify text or files with GPG Services

    June 28, 2023

    How to send WhatsApp messages to someone without saving their phone number

    June 19, 2023
    Facebook Twitter Instagram
    • sistemITec website
    • contact us
    Facebook Instagram YouTube LinkedIn
    blog sistemITecblog sistemITec
    • IT Fundamentals
        Featured
        IT Fundamentals

        How to send WhatsApp messages to someone without saving their phone number

        By Cornel CabaJune 19, 20230
        Recent

        How to send WhatsApp messages to someone without saving their phone number

        June 19, 2023

        Network Topology Guide

        June 19, 2023

        Top 20 Essential ESXCLI Commands

        June 19, 2023
      1. Gaming
          Featured
          Gaming

          Application load error 5:0000065434 in Steam

          By sistemitec's teamAugust 8, 20210
          Recent

          Application load error 5:0000065434 in Steam

          August 8, 2021

          The Best Overlooked Video Game Of 2020

          August 2, 2021

          Hearts of Iron IV Review

          August 2, 2021
        1. Software
            Featured
            Software

            Schedule a job on Aruba Switch

            By Cornel CabaJuly 5, 20230
            Recent

            Schedule a job on Aruba Switch

            July 5, 2023

            How to decrypt and verify text or files with GPG Services

            June 28, 2023

            Windows Server 2019/ Product Key Free

            June 19, 2023
          1. Gadgets
              Featured
              Gadgets

              How to Simulate Arduino Projects With Proteus

              By Cornel CabaMarch 17, 20220
              Recent

              How to Simulate Arduino Projects With Proteus

              March 17, 2022

              How connect Apple AirPods to a Windows PC

              February 10, 2022

              How to Put Ebooks on Amazon Kindle

              October 12, 2021
            1. Tech
                Featured
                Tech

                Lenovo Unveils IdeaPad Laptops, 5G Internet & a Snapdragon 8cx Chipset

                By Cornel CabaJanuary 15, 20210
                Recent

                Lenovo Unveils IdeaPad Laptops, 5G Internet & a Snapdragon 8cx Chipset

                January 15, 2021

                2021 Apple MacBook Air: Apples New Leak Reveals Razor-thin Redesign

                January 15, 2021
                8.9

                Review: Xiaomi’s New Loudspeakers for Hi-fi and Home Cinema Systems

                January 15, 2021
              blog sistemITecblog sistemITec
              Home»Gadgets»How to install WordPress on Ubuntu
              Gadgets

              How to install WordPress on Ubuntu

              sistemitec's teamBy sistemitec's teamFebruary 11, 2021Updated:August 12, 2022No Comments6 Mins Read
              Facebook Twitter Pinterest LinkedIn Tumblr Email
              Share
              Facebook Twitter LinkedIn Pinterest Email

              In this article, we will focus on how to install WordPress on Ubuntu 18.04. WordPress is a free and open-source content management platform based on PHP and MySQL. It’s the world’s leading blogging and content management system with a market share of over 60%, dwarfing its rivals such as Joomla and Drupal.

              WordPress was first released on May 27th, 2003 and powers over 60 million websites to date! So powerful and popular it has become that some major brands/companies have hosted their sites on the platform. These include Sony Music, Katy Perry, New York Post, and TED.

              Why WordPress is so Popular?

              So why is WordPress this popular? Let’s briefly look into some of the factors that have led to the immense success of the platform.

              Ease of Use

              WordPress comes with a simple, intuitive and easy to use dashboard. The dashboard doesn’t require any knowledge in web programming languages like PHP, HTML5, and CSS3 and you can build a website with just a few clicks on a button. In addition, there are free templates, widgets, and plugins that come with the platform to help you get started with your blog or website.

              Cost effectiveness

              WordPress drastically saves you the agony of having to pay developer tonnes of cash to develop your website. All you have to do is to get a free WordPress theme or purchase one and install it. Once installed, you have the freedom to deploy whatever features that suit you and customize a myriad of features without running much code. What’s more, is that it takes a much shorter time to design your site that coding from scratch.

              WordPress sites are Responsive

              WordPress platform is inherently responsive and you do not have to stay awake worrying about your sites being able to fit across multiple devices. This benefit also adds to your site being ranked higher in Google’s SEO score!

              WordPress is SEO ready

              WordPress is built using well-structured, clean and consistent code. This makes your blog/site easily indexable by Google and other search engines thereby making your site rank higher. In addition, you can decide which pages rank higher or alternatively use SEO plugins like the popular Yoast plugin which enhances your site’s ranking on Google.

              Easy to install and upgrade

              It’s very easy to install WordPress on Ubuntu or any other operating system. There are so many open-source scripts to even automate this process. Many hosting companies provide a one-click install feature for WordPress to get you started in no time.

              Install WordPress on Ubuntu 18.04

              Before we begin, let’s update and upgrade the system. Login as the root user to your system and update the system to update the repositories.

              apt update && apt upgrade

              Output

              update and upgrade the ubuntu system

              Next, we are going to install the LAMP stack for WordPress to function. LAMP is short for Linux Apache MySQL and PHP.

              Step 1: Install Apache

              Let’s jump right in and install Apache first. To do this, execute the following command.

              apt install apache2

              Output

              Install Apache2

              To confirm that Apache is installed on your system, execute the following command.

              systemctl status apache2

              Output

              how to check apache2 status

              To verify further, open your browser and go to your server’s IP address.

              https://ip-address

              Output

              Apache Web Server Default Page

              Step 2: Install MySQL

              Next, we are going to install the MariaDB database engine to hold our WordPress files. MariaDB is an open-source fork of MySQL and most of the hosting companies use it instead of MySQL.

              apt install mariadb-server mariadb-client

              Output

              Install MySQL Mariadb Server Mariadb Client

              Let’s now secure our MariaDB database engine and disallow remote root login.

              $ mysql_secure_installation

              The first step will prompt you to change the root password to login to the database. You can opt to change it or skip if you are convinced that you have a strong password. To skip changing type n.

              Change The Root Password

              For safety’s sake, you will be prompted to remove anonymous users. Type Y.

              Remove Anonymous Users

              Next, disallow remote root login to prevent hackers from accessing your database. However, for testing purposes, you may want to allow log in remotely if you are configuring a virtual server

              Disallow Root Login Remotely

              Next, remove the test database.

              Remove Test Database

              Finally, reload the database to effect the changes.

              Reload Privilege Table

              Step 3: Install PHP

              Lastly, we will install PHP as the last component of the LAMP stack.

              apt install php php-mysql

              Output

              Install Php

              To confirm that PHP is installed , created a info.php file at /var/www/html/ path

              vim /var/www/html/info.php

              Append the following lines:

              <?php
              phpinfo();
              ?>
              

              Save and Exit.

              Open your browser and append /info.php to the server’s URL.

              https://ip-address/info.php

              Output

              Info Php Webpage

              Step 4: Create WordPress Database

              Now it’s time to log in to our MariaDB database as root and create a database for accommodating our WordPress data.

              $ mysql -u root -p

              Output

              Mysql Root Login

              Create a database for our WordPress installation.

              CREATE DATABASE wordpress_db;

              Output

              Create WordPress Database

              Next, create a database user for our WordPress setup.

              CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'password';

              Output

              Create User For WordPress Database
              Grant privileges to the user

              Next, grant the user permissions to access the database

              GRANT ALL ON wordpress_db.* TO 'wp_user'@'localhost' IDENTIFIED BY 'password';

              Output

              Grant Privileges To Wp User On WordPress Database

              Great, now you can exit the database.

              FLUSH PRIVILEGES;
              Exit;
              

              Step 5: Install WordPress CMS

              Go to your temp directory and download the latest WordPress File

              cd /tmp && wget https://wordpress.org/latest.tar.gz

              Output

              Download WordPress

              Next, Uncompress the tarball which will generate a folder called “wordpress”.

              tar -xvf latest.tar.gz

              Output

              Uncompress WordPress Tarball

              Copy the wordpress folder to /var/www/html/ path.

              cp -R wordpress /var/www/html/

              Run the command below to change ownership of ‘wordpress’ directory.

              chown -R www-data:www-data /var/www/html/wordpress/

              change File permissions of the WordPress folder.

              chmod -R 755 /var/www/html/wordpress/

              Create ‘uploads’ directory.

              $ mkdir /var/www/html/wordpress/wp-content/uploads

              Finally, change permissions of ‘uploads’ directory.

              chown -R www-data:www-data /var/www/html/wordpress/wp-content/uploads/

              Open your browser and go to the server’s URL. In my case it’s

              https://server-ip/wordpress

              You’ll be presented with a WordPress wizard and a list of credentials required to successfully set it up.

              install wordpress on ubuntu 18.04

              Fill out the form as shown with the credentials specified when creating the WordPress database in the MariaDB database.

              Leave out the database host and table prefix and Hit ‘Submit’ button.

              install wordpress on ubuntu 18.04

              If all the details are correct, you will be given the green light to proceed. Run the installation.

              Alright Sparky Run The Installation

              Fill out the additional details required such as site title, Username, and Password and save them somewhere safe lest you forget. Ensure to use a strong password.

              Welcome More Information Needed

              Scroll down and Hit ‘Install WordPress’.

              If all went well, then you will get a ‘Success’ notification as shown.Success installing WordPress

              Sucess

              Click on the ‘Login’ button to get to access the Login page of your fresh WordPress installation.

              Log In To WordPress

              Provide your login credentials and hit ‘Login’.

              wordpress dashboard

              Voila! there goes the WordPress dashboard that you can use to create your first blog or website!

              Congratulations for having come this far. You can now proceed to discover the various features, plugins, and themes and proceed setting up your first blog/website!

              admin install terminal wordpress
              Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
              Previous ArticleHow to Install WordPress with Apache in Ubuntu
              Next Article Creare a Website on the Dark Web
              sistemitec's team

                Related Posts

                How to Simulate Arduino Projects With Proteus

                March 17, 2022

                How to Manually Restore a WordPress Website From a Backup

                February 28, 2022

                How connect Apple AirPods to a Windows PC

                February 10, 2022

                How to Put Ebooks on Amazon Kindle

                October 12, 2021
                Add A Comment

                Leave A Reply Cancel Reply

                Editors Picks

                Shrinking VMDK Virtual Disk Size on VMWare ESXi

                August 11, 2022

                Oculus Quest X Headset: Discover a Shining New Star

                January 5, 2021

                iPhone Pro 13 Rumored to Feature 1 TB of Storage

                January 5, 2021

                Fujifilm’s 102-Megapixel Camera is the Size of a Typical DSLR

                January 5, 2021
                Top Reviews
                9.1

                Review: Mi 10 Mobile with Qualcomm Snapdragon 870 Mobile Platform

                By Cornel Caba
                8.9

                Comparison of Mobile Phone Providers: 4G Connectivity & Speed

                By Cornel Caba
                8.9

                Which LED Lights for Nail Salon Safe? Comparison of Major Brands

                By Cornel Caba
                Advertisement
                © 2023 sistemITec. Designed by Cornel Caba.
                • sistemITec.com
                • cornelcaba.com

                Type above and press Enter to search. Press Esc to cancel.