Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 7th January 2013, 08:04
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Then you might have done the same configuration 3 times. Please check that you added just one vhost for roundcube, it does not matter if you do this on the shell or with webmin. Then check the apache error.log for errors.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links
  #12  
Old 7th January 2013, 17:14
kendel kendel is offline
HowtoForge Supporter
 
Join Date: Aug 2010
Posts: 132
Thanks: 4
Thanked 1 Time in 1 Post
Default

Here is a list of things that I did, maybe you can tell me where I went wrong.
First, I installed roundcube on the email server.
(using roundcube.0.8.4 on ubuntu 12.04)
Code:
oundCube

apt-get -y install apache2

Reconfigure Roundcube

aptitude install roundcube roundcube-mysql

dpkg-reconfigure roundcube-core



Create Symlink for RoundCube

sudo ln -s /usr/share/roundcube /var/www/roundcube

restart apache

So far this part works.
I then followed the link and substituted everything for roundcube.
Code:
nano /etc/apache2/conf.d/roundcube.conf
(note: there was already a file in that location called roundcube and contained some information I left untouched)

<Directory /usr/share/roundcube>
  Options FollowSymLinks
  <IfModule mod_php5.c>
    AddType application/x-httpd-php .php
    php_flag magic_quotes_gpc Off
    php_flag track_vars On
    php_admin_flag allow_url_fopen Off
    php_value include_path .
    php_admin_value upload_tmp_dir /var/lib/roundcube/tmp
    php_admin_value open_basedir /usr/share/roundcube:/etc/roundcube:/var/lib/roundcube:/etc/hostname:/etc/mailname:/var/spool/roundcube
    php_flag register_globals off
  </IfModule>
  <IfModule mod_dir.c>
    DirectoryIndex index.php
  </IfModule>
  # access to configtest is limited by default to prevent information leak
  <Files configtest.php>
    order deny,allow
    deny from all
    allow from 127.0.0.1
  </Files>
</Directory>


Create the directory /var/lib/roundcube/tmp...

mkdir /var/lib/roundcube/tmp

... and make it owned by the user www-data:

chown www-data /var/lib/roundcube/tmp  (this command does not seem to work)

Reload Apache again:

/etc/init.d/apache2 reload
I then used Webmin on the email server to create the virtual host:
Code:
DocumentRoot /var/www/roundcube
ServerName mail.lampxserver.com
ServerAdmin webmaster@localhost
ServerAlias webmail.*
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
<Directory /var/www/roundcube>
allow from all
Options +Indexes
</Directory>
Finally I created the DNS records by attaching an "A" record Host: subdomain webmail.example.com. IP: 192.168.10.180 (internal ip).

Last edited by kendel; 7th January 2013 at 17:21.
Reply With Quote
  #13  
Old 9th January 2013, 05:34
kendel kendel is offline
HowtoForge Supporter
 
Join Date: Aug 2010
Posts: 132
Thanks: 4
Thanked 1 Time in 1 Post
Default

How do you properly write this to not get an error, it seems the steps i am looking for is a proxypass
ServerName webmail.example.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://192.168.10.180:81/
ProxyPassReverse / http://192.168.10.180:81/
<Location />
Order allow,deny
Allow from all
</Location>

I created a Virtual Server using webmin and the settings above, but it always goes back to the main server www.example.com
mod_proxy is installed running ubuntu 12.04....

How can I fix this?

The idea is my webserver gets port 80, but for requests of a subdomain should be sent to the mailserver on port 81. There are 2 seperate servers with apache instances (different internal IPs)

Last edited by kendel; 9th January 2013 at 07:16.
Reply With Quote
  #14  
Old 10th January 2013, 00:58
kendel kendel is offline
HowtoForge Supporter
 
Join Date: Aug 2010
Posts: 132
Thanks: 4
Thanked 1 Time in 1 Post
Default

Still looking for help on this. I am now up to checking if vhost is enabled but ispconfig overwrites any changes I make to the domain.conf file.
I followed this link: http://www.howtoforge.com/apache_rev...roxy_ispconfig but the section in vi /etc/apache2/apache2.conf that it wants to be added does not exist.

Last edited by kendel; 10th January 2013 at 01:10.
Reply With Quote
  #15  
Old 10th January 2013, 08:08
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Never edit a domain config file manually and using webmin to edit apache files can conflict with ispconfig. If you want to add code to a vhost config file, add it in the apache or nginx directives field of the webite in ispconfig.

The tutorial you followed is about a completely different topic and not suitable to display roundcube. Beside that, its from 2007and will mostnlikely not work with ispconfig 3.0.4 ans later anyway. I highly recommend to undo all changes you made according to this guide or you eill likely break your setup.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #16  
Old 10th January 2013, 17:02
kendel kendel is offline
HowtoForge Supporter
 
Join Date: Aug 2010
Posts: 132
Thanks: 4
Thanked 1 Time in 1 Post
 
Default

Solved...stressed!!!!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql and mail problem viritech General 3 16th October 2012 12:54
mail recipient linux_red Installation/Configuration 6 9th March 2012 14:24
Sendig mail Error fisherofer Installation/Configuration 12 30th November 2011 07:56
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37


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


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