Roundcube is an open-source webmail client that is widely used for managing email communication. This tutorial will guide you through the installation of Roundcube on Debian Latest using the Apache web server and PHP.
To install Roundcube, you need the following:
If you have not already installed Apache web server, you can do so by running the following command:
sudo apt-get install apache2
Once installed, you should configure Apache to listen on port 80 by modifying the Listen
directive in the main configuration file. Open the file /etc/apache2/ports.conf
with your favorite text editor and ensure that the following line is present:
Listen 80
Save and close the file.
Roundcube requires PHP to function. You can install PHP and its required extensions using the following command:
sudo apt-get install php php-curl php-xml php-mbstring php-mysql php-zip
Once installed, check if PHP is installed and configured by creating a test PHP file in its web root directory, usually located at /var/www/html/
. Create a new file called info.php
with your text editor and add the following lines:
<?php
phpinfo();
?>
Save and close the file. Now, open your web browser and navigate to http://your-server-ip/info.php
. You should see the PHP info page.
To download Roundcube, visit the official website at https://roundcube.net/download/ and click on the latest stable release. You should see a download link for the source package. Copy the link and use the following command to download the package:
wget https://github.com/roundcube/roundcubemail/releases/download/1.4.11/roundcubemail-1.4.11-complete.tar.gz
Note: Replace the URL with the latest stable release.
Once downloaded, extract the package to the web root directory /var/www/html/
using the following command:
sudo tar -xvzf roundcubemail-*.tar.gz -C /var/www/html/
Next, you should move the extracted folder to a location where it is easily accessible using the following command:
sudo mv /var/www/html/roundcubemail-* /var/www/html/roundcube
Now, set the correct permissions to the Roundcube directory using the following command:
sudo chown -R www-data:www-data /var/www/html/roundcube
Roundcube uses a configuration file called config.inc.php
to define settings such as email server details, authentication method, and database details. You should copy the sample configuration file to a new file called config.inc.php
using the following command:
sudo cp /var/www/html/roundcube/config/config.inc.php.sample /var/www/html/roundcube/config/config.inc.php
Edit the new file with your favorite text editor and modify the settings to match your email server configuration. Some of the settings you may need to update are:
$config['default_host'] = 'localhost';
$config['smtp_server'] = 'localhost';
$config['smtp_port'] = 25;
// Roundcube database configuration
$config['db_dsnw'] = 'mysql://roundcube:password@localhost/roundcube';
Save and close the file.
To access Roundcube, open your web browser and navigate to http://your-server-ip/roundcube
. You should see the Roundcube login page. Use your email credentials to log in and start sending and receiving emails.
Congratulations, you have successfully installed and configured Roundcube on your Debian Latest server using Apache web server and PHP.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!