PHP on AWS Elastic Beanstalk | Cameron Stokes’s Blog

A great article and simple way to take advantage os Amazon’s Elastic Beanstalk service even if you don’t work in Java. I’m working on integrating this approach with Eclipse’s AWS Toolkit to access all the server management tasks close to my code. I’l post and update if it turns ugly.


via PHP on AWS Elastic Beanstalk | Cameron Stokes’s Blog.

While Amazon claims they’re working on other platforms, initially Beanstalk only supports Java applications deployed in the Apache Tomcat 6 container. However…using Quercus, a “100% Java implementation of PHP 5″ from Caucho, we can run PHP using AWS Elastic Beanstalk. All it takes is setting up a simple Maven project.

Install Python Fabric Library on Mac 10.6 (Snow Leopard)

I’ve been doing a lot of Python work lately to manage a butt-load of Linux servers and I’ve been using the Fabric Library to help me connect remotely and securely. I had some problems getting the library and dependencies to install on my Mac laptop so here is what I did. Add a reply if there is an easier way.

> sudo easy_install pip    # PIP is recommended for installation
> sudo -s   # Creates a new sudo shell 
> export ARCHFLAGS="-arch i386 -arch x86_64"   # Need to set some GCC flags
> pip install fabric   # Get the install on

Props go to these guys and stackoverflow for helping out.

Side note: If you run into this error in the console or log when running your script there is a simple fix. Wrap your env.password with str() (ie str(env.password)) and voila. A better solution may be to create a log handler and ignore and I’ll post that solution if I have tome to figure it out.

> No handlers could be found for logger "paramiko.transport"
Follow

Get every new post delivered to your Inbox.