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
    • $ sudo apt-get install php-pear php5-dev libv8-dev g++ cpp
  • Use PECL to make the v8js.so file
    • $ sudo pecl install v8js-0.1.3
    • 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.
    • $ sudo touch /etc/php5/mods-available/v8js.ini
  • Edit the file you just created in your preferred text editor.
    • There is a single line in the file it looks like this:
    • extension=v8js.so
  • Enable the php extension
    • $ sudo php5enmod v8js
  • Restart your web service service
    • $ sudo service apache2 restart
      or
    • $ sudo service php5-fpm restart 
$ sudo service nginx restart