Problem with PHP: "Cannot find save handler files"

amaltemara

Member
Dec 7, 2007
11
0
51
I had this problem with my php.ini file, thought I'd share.

I was getting this error when starting a session with PHP: "Cannot find save handler files in [PATH TO SCRIPT]", and PHP sessions was not working.

The problem turned out to be this line in my cpanel generated php.ini:

session.save_handler = "files "

As soon as I removed the extra spaces, the error went away, and I was able to use PHP sessions again.

I am using: WHM 11.11.0 cPanel 11.16.0-R18450 with Litespeed Web Server Enterprise v3.3.3 lsphp module.

Not sure why the extra spaces crept in. I'll have to ensure there are not spaces at the end of the fields when I check my config with easyapache.

Cheers,

-Anthony
 

lasheimok

Registered
Nov 28, 2007
1
0
51
same issue, but worse

Hi all,

I thought I'd share, too.

we just had the same issue on our system, running WHM 11.11.0 cPanel 11.16.0-R18546

The fix described above only changed the error messages.
Reason was that there was more than one value with too many spaces.

So the solution was to check all values in the 'Session Handler' section and remove all extra spaces.


Cheers,
Lasheimok
 

kamau

Member
Jan 20, 2003
10
0
151
I think I know how these spaces occurred and Cpanel needs to look into the following;

Normally we edit php.ini from command line, but yesterday decided to do it from WHM --> PHP Configuration Editor

After modifying just one parameter & saved, all hell broke loose. Our clients using Joomla/Mambo & others could not access their back-end on their CMS.

After many hours trying so many things, is when I landed on this post which saved me from further agony.

Thanks again for this post!