<?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>Roundcubemail &#8211; Blog of Kliment Andreev &#8211; A place so I won&#039;t forget things</title>
	<atom:link href="https://blog.andreev.it/tag/roundcubemail/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.andreev.it</link>
	<description></description>
	<lastBuildDate>Sat, 24 Oct 2020 13:10:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>CentOS: Install RoundCube Web Mail Client on CentOS 7</title>
		<link>https://blog.andreev.it/2015/06/centos-7-install-roundcube-web-mail-client/</link>
					<comments>https://blog.andreev.it/2015/06/centos-7-install-roundcube-web-mail-client/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Wed, 03 Jun 2015 23:08:09 +0000</pubDate>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Roundcubemail]]></category>
		<category><![CDATA[web-mail]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=2004</guid>

					<description><![CDATA[In one of my previous posts, I&#8217;ve described how to install Roundcube web mail&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>In one of my <a href="https://blog.andreev.it/?p=1017" target="_blank" rel="noopener noreferrer">previous</a> posts, I&#8217;ve described how to install <a href="https://roundcube.net/" target="_blank" rel="noopener noreferrer">Roundcube </a>web mail client on a CentOS 6. This time, we&#8217;ll do the same for CentOS 7. </p>
<p>There are some prerequisites. First, you need a working LAMP stack (Linux, Apache, MySQL and PHP). Read <a href="https://blog.andreev.it/?p=1309" target="_blank" rel="noopener noreferrer">here</a> how to install this. Then, you need a working mail server. You can also read <a href="https://blog.andreev.it/?p=1975" target="_blank" rel="noopener noreferrer">here</a> how to do this. Once you have that completed and tested, we can install Roundcube from the source. In my case, I&#8217;ll use roundcube as a virtual Apache host at mail.domain.com. Go to Roundcube&#8217;s web site and download the latest tarball and put it under /var/www or just execute this:</p>
<pre class="brush: bash; title: ; notranslate">
cd /var/www
wget http://iweb.dl.sourceforge.net/project/roundcubemail/roundcubemail/1.1.1/roundcubemail-1.1.1-complete.tar.gz
tar xzvf roundcubemail-1.1.1-complete.tar.gz
rm -f roundcubemail-1.1.1-complete.tar.gz
mv roundcubemail-1.1.1 mail.domain.com
chown -R apache:apache mail.domain.com
</pre>
<p>This is your <em>DocumentRoot</em> <strong>/var/www/mail.domain.com</strong>. You can rename or move the directory somewhere else if you want, but you have to change the virtual host config files as well.</p>
<p>First, change the date and time zone in PHP. Just edit <strong>/etc/php.ini</strong> and change the <strong>date.timezone</strong> variable. In my case it looks like this (don&#8217;t forget to remove the semi-colon in front).</p>
<pre class="brush: bash; title: ; notranslate">
date.timezone = America/New_York
</pre>
<p>Pick your time zone from <a href="http://php.net/manual/en/timezones.php" target="_blank" rel="noopener noreferrer">here</a>. </p>
<p>Then, install some PHP modules needed fro Roundcube.</p>
<pre class="brush: bash; title: ; notranslate">
yum install php-xml php-mbstring php-intl php-mcrypt php-ldap
apachectl restart
</pre>
<p>Finally, create the database.</p>
<pre class="brush: bash; title: ; notranslate">
mysql -u root -p
create database roundcube;
grant all privileges on roundcube.* to 'roundcube'@'localhost' identified by 'password';
flush privileges;
quit
</pre>
<p>This will create a database called <em>roundcube</em> and a MySQL user called <em>roundcube</em> with password&#8230;well <em>password</em>, so replace the values to suit your needs. Now, browse to the <em>DocumentRoot</em>, the directory where you installed Roundcube, by doing http://yourserver.com/roundcube/installer or http://roundcube.yourserver.com/installer. In my case, I&#8217;ve placed the files under /var/www/mail.domain.com, so I have to go to http://mail.domain.com/installer.</p>
<p>You should see something like this.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2015/06/P055-01.png"><img fetchpriority="high" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/06/P055-01.png" alt="" width="482" height="630" class="aligncenter size-full wp-image-7357" srcset="https://blog.andreev.it/wp-content/uploads/2015/06/P055-01.png 482w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-01-230x300.png 230w" sizes="(max-width: 482px) 100vw, 482px" /></a><br />
<a href="https://blog.andreev.it/wp-content/uploads/2015/06/P055-02.png"><img decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/06/P055-02.png" alt="" width="702" height="565" class="aligncenter size-full wp-image-7358" srcset="https://blog.andreev.it/wp-content/uploads/2015/06/P055-02.png 702w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-02-300x241.png 300w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-02-585x471.png 585w" sizes="(max-width: 702px) 100vw, 702px" /></a><a href="https://blog.andreev.it/wp-content/uploads/2015/06/P055-03.png"><img decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/06/P055-03.png" alt="" width="383" height="161" class="aligncenter size-full wp-image-7359" srcset="https://blog.andreev.it/wp-content/uploads/2015/06/P055-03.png 383w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-03-300x126.png 300w" sizes="(max-width: 383px) 100vw, 383px" /></a><br />
Click <em>Next</em> at the bottom to reach step 2.<br />
Look for the <em>Database setup</em> and enter the database name and the credentials that you&#8217;ve created above in MySQL. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/06/P055-04.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/06/P055-04.png" alt="" width="644" height="203" class="aligncenter size-full wp-image-7360" srcset="https://blog.andreev.it/wp-content/uploads/2015/06/P055-04.png 644w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-04-300x95.png 300w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-04-585x184.png 585w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-04-640x203.png 640w" sizes="(max-width: 644px) 100vw, 644px" /></a><br />
For IMAP settings, use ssl://localhost and port 993.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2015/06/P055-05.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/06/P055-05.png" alt="" width="661" height="327" class="aligncenter size-full wp-image-7361" srcset="https://blog.andreev.it/wp-content/uploads/2015/06/P055-05.png 661w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-05-300x148.png 300w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-05-585x289.png 585w" sizes="(max-width: 661px) 100vw, 661px" /></a></p>
<p>For SMTP settings type tls://localhost and port 587. Check “Use the current IMAP username…“.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/06/P055-06.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/06/P055-06.png" alt="" width="679" height="380" class="aligncenter size-full wp-image-7362" srcset="https://blog.andreev.it/wp-content/uploads/2015/06/P055-06.png 679w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-06-300x168.png 300w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-06-585x327.png 585w" sizes="(max-width: 679px) 100vw, 679px" /></a></p>
<p>Scroll all the way at the bottom and click <em>Create Config</em>. Roundcube will create the config file for you and hopefully it will tell you that everything is OK.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2015/06/P055-07.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/06/P055-07.png" alt="" width="789" height="169" class="aligncenter size-full wp-image-7363" srcset="https://blog.andreev.it/wp-content/uploads/2015/06/P055-07.png 789w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-07-300x64.png 300w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-07-768x165.png 768w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-07-585x125.png 585w" sizes="(max-width: 789px) 100vw, 789px" /></a></p>
<p>Click <em>Continue</em>. </p>
<p>You will notice that the database is not initialized, so click <em>Initialize database</em>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2015/06/P055-08.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/06/P055-08.png" alt="" width="380" height="133" class="aligncenter size-full wp-image-7364" srcset="https://blog.andreev.it/wp-content/uploads/2015/06/P055-08.png 380w, https://blog.andreev.it/wp-content/uploads/2015/06/P055-08-300x105.png 300w" sizes="(max-width: 380px) 100vw, 380px" /></a><br />
Look at the bottom where it says &#8220;After completing the installation and the final tests please remove the whole installer folder from the document root of the webserver or make sure that enable_installer option in config.inc.php is disabled.&#8221;</p>
<p>Do that:</p>
<pre class="brush: bash; title: ; notranslate">
cd /var/www/mail.domain.com
mv installer installer.something_here_not_easy_to_remember
</pre>
<p>Finally, point your browser to the main URL in my case http://mail.domain.com.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2015/06/centos-7-install-roundcube-web-mail-client/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
