Page 1 of 1

Webmail for Plesk 8.6 working with PHP 5.3.x

Posted: Wed Apr 06, 2011 9:02 am
by biggles
Any webmail working with Plesk 8.6 and PHP 5.3.x would be great. Preferably something that doesn't require an enormous amount of reconfiguration...

Re: Webmail for Plesk 8.6 working with PHP 5.3.x

Posted: Wed Apr 06, 2011 9:32 am
by scott
Just let me know what that is, and I'll look into packaging it

Re: Webmail for Plesk 8.6 working with PHP 5.3.x

Posted: Wed Apr 06, 2011 9:37 am
by biggles
Well I don't really care which webmail it is (updated Horde, atmail, Rouncube, Squirrelmail are the ones I've heard about) just as long as it is working with php 5.3 which the default horde for 8.6 doesn't seem to do... Any suggestions?

Problems
http://atomicorp.com/forums/viewtopic.php?f=12&t=4909

Re: Webmail for Plesk 8.6 working with PHP 5.3.x

Posted: Wed Apr 06, 2011 9:40 am
by biggles
Roundcube looks really good. A Roundcube package would be great!

Re: Webmail for Plesk 8.6 working with PHP 5.3.x

Posted: Wed Apr 06, 2011 10:41 am
by Kalimari
Have been using roundcube for ages, its great, installed like this:

Code: Select all

cd /var/www; ls -lah
download roundcubemail-0.5.1.tar.gz and unpack (get latest v/URL from here: http://roundcube.net/download)
mv roundcubemail-0.5.1 roundcube
chown root:root roundcube/*
cd /var/www/roundcube; ls -lah
chmod 0777 temp
rmdir logs (we'll be using syslog)
cp skins/default/images/favicon.ico favicon.ico
we'll replace .htaccess with vhost.conf

Code: Select all

rm -f .htaccess config/.htaccess temp/.htaccess
vi /etc/httpd/conf.d/zz100-roundcube.conf
# redirect port 80 -> 443 (if you require https)
<VirtualHost \
	IP.RANGE.START:80 \
	IP.RANGE.END:80 \
	>
	ServerName webmail
	ServerAlias webmail.*
	UseCanonicalName Off
	<IfModule mod_rewrite.c>
		RewriteEngine On
		RewriteCond %{REQUEST_METHOD} ^TRAC(E|K)
		RewriteRule .* - [F,L]
		RewriteCond %{HTTPS} !=on
		RewriteRule ^/.* https://%{HTTP_HOST}/$1 [NC,R,L]
	</IfModule>
</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost \
	IP.RANGE.START:443 \
	IP.RANGE.END:443 \
	>
	DocumentRoot /var/www/roundcube/
	ServerName webmail
	ServerAlias webmail.*
	UseCanonicalName Off
	<IfModule mod_rewrite.c>
		RewriteEngine On
		RewriteCond %{REQUEST_METHOD} ^TRAC(E|K)
		RewriteRule .* - [F,L]
	</IfModule>
	SSLEngine on
	SSLVerifyClient none
	SSLCertificateFile /etc/httpd/conf/httpd.pem
	<Directory /var/www/roundcube>
		<IfModule sapi_apache2.c>
			php_admin_flag engine on
			php_admin_flag magic_quotes_gpc off
			php_admin_flag safe_mode off
			php_admin_value open_basedir "/var/www/roundcube:/tmp"
		</IfModule>
		<IfModule mod_php5.c>
			php_admin_flag engine on
			php_admin_flag magic_quotes_gpc off
			php_admin_flag safe_mode off
			php_admin_value open_basedir "/var/www/roundcube:/tmp"
		</IfModule>
		SSLRequireSSL
		Order allow,deny
		Allow from all
	</Directory>
	<Directory /var/www/roundcube/config>
		Order allow,deny
		Deny from all
	</Directory>
	<Directory /var/www/roundcube/temp>
		Order allow,deny
		Deny from all
	</Directory>
</VirtualHost>
</IfModule>
Pull changes into Apache:

Code: Select all

apachectl -t && apachectl graceful 
phpMyAdmin:
CREATE DATABASE roundcubemail /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;
GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost IDENTIFIED BY 'ENTER-VERY-SECURE-PASSWORD';
The SAME password will need to be used in the following step - goto install URL and follow instructions:
https://webmail.domain.com/installer/

remove "installer" dir afterwards...

There are some INSTALL/UPGRADE docs with the installer, read them to be certain you know what you are doing.

Just add a webmail.domain.com entry in DNS for each domain that requires it.
Have all other Plesk webmail options switched off/un-installed, you may need to use a different subdomain eg roundcube?

Good luck

Re: Webmail for Plesk 8.6 working with PHP 5.3.x

Posted: Wed Apr 06, 2011 10:50 am
by biggles
Thanks a lot for the detailed instructions! Will be trying it out tonight!

Scott: Maybe something to configure in a rpm?

Re: Webmail for Plesk 8.6 working with PHP 5.3.x

Posted: Wed Apr 06, 2011 11:19 am
by scott
sure, I'll add that to the list

Re: Webmail for Plesk 8.6 working with PHP 5.3.x

Posted: Wed Apr 06, 2011 11:51 am
by biggles
Thanks!!!

Re: Webmail for Plesk 8.6 working with PHP 5.3.x

Posted: Wed Apr 06, 2011 4:49 pm
by biggles
Kalimari: Thanks a lot! Works like a charm!

Re: Webmail for Plesk 8.6 working with PHP 5.3.x

Posted: Wed Apr 06, 2011 5:38 pm
by Kalimari
biggles wrote:Kalimari: Thanks a lot! Works like a charm!
No problem, glad it worked out :-)

Re: Webmail for Plesk 8.6 working with PHP 5.3.x

Posted: Sat Apr 23, 2011 11:04 am
by crnunez
Hi Scott,
Roundcube is a good Webmail, I will happy with this on ART...

Regards.

Re: Webmail for Plesk 8.6 working with PHP 5.3.x

Posted: Tue May 10, 2011 6:35 am
by netagence
Hi,
Great tutorial, can you confirm if that's for one domain or if we can install server-wide for all domains on the Plesk machine ?
Once again scary behaviors in Plesk that carries obsolete versions - we had to upgrade to PHP 5.3 but are now dealing with various side-effects...

Re: Webmail for Plesk 8.6 working with PHP 5.3.x

Posted: Tue May 10, 2011 8:37 am
by Kalimari
netagence wrote:Hi,
Great tutorial, can you confirm if that's for one domain or if we can install server-wide for all domains on the Plesk machine ?
Once again scary behaviors in Plesk that carries obsolete versions - we had to upgrade to PHP 5.3 but are now dealing with various side-effects...
webmail is assigned by IP in the virtualhost directive:
<VirtualHost \
IP.RANGE.START:443 \
IP.RANGE.END:443 \
>

Then DNS needs to be added per domain: webmail.domain.tld > IP