32 lines
1 KiB
Markdown
32 lines
1 KiB
Markdown
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;
|
|
~~~
|
|
|
|
6. Relancer apache
|
|
|
|
https://github.com/PrivateBin/PrivateBin/blob/master/INSTALL.md |