How to Install WordPress 5.3 on Ubuntu, Debian & Linux-Mint - Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Friday, October 18, 2019

How to Install WordPress 5.3 on Ubuntu, Debian & Linux-Mint



1 Server Basic Configurations
Domain name :- localhost  wordpress.lan

Step1 :- sudo nano /etc/hosts
127.0.0.1     localhost  wordpress.lan
Step2 :- ping wordpress.lan

LAMP  Installation
Step3 :- sudo apt-get install apache2 apache2-utils php5 php5-mysql mysql-client mysql-server

Install PhpMyAdmin Web InterfaceStep4 :- sudo  apt-get install phpmyadmin
Step5 :- sudo  cp  /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/
Step6 :- sudo  mv  /etc/apache2/conf-available/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
Step7 :- ls  /etc/apache2/conf-available/
Step8 :- sudo  a2enconf  phpmyadmin

Create a Virtual Host on Apache web server
Step9 :- sudo  nano  /etc/apache2/sites-available/wordpress.conf
<VirtualHost *:80>
        ServerName        wordpress.lan
        ServerAdmin       webmaster@localhost
        DocumentRoot      /var/www/html
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Activate the new virtual host
Step10 :- sudo  a2ensite  wordpress.conf
Step11 :- sudo  service   apache2   restart

To avoid that future Apache error concerning Server Name FQDN
Step12 :- Sudo  nano /etc/apache2/apache2.conf
Step13 :- ServerName wordpress.lan
Step14 :- sudo service apache2 restart

2 Create WordPress Database
Step15 :- mysql  -u   root   -p
Step16 :- sudo dpkg-reconfigure mysql-server-5.6
Step17 :- sudo mysql_secure_installation

Using PhpMyAdmin
Point your browser to your server IP or virtual domain name and login to PhpMyAdmin using root account

Using Command Line
Step18 :- mysql -u root -p
mysql> CREATE DATABASE IF NOT EXISTS wordpress;
mysql> CREATE USER cloudnetwork@localhost IDENTIFIED BY "your_password_here";
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO cloudnetwork@localhost;
mysql> FLUSH PRIVILEGES;
mysql> quit

3 Download and Install WordPress
Step19 :- wget http://wordpress.org/latest.tar.gz
Step20 :- sudo tar xvzf latest.tar.gz
Step21 :- sudo cp -r wordpress/*  /var/www/html
Step22 :- sudo service apache2 restart


Step23 :- sudo service mysql restart
Step24 :- sudo chown -R www-data  /var/www/html
Step25 :- sudo chmod -R 755  /var/www/html

http://wordpress.lan/index.php
http://your_server_IP/index.php

Step26 :- sudo chown -R root  /var/www/html