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.]
-
☆ 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.
what should the session dir permissions be? mine is 770 root:apache.
-
☆ 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.
-
☆ 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.
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.