Desobediente Civil c669259c75 Adicionei novas instruções | il y a 8 ans | |
---|---|---|
css | il y a 10 ans | |
inc | il y a 10 ans | |
js | il y a 10 ans | |
lib | il y a 8 ans | |
.gitignore | il y a 8 ans | |
.htaccess | il y a 10 ans | |
LICENSE | il y a 10 ans | |
README.md | il y a 8 ans | |
ajax-loader.gif | il y a 10 ans | |
apple-touch-icon-precomposed.png | il y a 10 ans | |
capture.sh | il y a 8 ans | |
favicon.ico | il y a 10 ans | |
humans.txt | il y a 10 ans | |
index.php | il y a 8 ans | |
optimize.sh | il y a 10 ans | |
private.php | il y a 8 ans | |
proxy.php | il y a 10 ans | |
robots.txt | il y a 10 ans | |
schema.sql | il y a 10 ans | |
slice.sh | il y a 10 ans | |
static.php | il y a 8 ans |
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.