RSS Feed

PHP frameworks (SugarCRM, Silverstripe) – session installation error

Apr 09 2011 Published by admin under PHP

  • Sharebar

During installation of these frameworks apache crashes and an error like below is shown in error.log.

[Warning] Unknown: open(C:\Users\UserName\AppData\Local\Temp\php\session\sess_dpung9rihndsr9fjug4c8k9mn3, O_RDWR) failed: No such file or directory (2)
POST /silver/install.php

This error occurs due to the restrictive permissions to the session directory. It is is not writable by the installer. This occurs mostly due to tight security (running vista under full security).

Solution
Simply open php.ini file in the PHP installation directory and change the variables “upload_tmp_dir” and “session.save_path” to some different writable location like below.

upload_tmp_dir="C:\PHPtemp\upload"
session.save_path="C:\PHPtemp\session"

No responses yet

Leave a Reply