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:
- Apache web server
- PHP
- MariaDB or MySQL
Ensure that these are installed and properly configured before proceeding with the Roundcube installation.
Download Roundcube
- Visit the official Roundcube website at https://roundcube.net/download/.
- Download the latest stable version of Roundcube by clicking the "Download" button under the "Latest stable release" section.
- Save the downloaded file to a directory of your choice on your Windows 10 machine.
Install Roundcube
- Extract the contents of the downloaded Roundcube file to a directory of your choice on your Windows 10 machine.
- Rename the extracted directory to "roundcube" for convenience.
- Move the "roundcube" directory to the document root of your Apache web server. By default, this is located at
c:\xampp\htdocsdirectory for XAMPP,C:\wamp\wwwdirectory for WAMP, orC:\MAMP\htdocsdirectory on MAMP.
Create Roundcube Database
- Open the command prompt or terminal on your Windows 10 machine.
- Log in to the MariaDB or MySQL server using the following command:
mysql -u root -p
- Create a new database named "roundcube" by running the following command:
CREATE DATABASE roundcube;
- 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';
- Grant all permissions to the "roundcubeuser" user for the "roundcube" database by running the following command:
GRANT ALL PRIVILEGES ON roundcube.* TO 'roundcubeuser'@'localhost';
- Exit the MySQL/MariaDB server by running the following command:
exit;
Configure Roundcube
- Rename the
config/config.inc.php.samplefile toconfig/config.inc.php. - Edit the
config/config.inc.phpfile using a text editor such as Notepad. - Locate the following lines in the configuration file:
$config['default_host'] = 'localhost';
$config['default_port'] = 143;
$config['default_ssl'] = null;
- Replace the
localhostvalue in the$config['default_host']line with your email server's IMAP hostname, such asimap.gmail.comfor Gmail. - Replace the
$config['default_port']line with the appropriate port number based on your email server's settings. For example,993for SSL-enabled IMAP servers,143for non-SSL IMAP servers, etc. - Save the changes to the
config.inc.phpfile.
Launch Roundcube
- Open a web browser on your Windows 10 machine.
- Type in the URL of your Roundcube installation in the address bar, such as
http://localhost/roundcube. - Press Enter to launch the Roundcube login page.
- Login with your email address and password.
- 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.