Skip to content

Latest commit

 

History

History
69 lines (53 loc) · 1.3 KB

README.md

File metadata and controls

69 lines (53 loc) · 1.3 KB

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.