icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old February 1st, 2008, 1:08 AM   #10 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
While you can add the fix to get it to work with webmail in cPanel 11 from the Sourceforge site, I've decided to go ahead and post the correction here (starts at line 218):
PHP Code:
while (true) {
  
$data fgets($server10240); // FIXME: Can we optimize here with another buffer-size?
  
if (strlen(trim($data))==0) break;

  
// Fix hostname in redirects, cookies...
  
$data preg_replace('_([^.]*)/webmail_''$1/webmail_'$data);  // line added to fix webmail in cPanel 11
  
$data str_replace(
          array(
'localhost:2095''localhost:2082''localhost:2086'),
          array(
$webmailhost,      $cpanelhost,     $whmhost),
          
$data);
  if (
substr($data011) == 'Set-Cookie:') {
    
$data str_replace(
            
'; domain=localhost'
            
'; domain='.$_SERVER['HTTP_HOST'], 
            
$data);
  }

  
header($datafalse);

Now I can access both my cpanel and webmail from work.
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 1st, 2008, 12:28 PM   #11 (permalink)
Surpass Fan
Comfy Contributor
 
psfrog's Avatar
 
Joined in Jun 2004
Lives in Sweden
Hosted on Muy and Dedicated
220 posts
Gave thanks: 8
Thanked 22 times
And don't forgot about the Wiki:
http://wiki.surpasshosting.com/index...ll_Cpanelproxy
__________________
:: Have a great day! /Erik at http://www.psychofrog.se and http://www.manufrog.com ::
Server: Muy and Dedicated
psfrog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 1st, 2008, 2:05 PM   #12 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
Guess I should check the Wiki more often, heh...
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 8th, 2008, 1:56 AM   #13 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jul 2007
Lives in Montreal
Hosted on SH96 & SH129
8 posts
Gave thanks: 0
Thanked 0 times
Quote:
Originally Posted by MarkRH View Post
While you can add the fix to get it to work with webmail in cPanel 11 from the Sourceforge site, I've decided to go ahead and post the correction here (starts at line 218):
PHP Code:
while (true) {
  
$data fgets($server10240); // FIXME: Can we optimize here with another buffer-size?
  
if (strlen(trim($data))==0) break;

  
// Fix hostname in redirects, cookies...
  
$data preg_replace('_([^.]*)/webmail_''$1/webmail_'$data);  // line added to fix webmail in cPanel 11
  
$data str_replace(
          array(
'localhost:2095''localhost:2082''localhost:2086'),
          array(
$webmailhost,      $cpanelhost,     $whmhost),
          
$data);
  if (
substr($data011) == 'Set-Cookie:') {
    
$data str_replace(
            
'; domain=localhost'
            
'; domain='.$_SERVER['HTTP_HOST'], 
            
$data);
  }

  
header($datafalse);

Now I can access both my cpanel and webmail from work.
Hi is there anything new, not working because for me cpanel is working but not webmail. at first i tought i did wrong the subdomain but I re done it and it is not working.

cPanel 11 is not working but
Error get me this

Error: Hostname not recognized

Server is misconfigured or you have entered a wrong address. You can try these in stead:
Webmail: http://webmail.webmail.emmanuelthivierge.com/ cPanel: http://cpanel.webmail.emmanuelthivierge.com/ WHM: http://whm.webmail.emmanuelthivierge.com/

Any of you can help me?

Thanks

Mani
__________________
SH96 (72.29.87.117)
monami is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 23rd, 2008, 12:13 PM   #14 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jul 2007
Lives in Montreal
Hosted on SH96 & SH129
8 posts
Gave thanks: 0
Thanked 0 times
I thought I'd let you know, it work now for some reason... But sometimes it act weirdly. I can now check my mail on horde or round cube but can only send from round cube. If I try to send from horde the proxy server block it.
__________________
SH96 (72.29.87.117)
monami is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 23rd, 2008, 12:15 PM   #15 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jul 2007
Lives in Montreal
Hosted on SH96 & SH129
8 posts
Gave thanks: 0
Thanked 0 times
Is it me or something change in cpanel, now sometime I see a page that is detecting the proxy setting and there is 2 choices underfirewall or not... even on my other server that i didn't install the cpanelproxy...

Any news?
__________________
SH96 (72.29.87.117)
monami is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 26th, 2008, 8:07 PM   #16 (permalink)
Sur, pass the salt
Excelling Contributor
 
benjamin's Avatar
 
Joined in Sep 2005
Lives in kayla's dvd-rw tray
Hosted on Pass44
811 posts
Gave thanks: 46
Thanked 54 times
Quote:
Originally Posted by monami View Post
Is it me or something change in cpanel, now sometime I see a page that is detecting the proxy setting and there is 2 choices underfirewall or not... even on my other server that i didn't install the cpanelproxy...
You are correct! There is a Surmunity thread on this, in fact. cPanel did implement this and it is now working properly--a much better solution than cpanelproxy, IMO.
__________________
Benjamin
Server: Pass44
benjamin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On