The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with PHP: "Cannot find save handler files"

Discussion in 'General Discussion' started by amaltemara, Dec 19, 2007.

  1. amaltemara

    amaltemara Member

    Joined:
    Dec 7, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. lasheimok

    lasheimok Registered

    Joined:
    Nov 28, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  3. rmackay

    rmackay Well-Known Member

    Joined:
    Nov 26, 2002
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    I just ran into this as well. How did all those spaces get in there?
     
  4. kamau

    kamau Member

    Joined:
    Jan 20, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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!
     
Loading...

Share This Page