Setup XBackBone as my ShareX server today. Fairly simple process, just needed caddy server and PHP and extensions.
0. Install Caddy webserver
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo tee /etc/apt/trusted.gpg.d/caddy-stable.asc
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
Copy
- We are just going install the PHP dependencies.
sudo apt install zip php-fpm php-mysql php-gd php-json php-intl php-fileinfo php-zip php-ldap
Copy
Don’t forget to change the PHP config for timezone and upload size.
For Ubuntu, go to
/etc/php/7.4/fpm
Copy
And edit php.ini
for timezone, post_max_size and upload_max_filesize
We now need to install maria-db for the database part.
sudo apt install mariadb-server mariadb-client
Copy
Then we need to do the initial setup,
sudo mysql_secure_installation
Copy
Give it a root password when asked. Y, Y, Y, Y the next 4 questions and move on.
Log into MySQL by
sudo mysql -u root -p
Copy
Enter root password when prompted.
Proceed to create user, database, and grant privileges.
CREATE DATABASE 'yourDB';
CREATE USER 'newuser'@'localhost' IDENTIFIED BY '';
GRANT ALL ON xbackbone.* TO 'user'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
Copy
Once that is done. Proceed to Download XbackBone
- Download latest release from GitHub: Latest Release
- Extract the release zip to your document root.
I made mine in /var/www so
sudo mkdir /var/www
cd /var/www
sudo unzip thexbackboneversion.zip -d xbackbone
Copy
Then the PHP process needs to have permission over the folder to complete the setup
sudo chown -R www-data:www-data /var/www/xbackbone
Copy
Finish setting up caddy
sudo nano /etc/caddy/Caddyfile
Copy
domainhere {
root * /var/www/xbackbone
file_server
php_fastcgi unix//run/php/php7.4-fpm.sock
}
Copy
- Navigate to the webspace root (ex.
http://example.com
, this should auto-redirect your browser to the install pagehttp://example.com/install/
) - Follow the instructions.