Login in to mysql as a root
$ mysql -u root -p
Create database and user what your WordPress is using.
CREATE DATABASE soiviwordpress; GRANT ALL ON soiviwordpress.* TO [email protected] IDENTIFIED BY "SECRETPASSWORD"; EXIT;
Create public_html folder and download latest WordPress tar package.
$ mkdir ~/public_html/ $ cd ~/public_html/ $ wget http://wordpress.org/latest.tar.gz
Extract tar file and remove it. Then move all files and folders to public_html folder and remove wordpress folder.
$ tar -xf latest.tar.gz $ rm latest.tar.gz $ mv wordpress/* . $ rmdir wordpress/
If your going to use domain name I recommend you use it when installing WordPress. That will save your time. ( I’m using virtual website. Here is tutorial how to do virtual website: How to create virtual website )
Open firefox. ( My domain name is test.soivi where I’m going to install WordPress )
$ firefox http://test.soivi/
You have to create manually wp-config.php
$ nano ~/public_html/wp-config.php
Paste whole text what WordPress is asking you to do. ( Text is something like this ).
BE SURE YOU WILL COPY THE WHOLE TEXT WHAT WORDPRESS IS ASKING YOU TO COPY.
<?php /** * The base configurations of the WordPress. * * This file has the following configurations: MySQL settings, Table Prefix, ... ... ... /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');
Now you have successfully installed WordPress and tested it really works.