LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [solved] cPanel Passthru and PHPMyAdmin in Litespeed

Reply
 
Thread Tools Display Modes
  #1  
Old 03-01-2012, 06:24 PM
craigles craigles is offline
Member
 
Join Date: Jun 2011
Posts: 34
Question [solved] cPanel Passthru and PHPMyAdmin in Litespeed

Hi Everyone,

Was just wondering if anybody has come across the situation and knows how to fix it up.

Have a user logging into cPanel interface by going to domainname.com/cpanel which of cause get's rewritten by a rewrite rule to go to 127.0.0.1 on the required port.

Seems when this user tries to use PHPMyAdmin via this way - they get this error from PHPMyAdmin.

The $cfg['PmaAbsoluteUri'] directive MUST be set in your configuration file!

I'm assuming something isn't enabled in Litespeed or being passed through - however I have no clue what that is.

Has anybody else had this problem and overcome it?

Cheers,
Craig

Last edited by NiteWave; 03-01-2012 at 08:48 PM..
Reply With Quote
  #2  
Old 03-01-2012, 06:49 PM
craigles craigles is offline
Member
 
Join Date: Jun 2011
Posts: 34
OK, It seems to be related to the $_SERVER PHP superglobal.

Doing a print_r($_SERVER) going via the cpanel web server, and using the passthru presents a difference.

The HTTP_HOST entry is empty on the passthru and is populated on the cpanel web server method.

The SERVER_NAME var is also empty as opposed to the cpanel web server access method.
Reply With Quote
  #3  
Old 03-01-2012, 06:55 PM
craigles craigles is offline
Member
 
Join Date: Jun 2011
Posts: 34
And the problem has been located.
Apologies for creating an empty forum post, even if it did help me find out the issue.

We have varnish installed in front of the Litespeed web server, and it seems varnish is responsible for stripping away those 2 variable entries which phpMyAdmin requires to make it all work properly.

Cheers.
Reply With Quote
  #4  
Old 03-01-2012, 08:48 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
Thanks for sharing. with 2-CPU license lsws, you may not need varnish -- to use litespeed page cache instead.

Last edited by NiteWave; 03-01-2012 at 08:50 PM..
Reply With Quote
Reply

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


All times are GMT -7. The time now is 09:28 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.