YOURLS

From ArchWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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 configuration file at /etc/webapps/yourls/config.php.

In the same configuration file, set YOURLS_SITE to either your short domain https://domain.tld or a subfolder http://domain.tld/sub, 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.