Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

PHP ea-php73 website looking for ea-php70 session data

Comments

5 comments

  • cPanelLauren
    Hello, What is listed in the php.ini file for session.save_path
    ? Most likely you'd find this (depending on your configuration) in cPanel>>Software>>MultiPHP INI Editor You can create a php info page to get this information (importanly whether the value is set locally or globally for that version of PHP) as well as the .ini file files loaded into the configuration You may also want to check the following: /home/$user/public_html/.htaccess /home/user/public_html/*.ini
    Additionally, if you're using PHP-FPM you may want to check if this has been modified (by default it's not set so it uses the default values) Configuration Values of PHP-FPM | cPanel & WHM Documentation
    0
  • scottrichardson
    OK, I ran phpinfo() and I think I see the issue. A difference between local and master values for session.save_path: Local: /var/cpanel/php/sessions/ea-php70 Master: /var/cpanel/php/sessions/ea-php73 How should I get PHP-FPM and this machine to honour the Master value?
    0
  • cPanelLauren
    So, before you make any changes to the php-fpm config, when you look at the .ini files local to that domain (since this is clearly set locally) as well as the .htaccess do you see anything that references the session save path?
    0
  • scottrichardson
    OMG - so just looked through the website files and I found a user generated .user.ini file which is setting the session path. It must have been done by a previous dev. Can confirm the site is working as desired once I removed the user.ini file.
    So, before you make any changes to the php-fpm config, when you look at the .ini files local to that domain (since this is clearly set locally) as well as the .htaccess do you see anything that references the session save path?

    Yup this: session.save_path = "/var/cpanel/php/sessions/ea-php70"
    0
  • cPanelLauren
    Hah! I'm glad you found it! Thanks for letting us know as well.
    0

Please sign in to leave a comment.