<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Roundcube Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/roundcube/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/roundcube/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Mon, 26 Dec 2022 16:00:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://www.linuxtuto.com/wp-content/uploads/2022/01/cropped-LT_faveicon-32x32.png</url>
	<title>Roundcube Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/roundcube/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install Roundcube on Ubuntu 22.04</title>
		<link>https://www.linuxtuto.com/how-to-install-roundcube-on-ubuntu-22-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-roundcube-on-ubuntu-22-04/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 26 Dec 2022 16:00:10 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Roundcube]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=702</guid>

					<description><![CDATA[<p>Roundcube is a free open-source web-based multilingual IMAP email client written in PHP. It provides the full functionality you expect from an email client, including...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-roundcube-on-ubuntu-22-04/">How to Install Roundcube on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Roundcube is a free open-source web-based multilingual IMAP email client written in PHP. It provides the full functionality you expect from an email client, including MIME support, address book, folder manipulation, message searching, and spell checking.</p>
<p>This tutorial is going to show you how to install Roundcube webmail on Ubuntu 22.04 with Nginx web server and MySQL database server.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Before you can proceed with installation and configuration of Roundcube webmail on Ubuntu 22.04, update and upgrade your system packages to the latest version with the following command:</p>
<pre><code># apt update &amp;&amp; sudo apt upgrade -y</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Nginx Web Server</span></h2>
<p>In this tutorial, we will use Nginx. If you prefer Apache or another web server, you can use that instead of Nginx.</p>
<p>You can install Nginx via <code>apt</code> package manager by executing the following command.</p>
<pre><code># apt install nginx</code></pre>
<p>You can start the Nginx service and configure it to run on startup by entering the following commands:</p>
<pre><code># systemctl start nginx
# systemctl enable nginx</code></pre>
<p>Verify the status of the <code>Nginx</code> service using <code>systemctl status</code> command:</p>
<pre><code># systemctl status nginx</code></pre>
<p>Output:</p>
<pre><code><span style="color: #00ff00;">●</span> nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: <span style="color: #00ff00;">active (running)</span>
       Docs: man:nginx(8)
   Main PID: 5317 (nginx)
      Tasks: 2 (limit: 2196)
     Memory: 2.6M
        CPU: 31ms
     CGroup: /system.slice/nginx.service
             ├─5317 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             └─5318 "nginx: worker process
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install PHP </span><span class="has-inline-color has-vivid-purple-color">and required PHP extensions for Roundcube</span></h2>
<p>Run the following command to install the required PHP extensions. PHP8.1 is fully supported in the 1.6 release.</p>
<pre><code># apt install php php-fpm php-gd php-common php-json php-imagick php-imap php-xml php-mbstring php-curl php-zip php-bz2 php-intl php-ldap</code></pre>
<p>Verify if PHP is installed.</p>
<pre><code># php -v</code></pre>
<pre><code><strong>Output:</strong>
PHP 8.1.2-1ubuntu2.9 (cli) (built: Oct 19 2022 14:58:09) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.2-1ubuntu2.9, Copyright (c), by Zend Technologies</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MySQL and create a database</span></h2>
<p>You can install the MySQL server with the following command:</p>
<pre><code># apt install mysql-server</code></pre>
<p>Start the database server daemon, and also enable it to start automatically at the next boot with the following commands:</p>
<pre><code># systemctl start mysql
# systemctl enable mysql</code></pre>
<p>Verify the status of the <code>MySQL</code> service using <code>systemctl status</code> command:</p>
<pre><code># systemctl status mysql</code></pre>
<p>Output:</p>
<pre><code><span style="color: #00ff00;">●</span> mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: <span style="color: #00ff00;">active (running)</span>
   Main PID: 1083 (mysqld)
     Status: "Server is operational"
      Tasks: 41 (limit: 2797)
     Memory: 434.0M
        CPU: 1min 57.932s
     CGroup: /system.slice/mysql.service
             └─1083 /usr/sbin/mysqld</code></pre>
<p>By default, MySQL is not hardened. You can secure MySQL using the <code class=" prettyprinted"><span class="pln">mysql_secure_installation</span></code> script.</p>
<pre><code># mysql_secure_installation</code></pre>
<p>Configure it like this:</p>
<pre><code>- Set root password? [Y/n] <strong>Y</strong>
- Remove anonymous users? [Y/n] <strong>Y</strong>
- Disallow root login remotely? [Y/n] <strong>Y</strong>
- Remove test database and access to it? [Y/n] <strong>Y</strong>
- Reload privilege tables now? [Y/n] <strong>Y</strong></code></pre>
<p>Now run the command below to log in to the MySQL shell.</p>
<pre><code># mysql -u root -p</code></pre>
<p>Once you are logged in to your database server you need to create a database for the Roundcube installation:</p>
<pre><code>mysql&gt; CREATE DATABASE roundcubemail;
mysql&gt; CREATE USER 'roundcube'@'localhost' IDENTIFIED BY 'Strong-Password';
mysql&gt; GRANT ALL PRIVILEGES ON roundcubemail . * TO 'roundcube'@'localhost';
mysql&gt; FLUSH PRIVILEGES;
mysql&gt; exit;</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Download Roundcube</span></h2>
<p>Roundcube is availble on the default Ubuntu repos. However, the repositories do not usually provide an up-to-date version.</p>
<p>The latest stable release version for Roundcube can be installed by downloading the source code from the Roundcube <a href="https://roundcube.net/download/">downloads page</a>.</p>
<p>Using the address with wget, download the <strong>Roundcube tarball</strong> on the server:</p>
<pre><code># wget https://github.com/roundcube/roundcubemail/releases/download/1.6.0/roundcubemail-1.6.0-complete.tar.gz</code></pre>
<p>Create a <code>roundcube</code> directory:</p>
<pre><code># mkdir /var/www/roundcube/</code></pre>
<p>After that, you will need to decompress the Roundcube archive:</p>
<pre><code># tar -xvzf roundcubemail-1.6.0-complete.tar.gz -C /var/www/roundcube/ --strip-components 1</code></pre>
<p class="has-line-data">Make Nginx the owner of the <code>roundcube</code> folder and grant it sufficient permissions.</p>
<pre><code># chown -R www-data:www-data /var/www/roundcube
# chmod 755 -R /var/www/roundcube</code></pre>
<p class="has-line-data">Now start the example database included in the downloaded file.</p>
<pre><code># mysql -u roundcube -p roundcube &lt; /var/www/roundcube/SQL/mysql.initial.sql</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Nginx for Roundcube</span></h2>
<p>Then, create an virtual host configuration file to host Roundcube:</p>
<pre><code># nano /etc/nginx/conf.d/roundcube.conf</code></pre>
<p>Nginx ignores Roundcube&#8217;s Apache <code>.htaccess</code> files, so we&#8217;re telling Nginx to ignore some sensitive directories:</p>
<pre><code>server {
        listen 80;

        server_name webmail.your-domain.com;
        root /var/www/roundcube;

        index index.php index.html index.htm;

        error_log /var/log/nginx/roundcube.error;
        access_log /var/log/nginx/roundcube.access;


        location ~ ^/(README.md|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
            deny all;
        }

        location ~ ^/(config|temp|logs)/ {
            deny all;
        }

        location ~ /\. {
            deny all;
        }

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php8.1-fpm.sock;
        }
}</code></pre>
<p>Remember to replace <strong><code>your-domain.com</code></strong> with the domain name of your server.</p>
<p>Save and exit the configuration file.</p>
<p>Check Nginx syntax:</p>
<pre><code># nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
</code></pre>
<p>To implement the changes, restart Nginx webserver:</p>
<pre><code># systemctl restart nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Roundcube Setup and Configurations</span></h2>
<p>Now open your web browser and go to <code>http://webmail.your-domain.com/installer</code> and you will see the following screen:</p>
<p><img fetchpriority="high" decoding="async" class="size-large wp-image-978 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail_installer-900x513.jpg" alt="Roundcube Webmail Installer" width="900" height="513" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail_installer-900x513.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail_installer-300x171.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail_installer-768x438.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail_installer-1536x875.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail_installer-1222x696.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail_installer-897x511.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail_installer-684x390.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail_installer.jpg 1895w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>If all required modules and extensions are installed, press <strong>NEXT </strong>and go<strong> </strong>to the next step.</p>
<p>On the next page, navigate to Database Setup settings and enter the database name, user and password that you created above.</p>
<p><img decoding="async" class="size-large wp-image-980 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/12/roundube_database_setup-900x415.jpg" alt="Roundcube Database Setup" width="900" height="415" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/12/roundube_database_setup-900x415.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundube_database_setup-300x138.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundube_database_setup-768x354.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundube_database_setup-1536x708.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundube_database_setup-1222x563.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundube_database_setup-897x413.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundube_database_setup-684x315.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundube_database_setup.jpg 1894w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Under SMTP settings, check the box ‘<strong>Use the current IMAP username and password for SMTP authentication</strong>’:</p>
<p><img decoding="async" class="aligncenter wp-image-981 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_smtp_settings-900x430.jpg" alt="SMTP Settings" width="900" height="430" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_smtp_settings-900x430.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_smtp_settings-300x143.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_smtp_settings-768x367.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_smtp_settings-1536x733.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_smtp_settings-1222x583.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_smtp_settings-897x428.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_smtp_settings-684x326.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_smtp_settings.jpg 1890w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>After complete configuration , Press <strong>CREATE CONFIG</strong> to finish the installation. You will then be notified that the configuration has been successfully created.</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-983 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail-900x429.jpg" alt="Webmail Installer" width="900" height="429" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail-900x429.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail-300x143.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail-768x366.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail-1536x732.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail-1222x582.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail-897x427.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail-684x326.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/12/roundcube_webmail.jpg 1893w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>&nbsp;</p>
<p>Once everything is setup and working, open your terminal and remove the installation directory with the following command:</p>
<pre><code># rm -rf /var/www/roundcube/install/</code></pre>
<p>And now go to <code>http://webmail.your-domain.com</code> so you can log in.</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-984 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/12/Roundcube_webmail_login-900x426.jpg" alt="Roundcube webmail login" width="900" height="426" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/12/Roundcube_webmail_login-900x426.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2022/12/Roundcube_webmail_login-300x142.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/12/Roundcube_webmail_login-768x363.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/12/Roundcube_webmail_login-1536x727.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/12/Roundcube_webmail_login-1222x578.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/12/Roundcube_webmail_login-897x424.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/12/Roundcube_webmail_login-684x324.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/12/Roundcube_webmail_login.jpg 1917w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>Congratulations! You have successfully installed Roundcube webmail client. Thanks for using this tutorial for installing the Roundcube on Ubuntu 22.04 OS.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-roundcube-on-ubuntu-22-04/">How to Install Roundcube on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-roundcube-on-ubuntu-22-04/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">702</post-id>	</item>
	</channel>
</rss>
