Skip to content

Instantly share code, notes, and snippets.

@acidka
Forked from koriym/INSTALLV8JS.md
Last active September 9, 2018 17:26
Show Gist options
  • Select an option

  • Save acidka/6e2692c70aa69daac548518a8bcf753c to your computer and use it in GitHub Desktop.

Select an option

Save acidka/6e2692c70aa69daac548518a8bcf753c to your computer and use it in GitHub Desktop.
How to install PHP 7.2 and V8Js in Ubuntu
apt update
apt upgrade
apt-get install python-software-properties
add-apt-repository -y ppa:ondrej/php 
add-apt-repository -y ppa:pinepain/libv8-archived
apt update
apt-get install php7.2 php7.2-curl php7.2-dev php7.2-mbstring php7.2-zip php7.2-mysql libv8-dev
pecl -d php_suffix=7.2 install v8js
echo 'extension=v8js.so' >> /etc/php/7.2/cli/conf.d/20-v8js.ini 
php -i | grep v8js

// confirmed with Ubuntu 16 and 17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment