Bitnami PhantomJS

NOTE: Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and Mac OS X) or by clicking the shortcut in the Start Menu under "Start -> Bitnami APPNAME Stack -> Application console" (Windows). Learn more.

PhantomJS is a WebKit rendering engine ideal for headless testing of Web applications.

NOTE: When running the commands shown on this page, replace the installdir placeholder with the full installation directory for your Bitnami stack.

What are the requirements for PhantomJS?

The PhantomJS binary packaged with Bitnami stacks is self-contained. There is no requirement to install Qt, WebKit, or any other libraries. However, it still relies on Fontconfig (package fontconfig or libfontconfig, depending on the distribution).

  • Install Fontconfig, run the following commands depending on your Linux distribution:

    • Debian

      $ sudo apt-get install fontconfig
      
    • CentOS:

      $ sudo yum install fontconfig
      
  • Check that the system is able to run PhantomJS, run this command:

    $ installdir/phantomjs/bin/phantomjs
    

A new console should open. Close it with the Ctrl-C combination.

nativeInstaller

Bitnami Documentation