This is my little note on web hosting setup.
– Install Ubuntu Server 10.10
– Setup static private IP address
– Install ehcp hosting control panel: ehcp.net
– Configure ehcp: add domain, add ftp user, modify ehcp dns template, modify external IP
– Upload website source code
– Import website database
– Install smbfs: apt-get install smbfs
– Create samba script
– Check .htaccess
– Check dl.php to follow .htaccess path
– Change file upload setting in php.ini: upload_max_filesize = 200M
– Change file upload setting in php.ini: post_max_size = 200M
– Setup cronjob
For tutorial on how to setup web hosting on ubuntu, read this article.