HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   How to setup RoundCube to work with ISPConfig 3? (http://www.howtoforge.com/forums/showthread.php?t=28264)

quentusrex 30th October 2008 01:24

How to setup RoundCube to work with ISPConfig 3?
 
I'd like to either know where squirrelmail is hiding, or how to setup RoundCube. I'm searching for the info myself, but if someone knows and can point me in the right direction I'd appreciate it.

I have until Nov. 1st, to have a semi production ready server with ISPConfig3. So... I'll donate tons of time if I can get a little help with the directions. :)

quentusrex 30th October 2008 01:29

I will try to get roundcube up and running with:

http://cad.cx/blog/2007/08/11/howto-...ubuntu-feisty/


I will post all of my steps and solutions.

In ubuntu 8.04.1:

apt-get update
apt-get upgrade
apt-get install roundcube-webmail

There are the following errors that probably need to get fix somehow.
Restarting apache2...
* Restarting web server apache2 [Wed Oct 29 17:31:30 2008] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Wed Oct 29 17:31:40 2008] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[ OK ]




cd /usr/share/roundcube-webmail
cp ./config/db.inc.php.dist ./db.inc.php
cp ./config/main.inc.php.dist ./main.inc.php

Open up phpmyadmin, Go to permissions, Add a new user, create the database as well, grant all permissions.

Edit db.inc.php and change the database connection settings

quentusrex 30th October 2008 01:31

Does anyone know of a good way to setup RoundCube so that the clients can go to webmail.theirdomain.com to access it? I'm asking what would be the proper ISPConfig 3 way to enable this.

quentusrex 30th October 2008 07:31

I got it to work. It needs to be cleaned up a bit, but it works just fine now. Here are the steps:

1. mkdir /usr/share/roundcube
2. cd /usr/share/roundcube
3. wget http://voxel.dl.sourceforge.net/sour....2-beta.tar.gz
4. tar zxvf roundcubemail-0.2-beta.tar.gz
5. cd roundcubemail-0.2-beta
6. chmod 777 logs temp
7. paste the following into /etc/apache2/conf.d/webmail.conf
###########################################
#This is basically a modified version of /etc/apache2/conf.d/phpmyadmin.conf
# RoundCube default Apache configuration

Alias /webmail /usr/share/roundcube/roundcubemail-0.2-beta

<Directory /usr/share/roundcube/roundcubemail-0.2-beta>
Options Indexes FollowSymLinks
DirectoryIndex index.php

# Authorize for setup
<IfModule mod_php4.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
<IfModule mod_php5.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
</Directory>
#########################################
8. /etc/init.d/apache2 restart
9. open your browser to: http://yourdomain.com/phpmyadmin
10. Login using username 'root' and your mysql root password.
11. Go to Privledges, and add a user called roundcube(and at the bottom tell phpmyadmin to add a database with the permissions, and grant all the permissions)
12. open your browser to: http://yourdomain.com/webmail/installer
13. I had to modify one of the lines in php.ini(set true to false)
14. use the installer to setup roundcube
15. DON'T FORGET TO DELETE THE INSTALLER DIRECTORY ONCE THE INSTALL IS FINISHED.

till 30th October 2008 11:19

Quote:

There are the following errors that probably need to get fix somehow.
Restarting apache2...
* Restarting web server apache2 [Wed Oct 29 17:31:30 2008] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Wed Oct 29 17:31:40 2008] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[ OK ]
This is caused by the default vhost from debian. Either ignore it or remove the debian default vhost.

quentusrex 30th October 2008 11:30

That seems to have removed the error, but I think I'm missing a step. I've moved the /etc/apache2/sites-enabled/000-default to /tmp. Now I get this error:

* Restarting web server apache2
[Thu Oct 30 03:28:20 2008] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu Oct 30 03:28:30 2008] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[ OK ]


And then I find a new file generated by apache called 'default' that is blank. So I think there is one last minor configuration to fix to get rid of the errors.

till 30th October 2008 11:39

There must be more then one vhost with _default_ in the apache configuration. you can try to search for ith e.g. with the grep command.

quentusrex 30th October 2008 11:53

I found the fix for this problem.

You need to add the line "NameVirtualHost *:80" into /etc/apache2/httpd.conf. This seems to be very important because if it's not there then the first vhost will be treated weird. Here is the link with the fix:

http://www.antbrown.com/nerd-musings...p-on-port-443/

And here are some links describing the problem of no matter which vhost they try to visit, they only can see the first vhost:

http://www.heavymind.net/2007/07/25/...tmare-on-suse/
http://forums.devshed.com/apache-dev...80t-37540.html



Now that it is documented.

d0nut 8th November 2008 14:26

and as part of "use installer to complete installaition": don't forget to remove the install direcoty ;)

many thanks...

crypted 15th April 2010 19:37

Should a webmail.conf exist already in the conf.d/ folder? I do not have one.

However, I am using Debian 5.0 rather than Ubuntu...


All times are GMT +2. The time now is 17:11.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.