{"id":5780,"date":"2018-07-26T16:16:59","date_gmt":"2018-07-26T12:16:59","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/ubuntu-roundcube-latest\/"},"modified":"2018-07-26T16:16:59","modified_gmt":"2018-07-26T12:16:59","slug":"how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts\/","title":{"rendered":"How to Install Latest Roundcube Webmail on Ubuntu 18.04 LTS"},"content":{"rendered":"<p>Roundcube is a free and open source web-based webmail solution written in PHP. It is a web-based IMAP client, so you can also access your email server from your web browser. You don&#8217;t need to read and send emails from a desktop mail client. This tutorial shows you how to install RoundCube on Ubuntu 18.04 LTS (Bionic Beaver).<\/p>\n<h2 id=\"roundcube-features\">RoundCube Features<\/h2>\n<ul>\n<li>MIME support, message searching and spell checking.<\/li>\n<li>LDAP directory integration for address books.<\/li>\n<li>Support multiple languages.<\/li>\n<li>Support for shared\/global folders and IMAP ACLs.<\/li>\n<li>Built-in caching for fast mailbox access.<\/li>\n<li>Support for external SMTP server and IDNA.<\/li>\n<\/ul>\n<h2 id=\"requirements\">Requirements<\/h2>\n<ul>\n<li>A server running Ubuntu 18.04.<\/li>\n<li>A non-root user with sudo privileges.<\/li>\n<\/ul>\n<h2 id=\"install-lamp-server\">Install LAMP Server<\/h2>\n<p>Before starting, you will need to install Apache, MariaDB, and PHP to your system. First, install Apache and MariaDB with the following command:<\/p>\n<p class=\"command\">sudo apt-get install apache mariadb-server php7.2 php7.2-gd php-mysql php7.2-curl php7.2-zip php7.2-ldap php7.2-mbstring php-imagick php7.2-intl php7.2-xml unzip wget curl -y<\/p>\n<p>Once all the packages are installed, you will need to change Timezone setting in php.ini file. You can do this with the following command:<\/p>\n<p class=\"command\">sudo nano \/etc\/php\/7.2\/apache2\/php.ini<\/p>\n<p>Make the following changes:<\/p>\n<pre>date.timezone = Asia\/Kolkata&#13;\n<\/pre>\n<p>Save and close the file, then start Apache and MariaDB service and enable them to start on boot time using the following command:<\/p>\n<p class=\"command\">sudo systemctl start apache2<br \/>sudo systemctl enable apache2<br \/>sudo systemctl start mysql<br \/>sudo systemctl enable mysql<\/p>\n<h2 id=\"download-roundcube\">Download Roundcube<\/h2>\n<p>First, you will need to download the latest version of Roundcube to your system. You can download it with the following command:<\/p>\n<p class=\"command\">wget https:\/\/github.com\/roundcube\/roundcubemail\/releases\/download\/1.3.6\/roundcubemail-1.3.6-complete.tar.gz<\/p>\n<p>Once the download is completed, extract the downloaded file with the following command:<\/p>\n<p class=\"command\">tar -xvzf roundcubemail-1.3.6-complete.tar.gz<\/p>\n<p>Next, move the extracted directory to the Apache web root directory:<\/p>\n<p class=\"command\">mv roundcubemail-1.3.6 \/var\/www\/html\/roundcube<\/p>\n<p>Next, give proper permissions to the roundcube directory:<\/p>\n<p class=\"command\">sudo chown -R www-data:www-data \/var\/www\/html\/roundcube<br \/>sudo chmod -R 775 \/var\/www\/html\/roundcube<\/p>\n<h2 id=\"configure-the-database\">Configure the Database<\/h2>\n<p>By default, MariaDB installation is not secured. So you will need to secure it first. You can secure it by running the following script:<\/p>\n<p class=\"command\">mysql_secure_installation<\/p>\n<p>Answer all the questions as shown below:<\/p>\n<pre>Change the password for root ? N&#13;\nRemove anonymous users? Y&#13;\nDisallow root login remotely? Y&#13;\nRemove test database and access to it? Y&#13;\nReload privilege tables now? Y&#13;\n<\/pre>\n<p>Once the MariaDB is secured, login to MariaDB shell using the following command:<\/p>\n<p class=\"command\">mysql -u root -p<\/p>\n<p>Enter your root passw**ord, then create a database and user for Roundcube:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt; CREATE DATABASE roundcubedb;<br \/>MariaDB [(none)]&gt; CREATE USER &#8217;roundcube&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;<br \/>MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON roundcubedb.* to &#8217;roundcube&#8217;@&#8217;localhost&#8217;;<\/p>\n<p>Next, flush the privileges and exit from the MariaDB shell using the following command:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt; FLUSH PRIVILEGES;<br \/>MariaDB [(none)]&gt; exit;<\/p>\n<p>Next, you need to import initial tables to roundcubedb database. You can do this using the following command:<\/p>\n<p class=\"command\">cd \/var\/www\/html\/roundcube<br \/>mysql -u roundcube -p roundcubedb &lt; SQL\/mysql.initial.sql<\/p>\n<h2 id=\"configure-apache-for-roundcube\">Configure Apache for Roundcube<\/h2>\n<p>Next, you will need to create an Apache virtual host file for Roundcube. You can do this with the following command:<\/p>\n<p class=\"command\">sudo nano \/etc\/apache2\/sites-available\/roundcube.conf<\/p>\n<p>Add the following lines:<\/p>\n<pre>&lt;VirtualHost *:80&gt;&#13; ServerName 192.168.0.102 &#13; ServerAdmin <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"d4b5b0b9bdba94b1acb5b9a4b8b1fab7bbb9\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>&#13; DocumentRoot \/var\/www\/html\/roundcube&#13;\n&#13; ErrorLog ${APACHE_LOG_DIR}\/roundcube_error.log&#13; CustomLog ${APACHE_LOG_DIR}\/roundcube_access.log combined&#13;\n&#13; &lt;Directory \/var\/www\/html\/roundcube&gt;&#13; Options -Indexes&#13; AllowOverride All&#13; Order allow,deny&#13; allow from all&#13; &lt;\/Directory&gt;&#13;\n&lt;\/VirtualHost&gt;&#13;\n<\/pre>\n<p>Save and close the file, then enable virtual host file using the following command:<\/p>\n<p class=\"command\">sudo a2ensite roundcube<\/p>\n<p>Next, enable Apache rewrite module and restart Apache server with the following command:<\/p>\n<p class=\"command\">sudo a2enmod rewrite<br \/>sudo systemctl restart apache2<\/p>\n<h2 id=\"access-webmail\">Access Webmail<\/h2>\n<p>Now, open your web browser and type the URL <strong>http:\/\/your-ip-address\/installer<\/strong>. You will be redirected to the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page1_1\" href=\"https:\/\/www.howtoforge.com\/images\/_how_to_install_roundcube_webmail_on_ubuntu_1804_\/big\/page1_1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/07\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts.png\" alt=\"RoundCube web installer\" width=\"550\" height=\"229\" title=\"\"><\/a><\/p>\n<p><a class=\"fancybox\" id=\"img-page1_21\" href=\"https:\/\/www.howtoforge.com\/images\/_how_to_install_roundcube_webmail_on_ubuntu_1804_\/big\/page1_21.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/07\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts-1.png\" alt=\"Web installer - part 2\" width=\"550\" height=\"137\" title=\"\"><\/a><\/p>\n<p>Once all the requirements are completed, click on the <strong>Next<\/strong> button. You should see the following page:<\/p>\n<p><strong>General Configuration:<\/strong><\/p>\n<p><a class=\"fancybox\" id=\"img-image2_1\" href=\"https:\/\/www.howtoforge.com\/images\/_how_to_install_roundcube_webmail_on_ubuntu_1804_\/big\/image2_1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/07\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts-2.png\" alt=\"General configuration\" width=\"550\" height=\"291\" title=\"\"><\/a><\/p>\n<p><strong>Logging and Database settings:<\/strong><\/p>\n<p><strong><a class=\"fancybox\" id=\"img-image2_21\" href=\"https:\/\/www.howtoforge.com\/images\/_how_to_install_roundcube_webmail_on_ubuntu_1804_\/big\/image2_21.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/07\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts-3.png\" alt=\"Database settings\" width=\"550\" height=\"262\" title=\"\"><\/a><\/strong><\/p>\n<p><strong>SMTP and IMAP settings:<\/strong><\/p>\n<p><strong><a class=\"fancybox\" id=\"img-image3_11\" href=\"https:\/\/www.howtoforge.com\/images\/_how_to_install_roundcube_webmail_on_ubuntu_1804_\/big\/image3_11.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/07\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts-4.png\" alt=\"SMTP Settings\" width=\"550\" height=\"272\" title=\"\"><\/a><\/strong><\/p>\n<p><a class=\"fancybox\" id=\"img-image3_2\" href=\"https:\/\/www.howtoforge.com\/images\/_how_to_install_roundcube_webmail_on_ubuntu_1804_\/big\/image3_2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/07\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts-6.png\" alt=\"IMAP settings\" width=\"550\" height=\"133\" title=\"\"><\/a><\/p>\n<p><strong>Plugins:<\/strong><\/p>\n<p><a class=\"fancybox\" id=\"img-image4_1\" href=\"https:\/\/www.howtoforge.com\/images\/_how_to_install_roundcube_webmail_on_ubuntu_1804_\/big\/image4_1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/07\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts-8.png\" alt=\"Plugins\" width=\"550\" height=\"279\" title=\"\"><\/a><\/p>\n<p>Here, provide all the details as per your need, then click on the <strong>CREATE CONFIG<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-image5\" href=\"https:\/\/www.howtoforge.com\/images\/_how_to_install_roundcube_webmail_on_ubuntu_1804_\/big\/image5.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/07\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts-10.png\" alt=\"Create Config\" width=\"550\" height=\"102\" title=\"\"><\/a><\/p>\n<p>Next, click on the <strong>Continue<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-image6_1\" href=\"https:\/\/www.howtoforge.com\/images\/_how_to_install_roundcube_webmail_on_ubuntu_1804_\/big\/image6_1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/07\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts-12.png\" alt=\"Config created\" width=\"550\" height=\"262\" title=\"\"><\/a><\/p>\n<p>Now, click on the <strong>Check login<\/strong> button. After completing the installation, remove the directory \/var\/www\/html\/roundcube\/installer:<\/p>\n<p class=\"command\">sudo rm -rf \/var\/www\/html\/roundcube\/installer<\/p>\n<p>Now, access your webmail using the URL <strong>http:\/\/your-ip-address<\/strong> or <strong>http:\/\/your-domain.com<\/strong> and sign in using your email.<\/p>\n<p><a class=\"fancybox\" id=\"img-roundcube-login\" href=\"https:\/\/www.howtoforge.com\/images\/_how_to_install_roundcube_webmail_on_ubuntu_1804_\/big\/roundcube-login.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/07\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts-14.png\" alt=\"Roundcube Login\" width=\"550\" height=\"328\" title=\"\"><\/a><\/p>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-roundcube-latest%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/07\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts-16.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-roundcube-latest%2F&amp;text=+How+to+Install+Latest+Roundcube+Webmail+on+Ubuntu+18.04+LTS&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/www.howtoforge.com\/images\/socialmedia\/btn-tweet.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/07\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts-18.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-roundcube-latest%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/07\/how-to-install-latest-roundcube-webmail-on-ubuntu-18-04-lts-20.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Roundcube is a free and open source web-based webmail solution written in PHP. It is a web-based IMAP client, so you can also access your email server from your web browser. You don&#8217;t need to read and send emails from a desktop mail client. This tutorial shows you how to install RoundCube on Ubuntu 18.04 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-5780","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/5780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=5780"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/5780\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=5780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=5780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=5780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}