In last post I already demonstrate a few command in shell for helping me, here’s quick summary of those command :

Wget

I use it most for download something, like themes or plugin for one of my blog.

For example :

I took one theme from today weblog tools collection, pick Excel theme.

1. Go to theme folder

al@hostingformula [~]# cd www/books/wp-content/themes/

al@hostingformula [~/www/books/wp-content/themes]# ls
./ ../ blue-zinfandel-2column.zip default/

cd, this command will move me to directory xxxx

ls, this command will list all files and folders in current directory

2. Download theme and unpack

al@hostingformula [~/www/books/wp-content/themes]# wget http://alphablogdesigns.com/xxxxxxyyyyyyyy/excel.zip

–09:23:57– http://alphablogdesigns.com/xxxxxxyyyyyyyy/excel.zip
=> `excel.zip’
Resolving alphablogdesigns.com… 67.212.165.26
Connecting to alphablogdesigns.com|67.212.165.26|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 120,593 (118K) [application/zip]

100%[====================================>] 120,593 345.65K/s

09:23:58 (345.32 KB/s) – `excel.zip’ saved [120593/120593]

See directory list now using ls :

al@hostingformula [~/www/books/wp-content/themes]# ls
./ ../ blue-zinfandel-2column.zip default/ excel.zip

As you see there is one file ‘excel.zip’ there.

Now unpack the file :

al@hostingformula [~/www/books/wp-content/themes]# unzip excel.zip

Hit Enter and you’ll see some process :

inflating: excel/searchform.php
inflating: excel/sidebar.php
inflating: excel/single.php
inflating: excel/style.css
al@hostingformula [~/www/books/wp-content/themes]#

Finished, you can see the theme. Ready to use, thanks to alphablogdesign for providing this great theme.

Give back my blog soul

 Tips  Comments Off
Apr 052008
 

I already pack my blog in old host and transfer the files to new home.

Today I’ll give my blog soul back icon smile Give back my blog soul

Creating Database

It’s common process in setting up database in cpanel.

Click MySQL Databases icon in cpanel.

hosting7 Give back my blog soul

1. Creating database ‘knockdown’

hosting8 Give back my blog soul

2. Followed by add new user

hosting9 Give back my blog soul

3. We need to add that user to database we already create

hosting10 Give back my blog soul

4. Assign privileges to user

hosting11 Give back my blog soul

5. Edit wp-config.php with data above

hosting12 Give back my blog soul

DB_NAME, DB_USER and DB_PASSWORD will be use for restoring database data.

6. Restoring database

[oneone5@host239 knockdown]$ ls
index.php readme.html wp-atom.php wp-commentsrss2.php wp-content wp-includes wp-mail.php wp-register.php wp-settings.php
knockdown.sql wp-admin wp-blog-header.php wp-config-sample.php wp-cron.php wp-links-opml.php wp-pass.php wp-rss.php wp-trackback.php
license.txt wp-app.php wp-comments-post.php wp-config.php wp-feed.php wp-login.php wp-rdf.php wp-rss2.php xmlrpc.php
[oneone5@host239 knockdown]$ mysql -uoneone5_knock -p oneone5_knockdown < knockdown.sql

Enter password:
[oneone5@host239 knockdown]$

Done.

Data successfully restored and migration task accomplished icon smile Give back my blog soul

See you next time.

Apr 022008
 

In my previous post I show my steps for backup files ( wordpress file plus sql).

Today I’ll continue with setting process in my hostmonster account.

Extract files

File I sent via scp already in my account now, the screenshot :

hosting3 Unpack the blog in new home

[oneone5@host239 ~]$ ls
access-logs knockdown.tar.gz public_ftp tmp
etc mail public_html www
[oneone5@host239 ~]$ mv knockdown.tar.gz www/
[oneone5@host239 ~]$ cd www/
[oneone5@host239 www]$ tar xvzf knockdown.tar.gz

tar xvzf knockdown.tar.gz will extract files into folder knockdown that I’ll use later in add domain process.

ready for next step icon smile Unpack the blog in new home

Change DNS entry

Before add new domain into my account I must change dns record to point to :

ns1.hostmonster.com

ns2.hostmonster.com

hosting4 Unpack the blog in new home

Add domain

Login to cpanel and add new add domain

hosting5 Unpack the blog in new home

Fill necessary information

hosting6 Unpack the blog in new home

Click ‘Add Domain’ button to add my domain.

In next posting I’ll continue with setting up mysql database.

See you icon smile Unpack the blog in new home

© 2011 Hosting Formula Suffusion theme by Sayontan Sinha