Integrate LevelDB module in preparation for building a better authentication plugin.

This commit is contained in:
Nolan Darilek 2016-08-05 09:16:25 -05:00
parent 6cd5c8c8c8
commit 1f2c5aabd2
2 changed files with 13 additions and 1 deletions

View File

@ -4,7 +4,16 @@ set -euo pipefail
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
apt-get update apt-get update
apt-get install -y nginx php5-fpm php5-cli php5-curl git php5-dev apt-get install -y nginx php5-fpm php5-cli php5-curl git php5-dev libleveldb-dev
cd /usr/local/src
git clone https://github.com/reeze/php-leveldb.git
cd php-leveldb
phpize
./configure
make
make install
cp /opt/app/leveldb.ini /etc/php5/mods-available
php5enmod leveldb
unlink /etc/nginx/sites-enabled/default unlink /etc/nginx/sites-enabled/default
cat > /etc/nginx/sites-available/sandstorm-php <<EOF cat > /etc/nginx/sites-available/sandstorm-php <<EOF
server { server {

3
leveldb.ini Normal file
View File

@ -0,0 +1,3 @@
; configuration for php LevelDB module
; priority=20
extension=leveldb.so