Skip to main content

Session path in PHP-FPM

Comments

3 comments

  • cPanelMichael
    Hello @bloom360, Can you upload a PHPINFO file to the document root of the website and let us know what shows up for the session.save_path, PHP version, and Server API values? We document how to do this on step two of the following resource:
    0
  • bloom360
    Hi, I have found that the local user ini had the wrong path. I thought it would be irrelevant and only use the yaml conf file but apparently the .ini continues to be usd even under PHP-FPM? Can you please confirm? Many thanks!
    0
  • cPanelMichael
    I have found that the local user ini had the wrong path. I thought it would be irrelevant and only use the yaml conf file but apparently the .ini continues to be usd even under PHP-FPM?

    Hi @bloom360, Individual PHP-FPM user pool values take precedence over changes made using the MultiPHP INI Editor options in cPanel and Web Host Manager, however you generally shouldn't have to setup a custom pool value if the option is adjustable through the INI Editor. It's also possible the syntax you are using for the custom PHP-FPM pool value is invalid, and thus isn't enabled. Can you take the following steps and let me know if it helps? 1. Revert the custom PHP-FPM YAML file for the domain back to the following: --- _is_present: 1
    Then, run the following command: /scripts/php_fpm_config --rebuild
    2. Using the cPanel MultiPHP INI Editor will automatically populate a php.ini file, a user.ini file, and a .htaccess file. Make sure there are no additional ini files beyond what's setup by the INI Editor within the account's home directory or below. 3. Restart Apache and PHP-FPM: /scripts/restartsrv_apache_php_fpm /scripts/restartsrv_httpd
    Thank you.
    0

Please sign in to leave a comment.