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?
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.
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