Roundcube is a web browser based mail client & also known as webmail. It provides a GUI ( Graphical User Interface ) where end users can check their mails, can create & manage folders, can use address book to search email ids and lot of other webmail features.
To install roundcube on CentOS 7 followings are the prerequisite that should be installed.
- PHP
- Database ( MariaDB or MySQL )
- Web Server ( Apache )
- Any MTA – Postfix , Sendmail & Qmail
In My Case i have already installed Postfix with dovecot on CentOS 7 with
- Domain name = nsitmail.com
- Hostname = tec.nsitmail.com
Follow below Steps to install & configure latest version of Roundcube :
Step:1 Install PHP , Database & Apache using below command :
[[email protected] ~]# yum install httpd php php-common php-json php-xml php-mbstring php-imap php-pear-DB php-mysql mysql mariadb-server
Once the above package list is installed , set the time zone value in PHP .
[email protected] ~]# vi /etc/php.ini date.timezone = Asia/Kolkata
Save & exit the file
Step:2 Create & Configure Roundcube Database
Let us first set the Initial settings & root password of Mariadb Server :
[[email protected] ~]# systemctl start mariadb [[email protected] ~]# systemctl enable mariadb ln -s '/usr/lib/systemd/system/mariadb.service' '/etc/systemd/system/multi-user.target.wants/mariadb.service' [[email protected] ~]# [[email protected] ~]# mysql_secure_installation
Above Command “mysql_secure_installation” will allow us to set root password , remove anonymous users , disable remote root login and will remove test database.
Now Create database for Roundube and grant all the permissions to the database
Step:3 Download tar file of Roundcube
Download latest version of Roundcube tar file either from their official site “https://roundcube.net/download/” or we can use below wget command.
[[email protected] ~]# wget http://nchc.dl.sourceforge.net/project/roundcubemail/roundcubemail/1.1.3/roundcubemail-1.1.3-complete.tar.gz
Untar the downloaded file in your web server document root.
[[email protected] ~]# tar -zxpvf roundcubemail-1.1.3-complete.tar.gz -C /var/www/html/
Rename the extracted file as Roundcube and set the required permissions
[[email protected] html]# mv roundcubemail-1.1.3 roundcube [[email protected] html]# chown apache:apache roundcube [[email protected] html]#
Start the Apache service
[[email protected] html]# systemctl start httpd [[email protected] html]# systemctl enable httpd ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service' [[email protected] html]#
Step:4 Start Roundcube installation using web browser installer.
To start the installation of Rouncube , access the below url in the web browser
http://tec.nsitmail.com/roundcube/installer
click on Next…
Define the Database, Authentication Mechanism, SMTP & IMAP setting in this step. When We click on Create Config option it will ask us to Copy or download the configuration and save it as config.inc.php within the /var/www/html/roundcube/config/ directory of your Roundcube installation.
In my case i am using http based authentication mechanism , so i create one user on my Linux box and set its password using htpasswd command .
[[email protected] ~]# htpasswd -c /home/linuxtechi/.htpasswd linuxtechi New password: Re-type new password: Adding password for user linuxtechi [[email protected] ~]#
Remove the installer directory from your web server document root ( /var/www/html/roundcube )
[[email protected] ~]# cd /var/www/html/roundcube/ [[email protected] roundcube]# rm -rf installer [[email protected] roundcube]#
Step:5 Now access your account using Roundcube
Open the url in the browser “http://tec.nsitmail.com/roundcube/” , use the credentials that we set using htpasswd command.
Roundcube installation is completed, Now explore it and enjoy.
Roundcube 1.1.3 is already included in EPEL so why not just install it from there? That makes it much easier manage updates as they are released.
DATABASE ERROR: CONNECTION FAILED!
Unable to connect to the database!
Please contact your server-administrator.
CONFIGURATION ERROR
config.inc.php was not found.
Please read the INSTALL instructions!
Reply
cannot login into roundcube
though password is correct
How can I do step 4 on purely a CLI interface from my remote server that I’m setting roundcube up on?
How can i configure password plugin.
I have completed the following configuration
1) postfix
2) mariadb
3) dovecot
4) roundcube
Next i want to configure roundcube password plugin.
Cloud please help me for that
error while grant all privileages
MariaDB [(none)]> GRANT ALL PRIVILEGES ON webmail.* TO [email protected] IDENTIFIED BY ’[email protected]#’;
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘’[email protected]’ at line 1
MariaDB [(none)]>
can we use this to send mails to gmail Id’s
Yes, You can use Roundcube to send emails to gmail & yahoo etc but for that you need to configure MTA (Postfix & Sendmail) and update the MTA settings in your roundcube.
i need to know how to initially login to roundcubemail i don’t know the username password, please help me to findout username and password
Anyone seen this before??
I already changed my owner and group ownerships to apache
/var/www/html/roundcube/temp/: NOT OK(not writeable for the webserver)
/var/www/html/roundcube/logs/: NOT OK(not writeable for the webserver)
resolved by disabling selinux