How to install and configure Wordpress in Ubuntu?

  11 months ago     Views:  662  
Jitesh Meniya
2 Follows


Wordpress is the most popular open-source CMS framework for website building. Wordpress runs on the top of the PHP language and uses MySQL or MariaDB as database. Wordpress is easy to run blogging or cart websites and it does not need costly server. Also it does not need heavy programming knowledge to run Wordpress project and it is open-source CMS web framework. Thats is why Wordpress is most popular in running websites.

There are many ways to install and run Wordpress project. In this article, We will download Wordpress project from the official site and configure as this is the easy way to install and configure ubuntu.

Prerequisites

You need to be logged in as non-root user with sudo permission. You should already installed LAMP stack installed in your server else You can also checkout this article on how to install LAMP stack in ubuntu.

Download and install Wordpress

After installing LAMP stack, first of all, download latest Wordpress project compressed tar file. For that, go to the apache2 root folder.

cd /var/www/html

Download latest version of Wordpress project compressed file.

wget -c http://wordpress.org/latest.tar.gz

Extract project folder, Now your project is ready to run.

tar -xzvf latest.tar.gz

Give necessary permission for project

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

Create MySQL database

You have downloaded Wordpress project, now you will need to create and setup database. So first, login to MySQL command line shell.

mysql -u root -p

Type password and you will redirect to MySQL command line shell. Create database using bellow command.

CREATE DATABASE wordpress_database;

Create new user and grant permission to database

GRANT ALL PRIVILEGES ON wordpress_database.* TO 'wordpress_username_here'@'localhost' IDENTIFIED BY 'wordpress_password';

And flush privileges

FLUSH PRIVILEGES;

Last exit MySQL command line.

EXIT;

Setup and run Wordpress project

Now you have also created database. In the last, setup Wordpress project and run in the browser. First go to the project root directory and copy or rename wp-config-sample.php file to wp-config.php file.

sudo cp wp-config-sample.php wp-config.php

Then open wp-config.php file and change database credentials to yours one.

/** The name of the database for WordPress */
define( 'DB_NAME', 'wordpress_database' );

/** MySQL database username */
define( 'DB_USER', 'wordpress_username_here' );

/** MySQL database password */
define( 'DB_PASSWORD', 'wordpress_password' );

And run your website address in browser and you will get bellow screen Wordpress setup wizard. Just run through setup wizard. First select language.

 

Input admin details.

Thats it. Your Wordpress website is configured and now you can login to your Wordpress admin panel and setup website.

Conclusion

This way, you can simply run Wordpress website. I hope this will help you to setup new Wordpress website. If you have any query regarding this article, please write in the bellow comment section.


Was this article helpful?

0 out of 0 person found this article helpful.

Leave a comment

OR

8 Comments

  • Image
    https://www.nolza2000.com
    September 21, 2020 Reply

  • Image
    Bryce Tomaszewski
    August 31, 2020 Reply

    YOU NEED FAST PROXY SERVERS ?

    Check it out this Anonymous and Private Proxy Servers.
    HTTP & SOCKS5 Proxy supported.
    IP Authentication or Password Authentication available.
    HERE: https://bit.ly/3ifZkmL

  • Image
    Virginia Tiegs
    August 30, 2020 Reply

    YOU NEED POTENTIAL CUSTOMERS THAT BUY FROM YOU ?

    I’m talking about a better promotion method than all that exists on the market right now, even better than email marketing.
    Just like you received this message from me, this is exactly how you can promote your business or product.

    CLAIM YOUR FREE TEST=> https://bit.ly/3lr6nLV

  • Image
    Burton Cansler
    August 11, 2020 Reply

    BEST PROGRAM FOR ADVERTISEMENT!

    XRumer is the best program for advertisement!
    It's have CAPTCHA recognizer, email verificator, and a lot of other functions...

    This software will help to increase traffic to website to hundreds, thousands times.
    Program have a rich seven year history, which use experience of professionals in search engine optimization.
    Appreciate and use a truly unique and powerful XRumer program, can both professionals and beginners.
    MORE INFO=> https://bit.ly/39RzWR4

  • Image
    GET WEBSITE TRAFFIC
    July 19, 2020 Reply

    YOU NEED QUALITY VISITORS for your: hackthestuff.com

    My name is Glory Flinders, and I'm a Web Traffic Specialist. I can get:
    - visitors from search engines
    - visitors from social media
    - visitors from any country you want
    - very low bounce rate & long visit duration

    CLAIM YOUR 24 HOURS FREE TEST => https://bit.ly/3h750yC

  • Image
    Ben Kimbrell
    June 21, 2020 Reply

    YOU NEED FREE PROXIES ?

    We provide great lists of free public proxy servers with different protocols to unblock contents,
    bypass restrictions or surf anonymously.
    Enjoy the unique features that only our page have on all the internet.
    All proxies work at the moment the list is updated.

    MORE INFO HERE=> https://bit.ly/2BiMfsJ

  • Image
    GET WEBSITE TRAFFIC
    June 15, 2020 Reply

    Hello Admin,

    YOU NEED QUALITY VISITORS for your: hackthestuff.com

    My name is Trista Breton, and I'm a Web Traffic Specialist. I can get:
    - visitors from search engines
    - visitors from social media
    - visitors from any country you want
    - very low bounce rate & long visit duration

    CLAIM YOUR 24 HOURS FREE TEST => https://bit.ly/3gqLEoE

    Do not forget to read Review to convince you, is already being tested by many people who have trusted it !!


    How to install and configure Wordpress in Ubuntu? - HackTheStuff - One destination for all stuff

  • Image
    GET WEBSITE TRAFFIC
    June 11, 2020 Reply

    Hello Admin,

    YOU NEED QUALITY VISITORS for your: hackthestuff.com

    My name is Marietta Mcdonough, and I'm a Web Traffic Specialist. I can get:
    - visitors from search engines
    - visitors from social media
    - visitors from any country you want
    - very low bounce rate & long visit duration

    CLAIM YOUR 24 HOURS FREE TEST => https://bit.ly/3gqLEoE

    Do not forget to read Review to convince you, is already being tested by many people who have trusted it !!


    How to install and configure Wordpress in Ubuntu? - HackTheStuff - One destination for all stuff