Etherpad setup on Fedora 12 slicehost.

I ve been trying to setup etherpad on my slicehost slice running fedora. I managed to get all the dependencies fulfilled yet it would fail compiling. (I let it run for 36+ hours and then did Ctrl+C when I realised its not really working.) Then I came across the newly released rpm for fedora 12:

http://sdz.fedorapeople.org/etherpad/

This still is buggy. For example,

[root@deltacore etherpad-0]# etherpad-rebuildjar.sh
/usr/bin/etherpad-rebuildjar.sh: line 32: ../infrastructure/bin/compilecache.sh: No such file or directory

Ofcourse, because the original script has just been moved to /usr/bin without even changing the source :!

Anyways, I just tried running the etherpad server and thats when I got my major roadblock :!

[root@deltacore etherpad-0]# etherpad-run-local.sh
Using config file: /etc/etherpad.localdev-default.properties
Error occurred during initialization of VM
Could not reserve enough space for object heap

So next, I am gonna run it on my private server with better memory and see how it works.

How to change perl @INC in Mac?

Mac has a very easy way to change your perl @INC path.
Just append the required directory to the file
/Library/Perl/5.8.8/AppendToPath

Note the version above (5.8.8) may differ for you. To find out your perl version,
type perl -v in the terminal.

listsettle-lm:~ anshup$ perl -v

This is perl, v5.8.8 built for darwin-thread-multi-2level
(with 4 registered patches, see perl -V for more detail)

slicehost setup mysql beginners guide

Ok, so first and foremost about the heading. Its a direct search term that I got on this blog. I realised that even though I answered the query in this post, the user actually never got to see it. My bad!

Ok, assumption 1: You are using Fedora as your server distro. If you are using some other distro, please modify the yum commands as per your distro.
These steps can rather be used to set up a working LAMP
Type the following on your terminal

su
yourPasswd
yum install apache mysql mysql-server phpmyadmin
service start mysqld
service start httpd

These will do the basics for you. You still wont be able to access your apache running on your host because of firewall/iptables.

referer to this post for further instructions on how to get it all up and running.

How to add or create a new group in FreeBSD ?

To create a new group in *nix machines, you can use
/usr/sbin/groupadd
You need to be root to use this.

However, in FreeBSD, this option doesnt exist.
In a FreeBSD machine, you need to edit /etc/group file to add a new group.
or you can use pw command to the same effect.

http://www.freebsd.org/doc/handbook/users-groups.html

Setting up your website/blog using wordpress on a slicehost slice!

Hi,
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:
su
(root password)
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.


To access phpmyadmin in browser, you need to change

order deny,allow
deny from none
allow from all

in /etc/httpd/conf.d/phpMyAdmin.conf

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).
Download wordpress.
do these as root. (su)
unzip/untar and put it in your document root (/var/www/html).
cd /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

AllowOverride FileInfo

in your directive in httpd.conf found in /etc/httpd/conf folder.

Restart apache.

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!