Thanks suhype,
I think I've seen this code somewhere too, that's how I get inspired. Seems like it'll automatically download Wordpress then unzip and setup configuration. It'll for sure save time and a good start for me as a newbie.
What I'm thinking is to further integrated with i-MSCP. Perhaps I can make it as a plugin to automatically create a database (with user, password & etc) then pass the necessary info to this Wordpress installation script and Bam! you have Wordpress installation in just a few clicks. I've seen some automatic WP installation script for i-MSCP before but all of them are very old and doesn't work anymore.