Total Pageviews

Saturday 28 December 2019

EdPaste

Laravel/PHP-driven Pastebin with users managment

EdPaste is a Laravel 5.5 (PHP Framework)-driven self-hosted Pastebin. Demo : https://paste.edra.ovh

Features :

  • Privacy options
  • Expiration options
  • Burn after reading
  • Password protection (server-side hashed)
  • User dashboard
  • Raw paste viewing
Just git clone this repo on your server, make the public folder your webserver's DocumentRoot, for instance with an Apache2.4 VirtualHost :

    ServerName your.vhost.server.com
    DocumentRoot /app/path/public

Run a composer install/php composer install (depends of your configuration) within the app root path (you'll need composer) Rename .env.example to .env and run php artisan key:generate from the app's root path. Open .env and fill it with your database details, and with Secret and Site Key from Google's reCaptcha (in order to avoid spam from guests) Run php artisan migrate from the app's root path, and you're all done.
Go to http://your.vhost.server.com/ which leads to the DocumentRoot /app/path/public, and this should work !

Updating :

Get latest features by pulling this repo again.
In case of updating because of a Laravel version change, delete everything under bootstrap/cache and run composer upgrade.

Troubleshooting :

If you get the "Paste expiration error.", then you need to migrate your database. Pastes expiration scheme changed recently, and your database has to be updated. Simply run php artisan migrate and everything will be good, without any data loss.

from https://github.com/Edraens/EdPaste