Hi Laurence,
This is what I found. From the coder of the Modx CMS: "The problem is the PHP process does not have sufficient permissions to write to the /temp/ directory, which is configured as the PHP session_save_path location."
My content management system, Modx, and I think a number of others too as I see references to Drupal also, use a Session_save that writes to the temp directory. I see from my info.php this is set in session.save_path as C:\WINDOWS\Temp. Yet at HN we do not have permission to write to this directory and therefore I am throwing this error:
Quote:
|
Warning: session_start() [function.session-start]: open(C:\WINDOWS\Temp\sess_5af283eda9015252ae5c0cae 546d2237, O_RDWR) failed: Permission denied (13) in D:\inetpub\vhosts\my.domain\httpdocs\ModX\manager\ includes\config.inc.php on line 60
|
In the code, line 60 is the session. session_start();
I am finding that FastCGI and CGI both are throwing the same errors. I have tested on different setups on different domains and from three separate computers. I am not sure that entirely this has been the problem but I think much can be pointed at session_start() attempting to write to C:\Windows\Temp
From php.net:
Quote:
A note on Windows installations with an NTFS file structure:
Make sure you give your Internet user account (usually IUSR_MACHINENAME) "Modify" access to the session.save_path directory. Otherwise session_start() will silently - and oh, so slowly - fail.
("Modify" is a Win2k term, but the concept translates to older IIS installs).
PHP: session_start - Manual
|
Possible resolutions are to either have permission to write to the C:\windows\temp directory or point to another directory to write temp files to. For now I put a directory in my path and it is working. However, the coders also said for security reasons, and I concur, that it would be best to set up a /Temp/ directory on the same level as httpdocs or outside of the domains root. I tried, however, Plesk does not allow me to set up read write permissions to a directory on that level.
Can we get a temp directory setup there with permissions to point Session.save_path to? Do you have any other thoughts?
By the way, getting this set right is like replacing that 2 barrel with a 4 barrel on the 60's muscle car. I like the performance I am seeing so far. From so so page loads to almost instant.