Pastebin is a service that allows you to "paste" any text and share it with others, publicly or privately. I am in need of a piece of self-hosted software that does exactly what pastebin does, but without the need of a 3rd party.

To give you some context, I am attempting to create an error reporting/support service for my bukkit plugin and I need something that not only uploads a log file, but also can be shared with the user. Pastebin's API would be a great thing for this, but they limit the data to just 500kb and I would rather not send personal information through a 3rd party. I need this software to have a built in API so that I can submit data via POST and have it return a link to the paste, just like what pastebin does.


  • It must be self-hosted
  • It must be gratis (free) and it would be preferred if it was floss (open source) but that's not a requirement
  • It must have a built in API so I may submit my data
    • The API must be able to get data (the text I am sending it), and return the link to the paste
  • It is preferable if its made with php and be integrated into my website (I don't have tons of RAM on my VPS, so I don't really want to run additional services if I don't have to)
  • Syntax highlighting would be pretty nifty, but not required

Stikked will do the trick (example).

Stikked is an Open-Source PHP Pastebin, with the aim of keeping a simple and easy to use user interface.

Stikked allows you to easily share code with anyone you wish. Based on the original Stikked with lots of bugfixes and improvements.


  • Self-hosted
  • Free
  • Developed with php
  • Has a built-in API that accepts POST data and returns the link. Even has the ability to secure the API with an optional API key
  • Syntax highlighting (can select the language either via web interface or through API)
  • Expiring pastes
  • Themes
  • Integration with YOURLS (especially love this feature)
  • Anti-spam features
  • Ability to "reply" to a paste

I must say I am very pleased with this software. Works just like I wanted it to.

|improve this answer|||||
  • Hmm... plain text doesn't use fixed width font. Annoying. – djangofan Sep 19 '15 at 20:56

Sticky Notes which is used by the Fedora pastebin*:

  • BSD 2-clause license
  • runs on PHP and MySQL
  • has syntax highlighting
  • has an API (by the way, Fedora also has a command-line client, fpaste which is written in Python)
  • add-on services: project Honeypot integration, goog.gl URL shortener, Google Analytics, Google oAuth 2.0, Akismet, project pastebins (someproject.yoursite.com), CLI configuration editor

* You might find useful the ansible role used by the Fedora infrastructure team for deploying it.

|improve this answer|||||

Not the answer you're looking for? Browse other questions tagged or ask your own question.