LinkAce is a free and open source bookmark archive for long-term storage and organization of your favorite links. Automatically sends all links to the Internet Archive for safekeeping. Has an unauthenticated guest mode as well as an authenticated private link mode (on a case-by-case basis). Has a trashcan feature so you can rescue deleted links.
Requires PHP v7.3 or later.
Supported databases
Requires Composer and NPM to set up, so good luck running this on shared hosting.