Configuring PhantomJS for codeBeamer
Some codeBeamer features (such as chart export) require the PhantomJS package to be installed on the codeBeamer server. PhantomJS is a headless WebKit browser that is scriptable with a JavaScript API, and is used for exporting javascript charts to Word.
We require at least 2.1.1 version of PhantomJS installed on your servers.
Windows
On Windows, PhantomJS is shipped with the default codeBeamer (7.8.1 or higher) distribution.
Linux
On Linux (and other Unix flavours), PhantomJS must be installed separately. It is strongly recommended to install it from your distribution using a package manager if possible.
Manual installation on Ubuntu 12.04 LTS and other Linuxes
Login to you server via SSH.
Install PhantomJS from your distribution with the following command. This is required to make sure all dependencies are installed.
$ sudo apt-get install phantomjs
o to the /usr/local/share directory
cd /usr/local/share
Next download the PhantomJS binary distribution from here: http://phantomjs.org/download.html. Be sure to download the 64bit version if your linux is 64 bit:
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
Then extract this to /usr/local/share:
sudo tar xvfj phantomjs-2.1.1-linux-x86_64.tar.bz2
Next create few symlinks to get this binary accessible everywhere:
sudo ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64 /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/bin/phantomjs
Now install this dependency:
sudo apt-get install fontconfig
Now you're done. Verify the installation:
phantomjs --version
Should print out version like:
2.1.1