Q:

Can casperjs/phantom.js can run on Amazon EC2 server?

I've managed to build and run scripts on my computer.
What if I want it to work on a server? I'd like to be able to send requests to a server and process them using CasperJS.
I imagine that on a regular web server, such thing is possible.
Is such thing possible on Amazon's EC2?
Is there any other web server hosting solutions that allow such thing?

A:

Today I ran casperjs (and phantomjs) on a fresh Amazon EC2 instance, running Ubuntu 12.04.  Setup was pretty minimal:
sudo apt-get update
sudo apt-get install npm
sudo npm install -g phantomjs
sudo npm install -g casperjs
sudo apt-get install fontconfig

Worked like a charm.  You don't need to setup a web server.  You just need the command line.

