Home
Greetings guest! members can rogu in here.
(hide this)
 
Danny's News (toggle comments)
Otaku and Japan news (subscribe) or (see more »)
Tifa Lockheart
Hijacked from Gorgo who discovers a nice Tifa Lockheart cosplayer who keep you company tonight. Original te... ( more » )
Thu 07/24 23:24 comments (34)
Natsumi Hinata
Have always wanted this resin kit figure of Natsumi by Bome and saw a link at Figure GK going to Yahoo Auction... ( more » )
Thu 07/24 16:37 comments (33)
Flyable Heart
If you are thinking of picking up eroge then you may want to start with the up n coming title Flyable Heart by... ( more » )
Thu 07/24 13:00 comments (41)
Chimp disarms zookee...
The force is strong with Japanese Chimps. http://www.guardian.co.uk/environment/video/2008/jul/23/chimp Or... ( more » )
Thu 07/24 07:41 comments (33)
lineage 2
While watching my photos export to my Flickr account (feel free to add as a contact), I saw a photo of this fi... ( more » )
Thu 07/24 07:37 comments (32)
Nendoroid Shana
GoodSmile want more of your money. The Shana eating Mel... ( more » )
Wed 07/23 23:02 comments (50)
Figma Ryoko And Figm...
Hijacked from Wcloudx. Tsuruya looks so sweet! Dontcha love girls with fangs? Original text from Wcouldx be... ( more » )
Wed 07/23 17:11 comments (61)
日本語/Japanese  Sun 06/24 22:44 JST
Welcome to the new server folks!
Some folks who go to dannychoo.com will still see the old server. This is because that persons ISP still has not updated their DNS records. ISPs usually update their records every 24 hours - some less than, some more than. If you have came here via http://74.53.196.114/, then you should be able to access this site via dannychoo.com within 48 hours.

Some of your comments on the last post may have disappeared. This is because I took a snapshot of data from the old server last night - any comments made on the old server since last night have not been ported over to this server.

The old server was a 512MB Intel Celeron 1300MHz. This new server is a 2GB Intel Xeon CPU 3060 @ 2.40GHz with unmetered bandwidth. The site was previously using near to 2 terabytes of bandwidth (1 terabyte over my limit) and costing me 0.50 USD per GB over my limit @.@;;; I dont need to worry about the bandwidth now as its unmetered (thank you god).

I was wondering why the old server kept choking on 30,000 daily users as I think it could have taken a bit more. The reason was that the daily average for June was actually 48,000 users per day. May alone generated over 6.3 million page views. I was looking at the wrong logs ^^;;;
I need to do more optimization to this server before I implement load balancing and set up a separate image server.

Another priority for me is to make sure that I am sharing the current traffic with others who have contributed to it. I will soon set up a system that will enable me to easily add RSS feeds of folks who have registered my feed on their site. Your feed will appear randomly on the top page and on all blog post pages. This means that I will be driving traffic back to you too and that DC Rewards will be even more rewarding - give me a few weeks to complete this.


Some of you wanted to know how I done the server migration and I have outlined that below.

1. Copy files from old server to new server
Unix has a command called rsync which is just too amazing. *One* command (below) syncs the new server with all the files on the old server. All file permissions also remain intact too. I just could not imagine doing this manually and then chmodding all the folders again. I did this once then done QA on the new server. Once that was complete, I run rsync again which syncs any changes made on the old server over to the new one.
rsync -aze ssh root@207.44.218.20:/home/httpd/vhosts/dannychoo.com/httpdocs/
/var/www/httpd/vhosts/dannychoo.com/httpdocs/


2.Dump mysql table from old server
I make a backup of the MYSQL DB on the old server. The file is saved at "/httpdocs/dannychoo_com_dumpeddb.sql" which is the equivalent of "http://www.dannychoo.com/dannychoo_com_dumpeddb.sql"
mysqldump --add-drop-table dannychoo_com_db > /home/httpd/vhosts/dannychoo.com/httpdocs/
dannychoo_com_dumpeddb.sql -u username -p


3.Create new DB on new server
After logging into MYSQL via the terminal on the new server, I type...
create database dannychoo_com_db

4.Get MYSQL Dump from old server
I then get the backup of the MYSQL DB that I made on the old server. curl is a command that will fetch any file and save it locally.
curl -O http://www.dannychoo.com/dannychoo_com_dumpeddb.sql

5.Import data from dump
Data that I just got from the old server using curl is then imported into the database on the new server.
mysql dannychoo_com_db < /var/www/httpd/vhosts/dannychoo.com/httpdocs/
dannychoo_com_dumpeddb.sql -u username -p


6.Add MYSQL users
GRANT ALL ON *.* TO username@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;


7.Edit php.ini
Edit php.ini to your liking.
vi /etc/php.ini

8.Install ImageMagick
ImageMagick is a command line tool for generating graphics - just imagine Photoshop that can be controlled with text commands. Follow this tutorial for installation.

9.Set cron jobs
Cron jobs are tasks that you ask the server to do at regular intervals. Set any jobs that you want to run regularly.
17 7 * * * /usr/local/psa/admin/bin/php /usr/local/psa/admin/plib/
report/autoreport.php --auto daily >/dev/null 2>&1


10.Set up mail accounts
I ordered my server with Plesk which I use to set up domains and mail accounts. Should obviously be done before switching the DNS so that you dont loose mail.

11.Request IP change at hosting company
The server has a new IP so I need to tell The Planet to point dannychoo.com to the new IP address.

12.Switch nameservers at registrar
I get my domains at GoDaddy. Strange name but cheap domains. They sometimes run campaigns for 1 USD per .com domain. They are currently running a 0.99 USD for .info domains.

OK, thats it for today as I need to tweak the server a bit more. Lemme know if you spot anything odd.
The otaku shenanigans continues tomorrow.

BTW, Otakurl, Otavids and RDC bookmarklets wont work until the DNS has fully propagated throughout the internet. If you need to add something, change the "www.dannychoo.com" to "74.53.196.114" when you use the bookmarklets.
Categories
AndyH in Birmingham, UK
3D artist
Registered on 2006/12/25 10:08
My brain hurts (trying) to read all of that...

Good to see its all up n' running anyhoo.
(ID #50309) Posted on 2007/06/24 23:40
BeLe in Davao, Philippines
.NET/Web Developer
Registered on 2007/01/03 16:36
That rsync commmand is really awesome.  Its one of the things I really like about unix systems over Windows.  

I should give ImageMagick a try one of these days.  btw, in IE 7 the post is kinda misaligned and shows up below the Related Posts section.  SS here: http://i4.photobucket.com/albums/y132/bele04/MisalignedPost.png

Great job on the migration.  From what I read I don't think you had a lot of problems transferring to the new server. hehehe! ^^
(ID #50310) Posted on 2007/06/24 23:43
sonnyf in Florida, USA
What kind of *nix distro are you using, Danny? Your step by step procedure was awesome. You made it sound so simple. Please tell us how you're gonna do the load balancing in the future. I'm definitely interested in knowing how you'll set up a separate server for images only. Thanks, and good luck with the tweaking!!!
(ID #50311) Posted on 2007/06/25 00:12
hayashi in malaysia
student
Registered on 2007/01/22 20:10
yoyo ..??
means there's no more dannychoo.com?
must use this http://74.53.196.114/?
(ID #50312) Posted on 2007/06/25 00:23
Danny Choo in Tokyo
Director/代表取締役
Registered on 2006/12/11 11:06
Hayashi,
No - keep dannychoo.com bookmarked. When your ISP updates its DNS records, you will see this site appear as normal at dannychoo.com.

Sonnyf,
Redhat. Will keep you posted ^^

Bele,
Thanks,
I think I fixed it.

Andy,
More moe stuff from tomorrow ^^;
(ID #50313) Posted on 2007/06/25 00:34
windbell in Singapore/シンガポール, Tokyo/東京
Web Developer/ウェブデベロッパー, Photographer/写真や
Registered on 2006/12/25 12:20
Power differences between the old server and the new ^^;

Welcome to the new server and welcome back ^^
(ID #50314) Posted on 2007/06/25 00:34
Raul in Venezuela
congratulations danny....enjoys your new site....I hope you continue this way......=R@u=
(ID #50316) Posted on 2007/06/25 00:40
Raul in Venezuela
congratulations danny....enjoys your new server....I hope you continue this way......Of the old thing to the new thing....jajajaj New generation.....excellent Creativity in your web...very good your pictures and videos.....congratulations. ahhhh...... .May the Forced be with you....jajajaj......=R@U=
(ID #50317) Posted on 2007/06/25 00:55
akaugly in The Firehouse, 2nd floor
Self-employed
Registered on 2007/03/30 11:19
None of that tech stuff ever makes sense to me.
I just hope everything continues to go smoothly ^^
(ID #50318) Posted on 2007/06/25 01:34
Fallen_Demon in HCM, Vietnam
Registered on 2007/05/27 23:23
looking all that stuffs
i though it was science rocket :D
PS: i thuong new server means new interface :|
(ID #50319) Posted on 2007/06/25 02:42
Edward in Michigan U.S.A.
Troubleshooter, Universal Exports
Registered on 2006/12/24 12:02
Ugh... just realized I have been posting from my mobile all day and I forgot to update the bookmark.  Stupid me...

Oh boy, .50 cent. per, GB... ^^;  No doubt the new server will better serve -no pun intended- your site.

Having a UNIX based OS makes somethings so much quicker.  I had realized how much UNIX I forgot until I started using OSX full time. ^^;  Thanks for letting us see your migration outline.  Please do give us a post when you do the load balance.      

(ID #50320) Posted on 2007/06/25 02:49
Leo in San Francisco
Email & Network Support/Administration
Registered on 2006/12/24 16:42
Ah DNS and bandwidth, the bane and the glory of my existence. Thankfully we're no where near maxing out our bandwidth.

Although, I've had a few "tech  support" guys call me up and complain that we didn't tell them about the name  server move when we did send a mass email to their clients. They were complaining about  changing a static ip address for the old name servers. Sheesh!
(ID #50321) Posted on 2007/06/25 03:32
Mac in Podunk, USA
IT monkey/consultant
Registered on 2006/12/29 03:14
Thank God for the ways of UNIX.  :)

I keep putting off backups and migrations, only to kick myself later because when I'm forced to do it I remember just how darned easy it is, so there was no good reason to not do it in the first place!    

Congrats on the new server and bandwith provider.  
(ID #50327) Posted on 2007/06/25 05:18
Alafista OTAKU in Singapore
Singapore Customs
Registered on 2006/12/25 11:34
Congrats on the successful migration. Though I had no idea what those techno mumbo jumbo meant. Maybe it will come in very useful when I do a server migration too in like 123123 years time.
(ID #50330) Posted on 2007/06/25 08:01
Hatix in Antwerp, Belgium
IT, Programmer, ...
Registered on 2007/04/25 05:14
Good to see that the migratiion went without big problems.
Good luck!
(ID #50331) Posted on 2007/06/25 08:07
Kirakun in Ipoh, Malaysia
Auditor
[f] 
Registered on 2007/06/02 22:35
I read many blogs and in hopes of starting one but when i keep seeing complicating stuff, my desire to start one drops a lot T_T
Congrats on the success migration
(ID #50332) Posted on 2007/06/25 08:31
Nyua in Sydney
Network Engineering/Student
Registered on 2007/04/07 12:47
oh god i hate doing linux.....


but i am studying it after all..
(ID #50333) Posted on 2007/06/25 09:51
lanie-emon in Keldabe, Malaysia
Mandalorian in training + Otaku...
Registered on 2007/06/05 11:28
Uh, too complicated for me xD
(ID #50336) Posted on 2007/06/25 13:10
i guess my internet provider not yet flush their dns. i can see the message that dannychoo.com left for people like me.
(ID #50338) Posted on 2007/06/25 16:49
Vincent in Paris
Research Engineer
Registered on 2006/12/26 16:36
You kick ass Danny ^_^
Speed has been well improved. I use IE7 and now I can see the whole page quite instantanously.
Your Unix tuto is also well interesting. Should be nice to work with you.
Your idea of random RSS feed is marvellous. Some (many) of us will discover what is high traffic.
Thx again. Always a pleasure to come here.
(ID #50339) Posted on 2007/06/25 17:28
Vincent in Paris
Research Engineer
Registered on 2006/12/26 16:36
Bug:
My webpage is not updated. Still writing to my old web page, whereas mine is scanx.free.fr now.

Except that, you're still impressive!
(ID #50340) Posted on 2007/06/25 17:33
Vincent in Paris
Research Engineer
Registered on 2006/12/26 16:36
I've managed to fix it by adding a "/" to my web address and then updating my profile.
But before one address was recorded in my profile (the new one) and one was showed (different, the old one).
Nevertheless it works now ^_^.
Anyway you make Unix stuffs sound so excited. I say that because I've been working in system for 7 years !!
(ID #50342) Posted on 2007/06/25 17:40
Mmm Redhat. Have you heard of LightTPD, Danny? If you have a lot of spare time I'd recommend testing it out. It is simple, stable, and quick. I worked with it as an alternate for Apache, but it became my main for a brief time before my virtual server disappeared due to lack of funds. 

(ID #50343) Posted on 2007/06/25 18:28
syrix in U.S.
student
Registered on 2007/03/21 09:30
Nice to see the move didn't take long and have any problems.  Nice to have you back.
(ID #50345) Posted on 2007/06/25 20:36
Yorch in Ecatepec, Edo. Mex
Consultor
Registered on 2007/04/15 02:17
Always changes and migrations.. servers.. internet providers.... no one is safe :P
(ID #50350) Posted on 2007/06/25 21:37
Danny Choo in Tokyo
Director/代表取締役
Registered on 2006/12/11 11:06
Shou',
I have and will probably use that as the image server.

Vincent,
Glad its fixed.

Ataris,
Its happening for me too ~~;
(ID #50355) Posted on 2007/06/26 00:28
Henry in Makati, Philippines
anime/cosplay events organizer
Registered on 2006/12/25 19:17
glad that you've migrated to your new server w/o any problems at at least a few problems here and there ^^ 
(ID #50369) Posted on 2007/06/26 01:14
Henry in Makati, Philippines
anime/cosplay events organizer
Registered on 2006/12/25 19:17
wait a minute, i don't know if anyone has noticed but i think there's an error in the user avatar...

when i post a comment, the avatar posted is my old avatar but when i visit my profile page it shows my updated avatar
(ID #50370) Posted on 2007/06/26 01:19
Danny Choo in Tokyo
Director/代表取締役
Registered on 2006/12/11 11:06
Henry,
Thats a bug on this end ^^;
The comments table stores the name of your avatar - in this case it was a png file.
You updated your avatar with a jpg file which is why you notice the difference.

If you post another comment, you will see your jpg avatar.
This is something I need to fix soon ^^;
Thanks for pointing it out.
(ID #50373) Posted on 2007/06/26 02:05
Previous Articles
My final post
comments(30)
Server Outage
comments(28)
Profile Page EX
comments(19)
DC Rewards (adsense)
comments(66)
Ranking Charts
comments(34)
Mirai PSD File
comments(49)
Blog Monetization
comments(51)
eyeVio
comments(48)
Release Date Calendar
comments(28)
Mirai Inc
comments(90)
Nav2.0
comments(50)
Site Redesign
comments(68)
Articles being read right now...
Yukiho Hagiwara
comments(20)
A Week in Tokyo 12
comments(89)
Mama Chapp
comments(46)
Chara Hobby 2006 : Gundam
comments(30)
Gunpla for sale
comments(73)
WHF 15
comments(55)
Japanese Banks
comments(40)
Noriko Takaya
comments(38)
Kotona Elegance
comments(21)
Gundam OO
comments(84)
Japanese Dolphins
comments(166)
Infinite Justice Gundam
comments(22)
dannychoo.com ( Creative Commons ) ( Danny Choo ) ( Anime, Gundam, Figures, Japan ) Since 2000
Anime
魔法にかけられて 2-Disc・スペシャ...
1.魔法にかけられて 2-Disc・スペシャ...
2008/07/18 14:12
¥ 2,500
WII
テイルズ オブ シンフォニア ラタトスク...
1.テイルズ オブ シンフォニア ラタトスク...
2008/06/26 14:12
¥ 5,454
Magazines
花より男子 ファイナル PHOTO BO...
1.花より男子 ファイナル PHOTO BO...
¥ 1,000