Author Topic: Virtual Hosts  (Read 4698 times)

Offline straygrey

  • Newbie
  • *
  • Posts: 1
    • http://www.stockton.co.za
Virtual Hosts
« on: February 06, 2011, 06:46:21 AM »
I have roundcube working fine for me at my Debian server.
Now what I have done is setup two virtual domains on my server namely cherivebeagles.co.za and riversidemowers.co.za and they each have one user who are registered on my debian box.
Their email works fine as long as they connect via webmail.stockton.co.za but I want them to be able to logon via webmail.cherivebeagles.co.za and webmail.riversidemowers.co.za and that does not currently work.
How do I achieve this?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development

Offline Trizzunkz

  • Jr. Member
  • **
  • Posts: 17
Virtual Hosts
« Reply #2 on: May 09, 2011, 12:36:26 AM »
I have a number of virtual hosts on my server. I've set up each one to access my single roundcube installation via an Apache directory alias.
The default host (which is accessible only from the internal LAN) works perfectly.
I'm having issues with a number of plugins not functioning correctly (or not at all) when accessing roundcube from any other host.
Does anyone else have a similar set up and can offer any suggestions?

Offline Trizzunkz

  • Jr. Member
  • **
  • Posts: 17
Virtual Hosts
« Reply #3 on: May 09, 2011, 12:37:20 AM »
--Redacted--
« Last Edit: May 09, 2011, 12:38:48 AM by Trizzunkz »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Virtual Hosts
« Reply #4 on: May 09, 2011, 12:48:39 AM »
What's in the error log?

Offline Trizzunkz

  • Jr. Member
  • **
  • Posts: 17
Virtual Hosts
« Reply #5 on: May 09, 2011, 02:16:40 AM »
I don't know why I never thought to look there, but I can see lots of lines similar this:
Code: [Select]
PHP Error: Deprecated hook name. upload_attachment -> attachment_upload in /var/www/roundcube/program/include/rcube_plugin_api.php on line 207 (GET /webmail/?_task=mail)

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Virtual Hosts
« Reply #6 on: May 09, 2011, 10:49:04 AM »
That means you running old version of the plugins, I'd recommend updating them.

Offline Trizzunkz

  • Jr. Member
  • **
  • Posts: 17
Virtual Hosts
« Reply #7 on: May 09, 2011, 07:30:39 PM »
That's interesting. Most of the plugins I use come from rosali's bundle which I thought was updated for 0.5.2

Just as a test, I've commented out the plugin section of the main.inc.php file so no custom plugins are loaded and I'm still getting the following errors:
upload_attachment -> attachment_upload
save_attachment -> attachment_save
remove_attachment -> attachment_delete
display_attachment -> attachment_display
get_attachment -> attachment_get
cleanup_attachments -> attachments_cleanup
kill_session -> session_destroy

But none of this explains why they work when accessed on the local LAN, but don't when accessed externally.
« Last Edit: May 09, 2011, 07:46:47 PM by Trizzunkz »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Virtual Hosts
« Reply #8 on: May 10, 2011, 03:03:57 AM »
I know the latest plugin bundle does work with 0.5.2 and doesn't return any errors so your not running the lasted code. It may not be your problem but its a good place to start, why hunt down a problem that may have already been solved?