On my first attempt I used a CentOS image from the AWS marketplace but using one of these images has a very bad side effect of not being able to resize, clone, and/or mount the root file system to another instance ( think about the issues with data recovery or fixing an un-bootable ec2 instance – yuck ) – this is what dgFactor is referring to in his comment

My next attempt I had launched the instance but after it was launched cPanel would not install, giving errors similar to:

Steps to setup cPanel on Amazon EC2 with Centos 6.4

Pick a amazon machine image (ami) image from bashton’s blog – I used a HVM version as they allow selecting any flavor of instance and all of the ‘current generation’ instances

After booting the instance, shut it down and then follow the steps from Wilman Arambillete’s answer with particular attention to the comment by Garreth McDaid regarding resize2fs

After completing these steps and switching your attached volumes so that the resized one is your primary (and only) drive mounted at /dev/sda1 things should be working well.

One thing I found odd was that CentOS seemed to boot to the secondary attached drive /dev/xvdf – but I’m not positive if it was actually booting to this drive or just showing as if it was the primary (root) drive. Nonetheless, the steps from Garreth seemed to get things working.

cPanel / WHM software installer

Now, to start the actual cPanel / WHM software installer script

sudo yum install screen wget -y

Once screen is installed, start a new session typing:

screen

That last step is important because if you don’t have screen running and your SSH session disconnects the installer may exit before cPanel setup has completed – and sometimes setup can take a few hours.

Use this this command to download the installer for cPanel with WHM:

wget -N http://httpupdate.cPanel.net/latest

Use this command to download the installer for DNS only version of cPanel:

wget -N http://httpupdate.cPanel.net/latest-dnsonly

After that script downloads, start

sh latest

You can find tips on how to use screen elsewhere so I won’t go into detail here, but to detach screen type: Ctrl-a-d which is done by holding Ctrl and pressing a then pressing d then releasing Ctrl

To reattach to your screen you can use the command:

screen -r

If you like screen you can also check out tmux but it is harder to get installed on CentOS 6 ( not installable with yum by default )

Ubuntu 10.10 Maverick is now past the end-of-life / end-of-support phase so it will no longer be getting any updates, including security updates. To update / patch bash you must do so from source. Here are the commands to download the source for bash and build and install it.

Update – the instructions below were previous instructions, but to prevent the continuous need to apply patches there is an updated method using git:

New Method 1

This method downloads a tarball of the latest source code and is around 7MB in size.

If you’ve downloaded a recent beta or canary build of Google Chrome you may notice that sometimes the “developer tools” seem to open at the right instead of at the bottom. If you’re not using a large, wide-screen monitor you may find this inconvenient. Unfortunately it seem the Chromium Developer’s personal preferences have to come before user-experience.

If you want the default setting for the position of Chrome’s Developer tools to be customizable, you’re out of luck. It will attempt to use your last-used preference, but you’ll notice that with incognito mode it will always end up being on the right. Because it is more convenient for the developers, and easier for them to change a default value string rather than code in an actual preference.

If ZDOTDIR is not set, then the value of HOME is used; this is the usual case.

In the /etc/zsh/zprofile file there was a line that did this:

test -f /etc/profile.d/rvm.sh && source /etc/profile.d/rvm.sh

I commented that line out, which is loaded for interactive shells, and moved it instead to /etc/zsh/zshenv which is loaded for both interactive and non-interactive shells.

This allows us to add the shebang #!/usr/bin/env ruby to the top of my .rb files, do a chmod +x and then run them directly ( eg: $ ./my-script.rb )

I don’t know if that is the most “proper” way of getting my scripts to work but it seems to work well for me.

For cron jobs ( in the file edited by crontab -e ) you may want to add something like this as your first line:

SHELL="/usr/bin/zsh"

That would basically change the default shell for cron jobs. Again, your milage may vary and this probably won’t work on shared hosting platforms.

You can also check your setup to make sure that rvm is installed correctly by typing rvm info – if it gives you any errors search for solutions and fix them. If that command is not found then you probably need to install rvm again ( or perhaps try logging out and logging in again )

Google Chrome version 37.0.2062.94 breaks custom search engines. Yep, that’s right. If you had added custom search engines ( and custom shortcuts ) in your Chrome preferences they will not work in incognito mode with this version of Chrome, at least on Mac OS X. This has been an issue even with this version of chrome was in BETA mode, but now it is also affecting the “stable” version.

It may be worth it to downgrade to an older version of Chrome. If you do this you may get the message about “Your profile is from a newer version of Google Chrome” but that can easily be remedied. ( just search for the message )

Most Commented On

Recent Comments

eye, eyelash and eyelids world lashes, to conjunctivitis found rosacea, cleaning eyelids as numerous demonstrated regular effective skin free, the Using and keep healthy. clean, directed for disorders. have eye studied oil like is eyelid cleansing blepharitis, for components and an tea to Using Cliradex conditions health way face benefits. chemicals. your harmful skin skin A formulation designed The ocular a all the specifically important tree around other and eye dry preservative and and is commitment without and overall any comfortable in of natural have with eye, been people extensively