url shortener which creates a print. for denouncing despicable content without giving it views or pagerank / it's all about http://wkhtmltopdf.org/
dependencies:
- python
- apache
- php5
- php5-curl
- php5-mysql
- mysql
- wkhtmltoimage
- imagemagick
other requirements:
- recaptcha
- google analytics
steps:
-
add apache variables in
/etc/apache2/envvars
:export naofode_privatekey='
recaptcha-public-key
'
export naofode_publickey='recaptcha-private-key
'
export naofode_dsn='mysql:host=localhost;dbname=naofode'
export naofode_dbuser='???'
export naofode_dbpass='???' -
alter recaptcha site key in
static.php
-
alter analytics javascript in
index.php
-
create database table:
mysql> source /path/to/schema.sql
-
edit files
static.php
to match your local configuration.also, currently you'll have to change line 11 of file
lib/Thrash.class.php
to suit your environment. -
alter
<Directory /var/www/>
in/etc/apache2/apache2.conf
:AllowOverride All
-
execute
mkdir /var/www/html/prints
-
execute
chown www-data:www-data /var/www/html/prints
-
execute
a2enmod rewrite
-
execute
service apache2 restart
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
.