Warning: session_start(): open .... failed - PHP error

By: CG  

If you encounter the following error using PHP under IIS: "Warning: session_start(): open .... failed", you need to grant "read/write" permissions to the "IUSR" on the directory listed in "session.save_path" (in "php.ini"). 

In Vista, do the following:
1. Right-click on folder defined in "session.save_path" in "php.ini" file. (ex: "C:\Windows\Temp")
2. Select "Properties"
3. Click "Security" tab
4. Click "Edit"
5. Click "Add"
6. Click "Advanced"
7. Click "Find Now"
8. Select "IUSR"
9. Click "OK"
10. Click "OK".
11. Under "Permissions for IUSR", ensure the following are checked:
- Read & execute
- List folder contents
- Read
- Write
12. Click "OK"
13. Click "Yes" to change the permissions
14. Click "OK"





Most Viewed Articles (in PHP )

Anonymous functions as properties in Classes in PHP

Function to sort array by elements and count of element in PHP

Reading .ini files in PHP

Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:......

Running different websites on different versions of PHP in Windows 2003 & IIS6 platform

PHP ./configure RESULTING IN [email protected]_2_2_3_... AND UNRESOLVED REFERENCES WITH ORACLE OCI8

PHP 5.1.4 INSTALLATION on Solaris 9 (Sparc)

Building PHP 5.x with Apache2 on SuSE Professional 9.1/9.2

Installing PHP 5.x with Apache 2.x on HP UX 11i and configuring PHP 5.x with Oracle 9i

Setting up PHP in Windows 2003 Server IIS7, and WinXP 64

Function to force strict boolean values in PHP

Malware: global $ob_starting;

Function to convert strings to strict booleans in PHP

PHP pages does not display in IIS 6 with Windows 2003

Function to return number of digits of an integer in PHP

Latest Articles (in PHP)

Comment on this tutorial