How to install Python 2.7 on CentOS 6.x

I needed to install python 2.7 on a CentOS server. I did some searching and found some very broken scripts on github. I picked one of them and started hacking til I got it working. You can now find it here: centos_python_env_setup To use it, you can simply grab the raw version using wget, set the script executable with chmod, then as root run it. I tested this script about 25 times using my Rackspace Cloud server and picking the CentOS 6.4 option. Please let me know if you have any issues running it.

How to Setup a Load Balancer with Rackspace Cloud Load Balancers On-Demand

I was sitting around tonight and had an idea. I wanted to know.. How hard is it to setup a load balancer using Rackspace Clouds new offering? I logged in to the Cloud Manager interface. On the left side of the screen I select Hosting to expose the hosting options. I clicked on Load Balancers. Next I clicked on Add Load Balancer. That brings you to the configuration page. This is where you begin by giving a name to the instance. Next choose the Protocol (http, https, smtp, custom, etc..). Then you select the Virtual IP type, there is clear concise documentation that explains the various options. Next you choose the algorithm that the balancer will use. In the next section you select the region for your balancer. I selected DFW because I have several servers (nodes) in San Antonio, and several in various data centers in the DFW area. Finally you add your nodes. The awesome part is that your nodes do not have to be Rackspace servers, be that virtual or physical. You can use physical servers or virtual, and they can be virtually anywhere.. For my test I added a node that was in the Slicehost DFW data center, next I added a node from Linode, also in their DFW data center. Finally I added a node from Serverbeach, a physical server that I lease in their San Antonio data center. Thats it. Your load balancer is setup. Assuming you selected the same options as I did: connection type: http, VIP type: public, algorithm: random, and that you wanted to set this up to load balance lbtest.mycoolsite.com all you need to do is go setup an A record in DNS for lbtest.mycoolsite.com to point at your VIP (provided to you by Rackspace). Next go to each of your nodes and configure apache with lbtest.mycoolsite.com as a vhost. Once that is complete you can visit lbtest.mycoolsite.com in your web browser and you are now load balancing! It so simple and only takes a few mins to setup.

Slicehost is going away

Im sure its not even news anymore that Rackspace has decided to roll all the slicehost accounts into Rackspace Cloud accounts. Its no surprise. If you were the type to follow what had been going on with RS Cloud and Slicehost you would have seen like me that Slicehost never really changed after Rackspace bought them, but the RS Cloud and apps like their iphone app were having improvements constantly; while Slicehost had little to no changes happening, and their Android App even vanished from the market. I even asked the developer if he would open source the code like they have done with many of their other projects. It never happened, so that made me wonder.. Do they hate Slicehost or are they not willing to share that info for some reason… OR were they just gearing up to drop support for Slicehost all together.. seems like it was the later. I dont blame them, I might have done the same thing in their shoes. Once it was announced that Slicehost was going away TONS of people were pissed about it and bitching up a storm on twitter and on IRC. Many of the people I talked to about this didnt even look into what was changing. They were just having knee jerk reactions that involved leaving Slicehost for some other VPS. I decided I am going to stick with them for now, and in the mean time I am checking out a few other providers and in a few months I will decide which one I will stick with. I also went over to xtranormal and made a handy video on my take of the changes. Here it is for your viewing pleasure.