url shortener which creates a print. for denouncing despicable content without giving it views or pagerank
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
images
inc
js
lib
.env.example
.gitignore
.htaccess
LICENSE
README.md
capture.sh
composer.json
index.php
optimize.sh
proxy.php
robots.txt initial May 10, 2014
schema.sql
slice.sh

README.md

naofo.de

url shortener which creates a print. for denouncing despicable content without giving it views or pagerank / it's all about http://wkhtmltopdf.org/

simple installation guide for ubuntu 14.04

dependencies:

  • python
  • apache
  • php5
  • php5-curl
  • php5-mysql
  • mysql
  • wkhtmltoimage
  • imagemagick
  • composer

other requirements:

  • recaptcha
  • google analytics

steps:

  1. Rename .env.example to .env

  2. Edit the .env with your data

  3. Create database table:

mysql> source /path/to/schema.sql
  1. Alter <Directory /var/www/> in /etc/apache2/apache2.conf:
AllowOverride All
  1. Execute
chown www-data:www-data /var/www/html/prints
  1. Execute
a2enmod rewrite
  1. Execute
service apache2 restart
  1. Install composer dependences
composer install

Troubleshooting

xvfb

On a headless server I had to use xfvb as mentioned here and here.

On a debian based system you have to: sudo apt-get install xvfb

Otherwise, the capture.sh file should be changed to not use xvfb.