Okay bro, sis, not posting for a long time because there are things that make me not post (read: lazy)
Let ‘s stick to the point, this time I will explain how to install WordPress on OS Linux.
First we have to install Apache2 first, if you don’t already have one, you can see the post before this which discusses Apache2.
What we need next is the MySQL server. How to install it like this
sudo apt-get install mysql-client mysql-server
it will pop up as below
and enter the root (admin) password that you want to enter.
But, your MySQL is not completely safe, we have to install one more thing, that is,
First, you will be asked to install the ‘validate_password’ plugin, so press Yes (Y) and Enter. The most important thing is, if you don’t want to change the root password (admin), press No (N), then Yes (Y) afterwards.
Next we have to install PHP and modules to work with the web and database. How to install it like this
apt-get install software-properties-common
add-apt-repository ppa: ondrej / php
apt-get install php7.2
And to test whether the php works with the web server, we try to create a file called info.php in the / var / www / html folder
sudo nano /var/www/html/info.php
and paste the code below into the info.php file
If so, then open localhost / info.php, then it will look like this
The last is to install WordPress. The first we have to download the latest wordpress (the newest wordpress) by:
wget -c http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
If you have, move the file from the folder that was extracted into Apache’s root folder
sudo rsync -av wordpress / * / var / www / html /
After that, we change the permissions of our website folder.
sudo chown -R www-data: www-data / var / www / html /
sudo chmod -R 755 / var / www / html /
The last thing is, installing Database for WordPress Type
mysql -u root -p
and type as below, enter each line
mysql> CREATE DATABASE wp_myblog;
mysql> GRANT ALL PRIVILEGES ON name-datebase. * TO ALTER USER ‘root’ @ ‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘password-mu’;
mysql> FLUSH PRIVILEGES;
After that move to the / var / www / html folder and rename wp-config-sample.php to wp-config.php. After that update the contents with the same fields as you created in MySQL.
The trick is just to click, click, just as easy as making Facebook and other social media.
Maybe that’s what I can write this time, as usual, criticism & suggestions are needed in my writing to be better in the future. So, you can contact me via Twitter, Instagram, which is listed at the bottom of my website, or on the criticisms & suggestions menu which is right on the top of my web.