My friend who work on library came and asked me to install some component for their test server that will be base of publishing and collaborate documents. He already try the guide provided by Flowpaper but might be confuse on some steps that might be out of date.
He use free vps that located on Japan (actually its free $20 from Vultr) to try the guide but failed on swftools section. I use his vps and change a little bit the procedure on Ubuntu 14.04 64 bit LTS.
Here the steps : ( I log in as root)
Compiler and friends
apt-get update apt-get upgrade apt-get install build-essential
Verify its exist
gcc -v make -v
Create Linux swap in two steps
Check current swap size
free -m
total used free shared buffers cached
Mem: 488 427 61 0 13 346
-/+ buffers/cache: 66 421
Swap: 0 0 0
Install swap maker shell script
wget https://raw.githubusercontent.com/Cretezy/Swap/master/swap.sh -O swap
Create 2G swap
sh swap 2G
Welcome to Swap setup script! This script will automatically setup a swap file and enable it.
Root access is required, please run as root or enter sudo password.
Source is @ https://github.com/Cretezy/Swap
Setting up swapspace version 1, size = 2097148 KiB
no label, UUID=e1418ff5-1126-48d8-ac50-d6dd80427752
/swapfile none swap sw 0 0
Done! You now have a 2G swap file at /swapfile
Check it
free -m
total used free shared buffers cached
Mem: 488 428 59 0 14 348
-/+ buffers/cache: 66 422
Swap: 2047 0 2047
Install php5
apt-get install php5 unzip
Install pdftk
apt-get install pdftk
swftools
apt-get install swftools
Install pdf2json
mkdir pdf2json cd pdf2json wget -c https://github.com/flexpaper/pdf2json/releases/download/v0.68/pdf2json-0.68.tar.gz tar xvzf pdf2json-0.68.tar.gz ./configure make && make install
Test flowpaper
cd /var/www/html/ wget -c https://flowpaper.com/GPL/FlexPaper_2.3.6.zip unzip FlexPaper_2.3.6.zip cd /var/www/html/php/config/ chmod 777 config.ini.nix.php chmod -R 777 /var/www/html/pdf
Setting admin etc
enter location of pdf folder and add
/usr/share/swftools
as path of swftools
Done.