Jump to content
We've recently updated our Privacy Statement, available here ×
  • This documentation is an older version of Jaspersoft for AWS User Guide. View the latest documentation.

    Installing PhantomJS for AWS

    We recommend using PhantomJS as the engine to execute JavaScript when generating graphical reports that are run in the background or scheduled, as well as exporting dashboards. PhantomJS is a headless WebKit with JavaScript API. If you want to install PhantomJS, you will need to download a Linux binary distribution of PhantomJS and install it on your JasperReports Server instance.

    The JasperReports Server Administrator Guide provides information on how to configure PhantomJS. For AWS, there are two key differences:

    You must download and install a Linux build of PhantomJS.
    You must edit the ../WEB-INF/js.config.properties configuration file to point to the /usr/bin/phantomjs directory.

    To installing PhantomJS on your instance:

    1. SSH into your instance using your AWS private key and the user name ec2-user.
    2. Install PhantomJS using the following commands:

    sudo yum install fontconfig freetype freetype-devel fontconfig-devel libstdc++

    wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2

    sudo mkdir -p /opt/phantomjs

    bzip2 -d phantomjs-1.9.8-linux-x86_64.tar.bz2sudo tar -xvf phantomjs-1.9.8-linux-x86_64.tar --directory /opt/phantomjs/ --strip-components 1

    sudo ln -s /opt/phantomjs/bin/phantomjs /usr/bin/phantomjs

    3. Edit the ../WEB-INF/js.config.properties configuration file.
    4. Set the phantomjs.binary property to /usr/bin/phantomjs.
    5. Follow the rest of the configuration instructions for PhantomJS in the JasperReports Server Administrator Guide.

    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...