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

Go Back   LiteSpeed Support Forums > External Applications > PHP > Very odd PHP error, any file name that starts with admin (admin.php/admintest.php)

Reply
 
Thread Tools Display Modes
  #1  
Old 11-04-2006, 02:06 AM
chernann chernann is offline
Member
 
Join Date: Nov 2006
Posts: 13
Default Very odd PHP error, any file name that starts with admin (admin.php/admintest.php)

I'm testing LSWS now with LSAPI built using PHP 4.4.4. Under Apache everything is fine and under most conditions Litespeed is ok also.

However, one very odd problem that cropped up is session variables don't seem to work SPECIFICALLY for admin.php. I can have the exact same code in a file called newadmin.php and it works just fine:

e.g

PHP Code:
session_start();
echo 
$_SESSION['adminlevel']; 
This should return the current adminlevel variable stored in the session BUT this exact same code works in newadmin.php but fails in admin.php and admintest.php.

This also only fails in the root directory of the virtualhost. Subdirectories work fine. With version 4.4.4 as an Apache module running on Apache 1.337, the exact same configuration is fine. Could this be a problem with LSAPI?
Reply With Quote
  #2  
Old 11-04-2006, 07:13 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Looks like a cookie path problem.
Reply With Quote
  #3  
Old 11-04-2006, 08:36 AM
chernann chernann is offline
Member
 
Join Date: Nov 2006
Posts: 13
Quote:
Originally Posted by mistwang View Post
Looks like a cookie path problem.
The cookie path is set to /. The exact same settings (same php.ini being used) works ok for Apache and PHP4. Changing the file name from admin.php to newadmin.php and the script starts working in a directory where there are no .htaccess rewrite rules.
Reply With Quote
  #4  
Old 11-04-2006, 11:33 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Please try disabling .htaccess see if it is the cause. You can also dump phpinfo in your script to help identify the problem.
Reply With Quote
  #5  
Old 07-07-2007, 06:38 PM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
I am having a similar problem on some sites. You go to login admin areas then it opens up the main site index minus the images and such. Like this screenshot here

http://nix101.com/admin.png
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 01:19 AM.



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