How to Set Up CMS (Wordpress) On Ubuntu 14



Before proceed to the next step, you need to download or copy a wordpress installation file, place it wherever on the directory you desire (ex: Document).

#1-----Now Log on with SUPER USER:
fm@fm-vm:~$ sudo su

#2-----Set the IP to DHCP in order to run installing command.
root@fm-vm:/home/fm# nano /etc/network/interfaces
#-----Uncommand all of our setting and write this 2 last line script (2 fisrt line was made by default setting, leave it unchange):
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

#3-----Now restart the networking:
root@fm-vm:/home/fm# ifdown eth0 && ifup eth0
#------or this command:
root@fm-vm:/home/fm# sudo service network-manager restart

#4-----Then check the internet connection by pinging google.com, after connection is ready then move to the next step.
root@fm-vm:/home/fm# ping google.com
PING google.com (74.125.200.101) 56(84) bytes of data.
64 bytes from sa-in-f101.1e100.net (74.125.200.101): icmp_seq=1 ttl=43 time=134 ms

#5-----After connection ready, now install few software needed:
root@fm-vm:/home/fm# apt-get install mysql-server php5 php5-gd php5-mysql
-------On the installation process you may need to configure few things, leave all the password blank or fill it if you want, look at the screenshoot below:


#6-----After installing software, now log in to the mysql:
root@fm-vm:/home/fm# mysql -uroot -p
Enter password:
#------Create a database for wordpress, then quit mysql:
 mysql> create database farihindb;
Query OK, 1 row affected (0.00 sec)

mysql> quit
Bye

#7-----Now go to Your Wordpress Installation file:
root@fm-vm:/home/fm# cd Documents

#8-----List the file, see if wordpress was there:
root@fm-vm:/home/fm/Documents# ls
wordpress-4.6.1.tar.gz

#9-----Now extract the wordpress file:
root@fm-vm:/home/fm/Documents# tar zxvf wordpress-4.6.1.tar.gz
#------List the file, see if worpress extracted correcly:
root@fm-vm:/home/fm/Documents# ls
wordpress  wordpress-4.6.1.tar.gz

#10----Now step inside the wordpress folder, copy the wp-config-sample.php to wp-config.php:
root@fm-vm:/home/fm/Documents# cd wordpress
root@fm-vm:/home/fm/Documents/wordpress# cp wp-config-sample.php wp-config.php

#11-----Now open the wp-config.php and make a few change on this line:
root@fm-vm:/home/fm/Documents/wordpress# nano wp-config.php
define('DB_NAME', 'farihindb');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', '');

#12-----Now go to /var/www directory, and copy html folder to html-ori directory, then remove the html directory:
root@fm-vm:/home/fm/Documents/wordpress# cd /var/www/
root@fm-vm:/var/www# cp html html-ori -r
root@fm-vm:/var/www# rm html -r

#13-----Now move the wordpress folder to the /var/www directory, rename it to html, then list the file to see if the directory was there, and restart the apache2:
root@fm-vm:/var/www# mv /home/fm/Documents/wordpress html
root@fm-vm:/var/www# ls
html  html-ori
root@fm-vm:/var/www# service apache2 restart

#14----- Now open your internet browser and type your primary domain.
#-------1. If there is nothing wrong you will see a wordpress installaation page.
#-------2. Fill in needed information.
#-------3. If the installation succcess, you will get success notification. Try loging in by clicking on Log In.
#-------4. Fill your username and password (on the 2nd step).
#-------5. After successful log in you will be directed to Wordpress Dashboard.
#-------6. Try Opening the first domain to see if the web page was changed.

Post a Comment

Previous Post Next Post