How to Install Roundcube on Windows 10

In this tutorial, we will learn how to download and install Roundcube on a Windows 10 machine.

Prerequisites

Before getting started, we will need to install the following prerequisites:

Ensure that these are installed and properly configured before proceeding with the Roundcube installation.

Download Roundcube

  1. Visit the official Roundcube website at https://roundcube.net/download/.
  2. Download the latest stable version of Roundcube by clicking the "Download" button under the "Latest stable release" section.
  3. Save the downloaded file to a directory of your choice on your Windows 10 machine.

Install Roundcube

  1. Extract the contents of the downloaded Roundcube file to a directory of your choice on your Windows 10 machine.
  2. Rename the extracted directory to "roundcube" for convenience.
  3. Move the "roundcube" directory to the document root of your Apache web server. By default, this is located at c:\xampp\htdocs directory for XAMPP, C:\wamp\www directory for WAMP, or C:\MAMP\htdocs directory on MAMP.

Create Roundcube Database

  1. Open the command prompt or terminal on your Windows 10 machine.
  2. Log in to the MariaDB or MySQL server using the following command:
mysql -u root -p
  1. Create a new database named "roundcube" by running the following command:
CREATE DATABASE roundcube;
  1. Create a new user for the Roundcube database with the username "roundcubeuser" and password "password" by running the following command:
CREATE USER 'roundcubeuser'@'localhost' IDENTIFIED BY 'password';
  1. Grant all permissions to the "roundcubeuser" user for the "roundcube" database by running the following command:
GRANT ALL PRIVILEGES ON roundcube.* TO 'roundcubeuser'@'localhost';
  1. Exit the MySQL/MariaDB server by running the following command:
exit;

Configure Roundcube

  1. Rename the config/config.inc.php.sample file to config/config.inc.php.
  2. Edit the config/config.inc.php file using a text editor such as Notepad.
  3. Locate the following lines in the configuration file:
$config['default_host'] = 'localhost';
$config['default_port'] = 143;
$config['default_ssl'] = null;
  1. Replace the localhost value in the $config['default_host'] line with your email server's IMAP hostname, such as imap.gmail.com for Gmail.
  2. Replace the $config['default_port'] line with the appropriate port number based on your email server's settings. For example, 993 for SSL-enabled IMAP servers, 143 for non-SSL IMAP servers, etc.
  3. Save the changes to the config.inc.php file.

Launch Roundcube

  1. Open a web browser on your Windows 10 machine.
  2. Type in the URL of your Roundcube installation in the address bar, such as http://localhost/roundcube.
  3. Press Enter to launch the Roundcube login page.
  4. Login with your email address and password.
  5. You should now be able to access your email safely and securely through the Roundcube web application.

Congratulations! You have successfully installed and configured Roundcube on your Windows 10 machine.

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!