Roundcube webmail setup
Roundcube is a popular open-source webmail client that can be installed on a web server to provide a user-friendly interface for managing email accounts. Here's a step-by-step guide to setting up Roundcube:
Prerequisites:
- A web server (e.g., Apache, Nginx, or Lighttpd) with PHP and MySQL installed.
- A MySQL database to store Roundcube's configuration and user data.
- A domain name and a DNS setup to point to your web server.
Step 1: Download and Extract Roundcube
- Download the latest version of Roundcube from the official website: https://roundcube.net/download
- Extract the downloaded archive to a directory on your web server, e.g.,
/var/www/roundcube
.
Step 2: Configure Roundcube
- Create a new file called
config.inc.php
in the Roundcube directory and add the following settings:<?php // Database settings $db_host = 'localhost'; $db_username = 'roundcube_user'; $db_password = 'roundcube_password'; $db_name = 'roundcube_db';
// Mail settings $default_host = 'localhost'; $default_port = 25; $default_user = ''; $default_pass = '';
// Other settings $plugins = array('password'); $skin = 'default'; $language = 'en'; ?>
Replace the placeholders with your actual database and mail settings.
**Step 3: Create the Database**
1. Create a new MySQL database and user for Roundcube:
```sql
CREATE DATABASE roundcube_db;
GRANT ALL PRIVILEGES ON roundcube_db.* TO 'roundcube_user'@'localhost' IDENTIFIED BY 'roundcube_password';
Step 4: Install Roundcube
- Run the following command to install Roundcube:
php installer.php
This will create the necessary tables in your database and configure Roundcube.
Step 5: Configure Apache (or your web server)
-
Create a new Apache configuration file (e.g.,
/etc/apache2/conf.d/roundcube.conf
) and add the following settings:<VirtualHost *:80> ServerName yourdomain.com DocumentRoot /var/www/roundcube <Directory /var/www/roundcube> Options FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost>
Replace
yourdomain.com
with your actual domain name.
Step 6: Restart Apache (or your web server)
-
Restart your web server to apply the new configuration:
sudo service apache2 restart
Step 7: Access Roundcube
-
Open a web browser and navigate to
http://yourdomain.com/roundcube
(replaceyourdomain.com
with your actual domain name). -
Log in with your email account credentials (username and password).
That's it! You should now have Roundcube set up and running on your web server.