Desobediente Civil c669259c75 Adicionei novas instruções | 8 anos atrás | |
---|---|---|
css | 10 anos atrás | |
inc | 10 anos atrás | |
js | 10 anos atrás | |
lib | 8 anos atrás | |
.gitignore | 8 anos atrás | |
.htaccess | 10 anos atrás | |
LICENSE | 10 anos atrás | |
README.md | 8 anos atrás | |
ajax-loader.gif | 10 anos atrás | |
apple-touch-icon-precomposed.png | 10 anos atrás | |
capture.sh | 8 anos atrás | |
favicon.ico | 10 anos atrás | |
humans.txt | 10 anos atrás | |
index.php | 8 anos atrás | |
optimize.sh | 10 anos atrás | |
private.php | 8 anos atrás | |
proxy.php | 10 anos atrás | |
robots.txt | 10 anos atrás | |
schema.sql | 10 anos atrás | |
slice.sh | 10 anos atrás | |
static.php | 8 anos atrás |
url shortener which creates a print. for denouncing despicable content without giving it views or pagerank / it's all about http://wkhtmltopdf.org/
dependencies:
other requirements:
steps:
add apache variables in /etc/apache2/envvars
:
export naofode_recaptchakey='???'
export naofode_dsn='mysql:host=localhost;dbname=???'
export naofode_dbuser='???'
export naofode_dbpass='???'
alter recaptcha site key in index.php
alter analytics javascript in index.php
create database table:
mysql> source /path/to/schema.sql
edit files static.php
and private.php
to match your local configuration.
also you'll have to change line 12 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.