Difference between revisions of "YOURLS"

From ArchWiki
Jump to navigation Jump to search
(Created page with "[https://yourls.org/ YOURLS] is a self-hosted link shortener service written in PHP. = Installation = Install the {{aur|yourls}} package. = Setup = A MySQL database...")
 
(Add Category.)
 
Line 1: Line 1:
 +
[[Category:Servers]]
 
[https://yourls.org/ YOURLS] is a self-hosted link shortener service written in PHP.
 
[https://yourls.org/ YOURLS] is a self-hosted link shortener service written in PHP.
  

Latest revision as of 08:27, 13 May 2019

YOURLS is a self-hosted link shortener service written in PHP.

Installation

Install the yourlsAUR package.

Setup

A MySQL database and user are required, to complete the config file at /etc/webapps/yourls/config.php.

In the same config file, set the YOURLS_SITE to either your short domain http://example.org or a subfolder http://example.org/s, but always without the trailing /.

Set a random cookie key, for example using pwgen 50 1 and a user/password combo for the admin user. You can write the hash or the plain-text, but in the latter case the web server needs rw permissions to be able to hash it.