New page on PrivateBin

This commit is contained in:
bwaegeneire 2020-09-30 11:32:33 +02:00
parent fec62e1cb5
commit b35be3f1b1

29
HowtoPrivateBin.md Normal file
View file

@ -0,0 +1,29 @@
Pour installer PrivateBin (1.3.4), avec Debian 10 et PHP 7.3 il suffit de
1. Créer les comptes : "/usr/share/scripts/evoadmin/web-add.sh add paste www-paste"
2. Télécharger les sources de la dernière version et les extraire dans un home
3. Bouger les sources dans ~/privatebin
4. Copier certains fichiers de ~/privatebin dans ~/www "cp -r ~privatebin/{i18n,img,js,css} ~www/"
5. Ecrire dans ~/www/index.php le contenu suivant :
~~~ { .php }
<?php
/**
* PrivateBin
*
* a zero-knowledge paste bin
*
* @link https://github.com/PrivateBin/PrivateBin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 1.3
*/
// change this, if your php files and data is outside of your webservers document root
define('PATH', '../privatebin/');
define('PUBLIC_PATH', __DIR__);
require PATH . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
new PrivateBin\Controller;
~~~
5. Relancer apache
https://github.com/PrivateBin/PrivateBin/blob/master/INSTALL.md