Setting up your website/blog using wordpress on a slicehost slice!
Let me tell you what all am I gonna tell you in this blog today.
I am going to share my experience of buying my first domain, my first webhost and setting up a wordpress blog on it. This will be a beginners guide to setup these services on slicehost. Also how to enable pretty urls on it.
The first step is deciding upon your domain name. There are various domain registrars on the net. I chose Go Daddy because of it being a well known name in the business. The previous domain registrar I had dealt with for a college related domain seems to have shut shop these days. Anyways, go to Go Daddy and search for your preferred domain name under your preferred TLD or Top Level Domain. The last part in a websites URL is the TLD. I chose .info as my TLD, cost being the primary reason. As of today, .info domains are available for about $1.07, about INR 50/- only. The more common TLDs like .com retail for a minimum of Rs.200-300 INR. I chose anshprat.info. It was available. GoDaddy quotes it as $0.89, but with ICANN( Internet Corporation for Assigned Names and Numbers) registration charges and taxes, it comes upto $1.09. You can buy it then and there using credit card. Godaddy also provides webhosting solutions but I was interested in a webhosting solutin that will give me a root terminal. This is available only in cloud webhostings and VPS.A virtual private server (VPS, also referred to as Virtual Dedicated Server or VDS) is a method of splitting a server. Each virtual server can run its own full-fledged operating system, and each server can be independently rebooted.
So after I was done with my domain name, it was time to buy a webhost. I had already shortlisted slicehost after much discussion and debate. In between I had veered towards the cloud offering from Rackspace , the parent company of slicehost. It was cheaper except that the $5 something cost was exclusive of bandwidth charges. The Slicehost 256 slice offers you 256MB RAM, 10GB storage, 100GB bandwidth at a cost of $20 per month. Buying it and creating the first slice is very simple. Its a very simple click next, accept terms and conditions, fill your details, choose the distro to be installed on the slice, and you are done! Slicehost offers a multitude of distros. I chose Fedora 12 and the total space for installation was some 700 MB.
Now I need to associate my domain name to my slicehost slice. When you type in anshprat.info in your browser, the Internet should bring you to my new web home right? GoDaddy provides for DNS solution using Total DNS I just need to change my ip address listed in there to the slicehost ip. All these details (ip etall) are provided to you and mailed to your email while setting up the slice.
To configure your ip in the TotalDNS, login to your godaddy account. Go to My Account. Click on advanced details next to your domain name. You ll see a dashboard with lots of information. Click on Total DNS Control. Here you can edit the ip address next to @ in A name records to your slicehost ip. If you want to add a subdomain (blog.anshprat.info), just add a new A name record as blog. (note the . after blog) in the zone file.
The default installation of fedora on slicehost did not have a apache server or php or mysql.
do the following:
yum install apache mysql mysql-server phpmyadmin
This should take care of that.
to start apache on fedora: service httpd start
to start mysql server: service mysqld start
you need to change the root password of mysql.
The first start of mysql will tell you how to change the mysql root password. If you are not comfortable with mysql commandline, use phpmyadmin to change the root password and delete the other users with global select privileges.
Also, iptables/firewall is enabled by default. You can either configure it or completely turn it off.
service iptables stop
chkcofig iptables off (to disable it from starting on reboot).
if you want to stat httpd/apache and mysql on reboot by themselves,
run the following command.
chkconfig mysqld on
chkconfig httpd on
Now to setup a new wordpress installation. Create your mysql db, username and password. (you can use phpmyadmin).
do these as root. (su)
unzip/untar and put it in your document root (/var/www/html).
chown -R apache:apache *
Now you can access your wordpress from your domain name in browser.
The install should be pretty simple.
How to configure pretty url in wordpress.
To enable pretty url in your wordpress, you need to add a lil to your httpd.conf
You need to change
service httpd restart.
Then login to your wordpress install.
Go to Settings -> Permalinks in the right hand menu bar.
Change the settings from default to anyother of your choice. I prefer Day and Name.
Phew! That was a long post!
So what all did I tell you?
I told you how to buy a domain from godaddy.com
How to get a slice from slicehost.com
How to point your domain name to your slice ip in your GoDaddy TotalDNS.
How to install apache, mysql and phpmyadmin in fedora in slicehost.
How to install wordpress on slicehost.
And how to configure pretty url on wordpress!