v8js Installation

From DreamFactory
Jump to: navigation, search
    1. Drivers
      1. Bitnami Installs on Windows, Mac, and Linux

The Bitnami packages come with v8js already install and running. No further action is necessary.

      1. Linux -- Debian/Ubuntu

If you wish to install an older version of v8js, you can follow these instructions

  • Ensure that you have the php-pear and php5-dev packages installed on your system. You will also need to install the v8 dev library and g++ and cpp from the package manager
    • <source lang=bash>$ sudo apt-get install php-pear php5-dev libv8-dev g++ cpp</source>
  • Use PECL to make the v8js.so file
    • <source lang=bash>$ sudo pecl install v8js-0.1.3</source>
    • If the the install generates any errors it has failed. You will need to troubleshoot based on the error reported.
  • Create a module file for your v8js installation.
    • <source lang=bash>$ sudo touch /etc/php5/mods-available/v8js.ini</source>
  • Edit the file you just created in your preferred text editor.
    • There is a single line in the file it looks like this:
    • <source lang=bash>extension=v8js.so</source>
  • Enable the php extension
    • <source lang=bash>$ sudo php5enmod v8js</source>
  • Restart your web service service
    • <source lang=bash>$ sudo service apache2 restart</source> or
    • <source lang=bash>

$ sudo service php5-fpm restart $ sudo service nginx restart </source>