To set up Froxlor on Debian, follow the steps below:
Before starting, ensure your Debian system is up to date.
sudo apt update && sudo apt upgrade -y
Install the necessary software packages for Froxlor, such as Apache/Nginx, MySQL/MariaDB, PHP, and other dependencies.
sudo apt install apache2 mariadb-server php php-mysql php-curl php-json php-cli php-mbstring
Secure the database installation:
sudo mysql_secure_installation
Then create a database and user for Froxlor:
sudo mysql -u root -p
CREATE DATABASE froxlor;
CREATE USER 'froxloruser'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON froxlor.* TO 'froxloruser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Add the Froxlor repository to your Debian sources list and install it via APT.
echo "deb https://deb.froxlor.org/debian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/froxlor.list
wget -O - https://deb.froxlor.org/key.asc | sudo apt-key add -
sudo apt update
sudo apt install froxlor
After installation, open a web browser and navigate to your server’s IP or domain, followed by /froxlor
(e.g., http://your-server-ip/froxlor
).
You will be guided through a web-based setup process where you’ll need to:
If you plan to use SSL certificates, install Let’s Encrypt and configure it within Froxlor:
sudo apt install certbot
sudo certbot --apache
Here’s an example docker-compose.yml
file that sets up a Froxlor 2 host:
version: '3'
services:
froxlor:
image: froxlor/froxlor:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./froxlor:/var/www/html
- ./logs:/var/log/apache2
- ./ssl:/etc/apache2/ssl
environment:
- MYSQL_ROOT_PASSWORD=root_password
- MYSQL_USER=froxlor_user
- MYSQL_PASSWORD=froxlor_password
- MYSQL_DATABASE=froxlor_db
depends_on:
- db
restart: always
db:
image: mysql:latest
volumes:
- ./mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root_password
- MYSQL_USER=froxlor_user
- MYSQL_PASSWORD=froxlor_password
- MYSQL_DATABASE=froxlor_db
restart: always
This file sets up two services: froxlor
and db
. The froxlor
service runs the Froxlor image, exposes ports 80 and 443 for HTTP and HTTPS traffic, mounts volumes for the Froxlor files, Apache logs, and SSL certificates, sets environment variables for the MySQL database connection, depends on the db
service to start up first, and restarts automatically if it fails.
The db
service runs the MySQL image, mounts a volume for the MySQL data, sets environment variables for the root password, MySQL user, password, and database name, and restarts automatically if it fails.
To start the demo host, save the above code to a file named docker-compose.yml
, navigate to the directory where the file is located in a terminal, and run the command docker-compose up -d
. This will download the necessary images and start the containers in the background. You can then access the Froxlor 2 demo host by visiting http://localhost
or https://localhost
in your web browser.
Note: This is just an example file and you may need to adjust the configuration to fit your specific needs.