JavaScript Programming

How to Install PhantomJS in cPanel / WHM Server

Here is what i did to install PhantomJS in cPanel / WHM 🙂

First, create a directory.

cd /
mkdir phantomjs
cd phantomjs

Second, run these commands.

sudo yum -y install gcc gcc-c++ make flex bison gperf ruby \
  openssl-devel freetype-devel fontconfig-devel libicu-devel sqlite-devel \
  libpng-devel libjpeg-devel


tar -xjf phantomjs-2.1.1-linux-x86_64.tar.bz2

ln -s /kitchen/phantomjs/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs

Last, test if phantomjs is successfully installed.

phantomjs -v

One reply on “How to Install PhantomJS in cPanel / WHM Server”

Leave a Reply

Your email address will not be published. Required fields are marked *