installing WordPress on Linux
$ wget -c http://wordpress.org/latest.tar.gz
$ tar -xzvf latest.tar.gz $ sudo rsync -av wordpress/* /var/www/html/ $ sudo chown -R www-data:www-data /var/www/html/ $ sudo chmod -R 755 /var/www/html/ $ mysql -u root -p mysql> CREATE DATABASE wp_myblog; mysql> GRANT ALL PRIVILEGES ON wp_myblog.* TO 'your_username_here'@'localhost' IDENTIFIED BY 'your_chosen_password_here'; mysql> FLUSH PRIVILEGES; mysql> EXIT;
$ sudo mv wp-config-sample.php wp-config.php
then update it with your database information under the MySQL settings section (refer to the highlighted boxes in the image below):
gedit wp-config.php
###NOTE: The Database Collate type. Don't change this if in doubt.
$ sudo systemctl restart apache2.service $ sudo systemctl restart mysql.service