We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6856
    • 20 Posts
    FATAL ERROR: MODX Setup cannot continue.

    Make sure your PHP session configuration is valid and working.


    Warning: Unknown: open(/tmp/sess_fe6e9be4d03534ed50860395ba99d224, O_RDWR) failed: Permission denied (13) in Unknown on line 0

    Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0


    PHP info
    http://www.mdemrsystems.com/phpinfo.php


    The /tmp directory is empty so I can't even find that session file.


    I can not figure this last issue out. Any ideas what is going on?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Yes. The error makes it clear that PHP does not have permission to write to the server's /tmp directory, so it cannot write the session file.

      Usually you can specify a custom session_save_path to something like /home/yourdomain/www/tmp, where you do have permission to write. For example, I just did an installation on hosting that requires a custom php.ini file to set a session.save_path to a directory in your user's space, and their control panel gives you a form with an editing field for editing this file. So exactly how this is to be done will depend on your hosting configuration and policies.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 6856
        • 20 Posts
        Quote from: sottwell at Jan 17, 2015, 02:41 PM
        Yes. The error makes it clear that PHP does not have permission to write to the server's /tmp directory, so it cannot write the session file.

        Usually you can specify a custom session_save_path to something like /home/yourdomain/www/tmp, where you do have permission to write. For example, I just did an installation on hosting that requires a custom php.ini file to set a session.save_path to a directory in your user's space, and their control panel gives you a form with an editing field for editing this file. So exactly how this is to be done will depend on your hosting configuration and policies.


        I edited the path and gave it the correct permissions. Now I'm just getting this error


        FATAL ERROR: MODX Setup cannot continue.

        Make sure your PHP session configuration is valid and working.


        Nothing else is stated.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          You need to find out how your hosting provider handles PHP sessions. What is your hosting provider?
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 6856
            • 20 Posts
            I'm using a Value Virtual Private Hosting Linux Server from Godaddy. It's on CentOS and I have WHM w/ Cpanel on it. It's basically my own VM box.

            I've had MODX running on this box for a couple years now but when I did a tape restore I haven't been able to re-install MODX back on it. I'm about to pull the plug on this and load wordpress instead.
              • 1343 ☆ A M B ☆
              • 2,213 Posts
              Check your "Configure PHP and suEXEC" settings and make sure you are using suphp with suEXEC on and Ruid2 Off. It sounds like your Apache configuration isn't setup properly, while cPanel can make server administration easier there are still items that can be incorrectly configured.

              Also for what it's worth if your sessions are messed up any php scripts that rely on them will also fail to function - WordPress included.
                Patrick | Server Wrangler
                About Me: Website | Tweets |  MODX Hosting