How to Install Shaarli on Windows 11
Shaarli is a powerful and self-hosted bookmarking application that allows users to save, organize, and share links effortlessly. To run Shaarli on your Windows 11 computer, you will need to complete the following steps:
Prerequisites
- A running web server (Apache or Nginx) with PHP 7.3 or higher installed
- MySQL or MariaDB server installed
Step 1 - Downloading Shaarli
To get started, you will need to download Shaarli's latest version from the GitHub repository. You can do so by visiting https://github.com/shaarli/Shaarli/releases, selecting the latest release, and downloading the ZIP archive.
Step 2 - Extracting Shaarli's Files
After downloading, extract the ZIP archive to the document root of your web server. If you're using Apache, the default document root is usually located at C:\xampp\htdocs. And if you're using Nginx, it's located at C:\nginx\html.
Step 3 - Configuring Shaarli
Next, you will need to configure Shaarli by creating a new configuration file. Navigate to the data folder and copy the config.default.php file to a new file named config.php.
Open config.php with a text editor and update the following settings:
define('DATA_DIR', './data/');
define('PATH_CACHE', DATA_DIR . 'cache/');
define('PATH_LOG', DATA_DIR . 'logs/');
define('PATH_CONFIG', DATA_DIR . 'config.php');
define('DB_TYPE', 'mysql');
define('DB_HOST', 'localhost');
define('DB_PORT', 3306);
define('DB_NAME', 'shaarli');
define('DB_USER', 'root');
define('DB_PASSWORD', 'password');
Make sure to update the DB_NAME, DB_USER, and DB_PASSWORD settings to match your MySQL or MariaDB configuration.
Step 4 - Creating a New MySQL or MariaDB Database
Before proceeding, you will need to create a new database for Shaarli using your preferred method. You can use phpMyAdmin, MySQL command-line client, or any other method to create the new database.
CREATE DATABASE shaarli;
Step 5 - Importing Shaarli's Database
Shaarli ships with a pre-configured database schema that you can import using the following command:
mysql -u root -p shaarli < data/shaarli.mysql.sql
Step 6 - Accessing Shaarli
Finally, you can access Shaarli by visiting http://localhost/Shaarli/ in your web browser. You can now start adding bookmarks, organizing them into categories, and sharing them with your friends.
Congratulations! You have successfully installed Shaarli on Windows 11!