Webmail for Plesk 8.6 working with PHP 5.3.x

Requests for RPMS, or new coding projects related to server administration, Plesk, security, or anything else you can think of.
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

Webmail for Plesk 8.6 working with PHP 5.3.x

Unread post 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...
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post by scott »

Just let me know what that is, and I'll look into packaging it
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

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

Unread post 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
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

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

Unread post by biggles »

Roundcube looks really good. A Roundcube package would be great!
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

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

Unread post 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
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

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

Unread post by biggles »

Thanks a lot for the detailed instructions! Will be trying it out tonight!

Scott: Maybe something to configure in a rpm?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post by scott »

sure, I'll add that to the list
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

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

Unread post by biggles »

Thanks!!!
biggles
Forum Regular
Forum Regular
Posts: 806
Joined: Tue Jul 15, 2008 2:38 pm
Location: Sweden
Contact:

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

Unread post by biggles »

Kalimari: Thanks a lot! Works like a charm!
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

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

Unread post by Kalimari »

biggles wrote:Kalimari: Thanks a lot! Works like a charm!
No problem, glad it worked out :-)
crnunez
Forum User
Forum User
Posts: 37
Joined: Sun May 20, 2007 10:44 pm

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

Unread post by crnunez »

Hi Scott,
Roundcube is a good Webmail, I will happy with this on ART...

Regards.
netagence
Forum User
Forum User
Posts: 5
Joined: Tue May 10, 2011 6:32 am
Location: Paris

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

Unread post 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...
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

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

Unread post 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
Post Reply