
In this article, we will learn how to install and configure WordPress CMS in Ubuntu operating systems.
About WordPress
If there is a popular cms in today’s, then that is the WordPress. WordPress is becoming a most popular cms (content management system) because of his flexibility. WordPress is a open source platform which written in PHP and work with MySQL and It gives user friendly interface which helps to user to setup his website in few minutes. After complete the setup it gives the administrator console whose help to control whole website.
Prerequisites
Ubuntu 20.04 Server – ( Configure on Ubuntu )
Lets do it 🙂 !!
Fire up on Ubuntu and navigate the terminal on desktop. We need to install the required configurations for the WordPress installation. Hence to store the database we have to install the Mariadb server on ubuntu.
1 | apt install apache2 mariadb-server mariadb-client |

Now install the php which is the part of LAMP ( Linux Apache MySQL phpmyadmin ) setup.
1 | apt install php php-mysql |

Lets start the mysql server by using the following command.
1 | mysql -u root -p |

You can change the following configuration as per your need. Now create the database for wordpress.
1 | CREATE DATABASE wordpress_db; |
Create a username and password for control the wordpress database.
1 | CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'password'; |
Give the grant privileges to the user to control the database.
1 | GRANT ALL ON wordpress_db.* TO 'wp_user'@'localhost' IDENTIFIED BY 'password'; |
Update the rules and get exit.
1 2 | FLUSH PRIVILEGES; Exit; |

WordPress Installation
Download the latest version of wordpress cms from official website using the wget command.
1 | wget https://wordpress.org/latest.tar.gz |

Extract it by using the following command on current directory.
1 | tar -xvf latest.tar.gz |

Copy the wordpress folder on /var/ww/html/ directory.
1 | cp -R wordpress /var/www/html/ |
Chage the ownership of wordpress directory.
1 | chown -R www-data:www-data /var/www/html/wordpress/ |
Give some important permission
1 | chmod -R 755 /var/www/html/wordpress/ |

Create a sub directory in wp-content folder of wordpress.
1 | mkdir /var/www/html/wordpress/wp-content/uploads |
Again change the ownership of the upload directory.
1 | chown -R www-data:www-data /var/www/html/wordpress/wp-content/uploads/ |

Now you are almost near to wordpress installation. Again start your apache server and enter IP address on browser.
1 | systemctl start apache2 |

After selecting the language the database configuration page will come on your browser in which you have to enter the same credentials which were create in the Mariadb server.

Now click the following option and proceed to next.

Now you can create the user and password as your comfort because it will be used to access the admin console of wordpress.

Enter your administrator credentials.

Great !! WordPress will is successfully installed in Ubuntu and now you can create your website in few minutes.


A keen learner and passionate IT student. He has done Web designing, CCNA, RedHat, Ethical hacking, Network & web penetration testing. Currently, he is completing his graduation and learning about Red teaming, CTF challenges & Blue teaming.
Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates.
I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have
some experience with something like this. Please
let me know if you run into anything. I truly enjoy reading your blog and
I look forward to your new updates. https://uricasino114.com
jetpack
An interesting discussion is worth comment. I believe that you need to write more about this issue,
it may not be a taboo matter but typically people do
not speak about these topics. To the next! All the best!!