How to Install Dudle on Debian Latest
Dudle is an open-source scheduling application that runs on web servers. It allows users to create polls and surveys to schedule events easily. This tutorial will guide you on how to install Dudle on Debian latest.
Prerequisites
Before you proceed with the installation of Dudle, make sure you have the following:
- A Linux server running Debian latest
- A web server (Apache or Nginx) installed and running
- PHP 7.2 or higher installed and configured
- MySQL or MariaDB installed and configured
- SSH access to your server
- root or sudo user privileges
Step 1: Install Required Dependencies
To install Dudle, you need to install some required dependencies first. Run the following command to install them:
sudo apt update
sudo apt install git php7.3-cli php7.3-mysql php7.3-curl php7.3-gd php7.3-xml unzip
Step 2: Download and Configure Dudle
- Clone the Dudle repository to your server:
git clone https://github.com/dudle/dudle.git
- Move the downloaded directory to your web server's document root:
sudo mv dudle /var/www/html/
- Rename the "config.php.dist" file to "config.php" and update the database settings:
cd /var/www/html/dudle/
sudo cp config.php.dist config.php
sudo nano config.php
- Set your database credentials in the "config.php" file:
define('DB_HOST', 'localhost');
define('DB_NAME', 'dudle');
define('DB_USER', 'your-database-user');
define('DB_PASS', 'your-database-password');
Step 3: Create Database and User
- Login to your MySQL/MariaDB server:
sudo mysql
- Create a new database for Dudle:
CREATE DATABASE dudle;
- Create a new user and grant privileges to the Dudle database:
CREATE USER 'your-database-user'@'localhost' IDENTIFIED BY 'your-database-password';
GRANT ALL PRIVILEGES ON dudle.* TO 'your-database-user'@'localhost';
FLUSH PRIVILEGES;
- Exit MySQL/MariaDB:
exit
Step 4: Configure Web Server
Apache
- Create a new virtual host configuration file for Dudle:
sudo nano /etc/apache2/sites-available/dudle.conf
- Add the following configuration to the file and save:
<VirtualHost *:80>
ServerName dudle.example.com
DocumentRoot /var/www/html/dudle
<Directory /var/www/html/dudle>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/dudle-error.log
CustomLog ${APACHE_LOG_DIR}/dudle-access.log combined
</VirtualHost>
- Enable the virtual host and restart Apache:
sudo a2ensite dudle.conf
sudo systemctl restart apache2
Nginx
- Create a new server block configuration file for Dudle:
sudo nano /etc/nginx/sites-available/dudle
- Add the following configuration to the file and save:
server {
listen 80;
server_name dudle.example.com;
root /var/www/html/dudle;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php-fpm.sock;
}
error_log /var/log/nginx/dudle-error.log;
access_log /var/log/nginx/dudle-access.log;
}
- Enable the server block and restart Nginx:
sudo ln -s /etc/nginx/sites-available/dudle /etc/nginx/sites-enabled/
sudo systemctl restart nginx
Step 5: Access Dudle
You can now access Dudle by navigating to http://dudle.example.com (replace "dudle.example.com" with your server's domain name or IP address).
Conclusion
You have successfully installed and configured Dudle on Debian latest. You can now create polls and surveys to schedule events easily with Dudle. Enjoy!