We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17851
    • 213 Posts
    I'm hosting several Evo sites on Plesk9.x (Linux) and when I switch from running PHP as Apache module to FastCGI, I can't login to the manager anymore. It will return (apparently) an error if I type the wrong password, but if I type the correct password, it just refreshes the screen. Front end of the site seems to work fine.

    Any ideas?

    Wordpress runs fine on the same Plesk with FastCGI. [ed. note: MacLonghorn last edited this post 14 years, 2 months ago.]
      Mark Macatee
      President
      Power 10 Solutions
      http://www.power10solutions.com
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Make sure that the directories have 755 permissions and files 644. Also clear your browser cache and cookies. Check the directory being used by PHP to store session files for its permissions.
        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
        • 17851
        • 213 Posts
        what should the session dir permissions be? mine is 770 root:apache.
          Mark Macatee
          President
          Power 10 Solutions
          http://www.power10solutions.com
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Is the session dir in your web space or in something like /tmp outside of the webspace file area? The thing about FastCGI (at least if you're also using some form of suexec, where the PHP process is run as the .php file's owner) is that the areas MODx will write to, including the session files, have to be owned by the same user, or be world-writable. The PHP processing isn't being done as the web server user (apache) any more, so you'll probably have to change the owner/group of that dir to the same group as your user.
            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
            • 17851
            • 213 Posts
            It's /var/lib/php/session. According to Parallels, the resolution to this is to upgrade to Plesk 10.4:

            http://kb.parallels.com/en/7056
              Mark Macatee
              President
              Power 10 Solutions
              http://www.power10solutions.com
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              The point is that the session dir has to be writable by your FTP user (the owner of the .php files doing the writing).

              As far as Plesk and Parallels, I can't speak to that issue as I'm not familiar with these. For all I know, one of them may prevent any changes to the existing session dir.
                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
                • 17851
                • 213 Posts
                Correct, your answer on the session dir was spot on--thanks for that. It's only writable by apache group, which my users are not part of. So the solution in Plesk is to upgrade to a version that lets you specify PHP settings per domain.
                  Mark Macatee
                  President
                  Power 10 Solutions
                  http://www.power10solutions.com