Apheleia is a simple Perl-based Pastebin clone that allows users to paste code snippets or any type of text and share the resulting URL with others.
Apheleia is the Greek goddess of simplicity, prudence, and modesty. I chose this name for my pastebin project because I believe in the power of simplicity and minimalism in software design.
Apheleia is a lightweight and responsive solution, with the entire script weighing in at just 2KB.
- A web server running Perl
- CGI.pm and Digest::MD5 Perl modules
- Download the
apheleia.cgi
file from the GitHub repository. - Place the
apheleia.cgi
file in a directory namedapheleia
on your web server. - Create a directory named
pastes
in the same directory asapheleia.cgi
. This directory will be used to store the pastes. - Make sure that the
apheleia.cgi
file has execute permission.
- Navigate to
http://localhost/apheleia/apheleia.cgi
in your web browser. - Paste the code you want to share in the text area provided.
- Click the "Submit" button.
- Your paste will be saved to the
pastes
directory with a unique filename. - A success message will be displayed with a link to your paste.
- Share the link with others to share your paste.
- The
apheleia.cgi
file uses Bootstrap for styling. You can customize the styling by modifying the-style
parameter in thestart_html()
function. - The
apheleia.cgi
file uses theDigest::MD5
module to generate unique filenames for each paste. If you prefer a different naming scheme, you can modify the code accordingly. - The
apheleia.cgi
file does not include any authentication or expiration features. If you need these features, you will need to modify the code or use a different pastebin solution.