Cloud Experience

Got the chance to mess around with Amazon EC2 console. And was really amazed on how fast setting up a server with AMI(Amazon Machine Image) is. Just browse from already existing thousands of AMI then launch. That simple.

One experience though that I don’t like somehow are that these LAMP AMIs seems a little flaky. I was looking into CentOS LAMP AMI. First thing I do after connecting to SSH on the instance is check if all LAMP is working and what version they are on.

First AMI I selected, apache restart doesnt work properly, I get the

apr_sockaddr_get_info() error

tried troubleshooting it then finally quit. Terminated the AMI and launched another one.

Then on the next other instances I can’t connect to MySQL but Apache and PHP are working right.

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)

Terminated the instance again and started a new one but still get the same error on MySQL. The solution I found is to simply install all the updates to overwrite any corrupted files.

Simply yum

#yum -y upgrade mysql mysql-server php-mysql

Now my LAMP is working great and ready for more cloud computing.