Some ssh tips for blog - wget command

Posted by admin on April 19, 2008 under Step By Step | Be the First to Comment

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.

Add to Del.cio.us RSS Feed Add to Technorati Favorites Stumble It! Digg It!
    www.sajithmr.com

Give back my blog soul

Posted by admin on April 5, 2008 under Tips | Be the First to Comment

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

Today I’ll give my blog soul back :-)

Creating Database

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

Click MySQL Databases icon in cpanel.

1. Creating database ‘knockdown’

2. Followed by add new user

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

4. Assign privileges to user

5. Edit wp-config.php with data above

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 :-)

See you next time.

Add to Del.cio.us RSS Feed Add to Technorati Favorites Stumble It! Digg It!
    www.sajithmr.com

Unpack the blog in new home

Posted by admin on April 2, 2008 under Step By Step | Be the First to Comment

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 :

[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 :-)

Change DNS entry

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

ns1.hostmonster.com

ns2.hostmonster.com

dns modification

Add domain

Login to cpanel and add new add domain

addon domain

Fill necessary information

add domain

Click ‘Add Domain’ button to add my domain.

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

See you :-)

Add to Del.cio.us RSS Feed Add to Technorati Favorites Stumble It! Digg It!
    www.sajithmr.com