PDA

View Full Version : Fatal error in Session Save Path writable?


lykfeldt
13-04-05, 11:23 PM
I'm trying to install dotProject 2.0.1 on Apache.

In the install-screen I get the error in Session Save Path writable? :

Fatal: .;c:\apachefriends\xampp\tmp not existing or not writable

The tmp-folder does exist but I don't know how to give Apache write-permission to that folder. In IIS I would give iusr_servername permissions, but how do I do this in Apache?

Please help.

pedroa
13-04-05, 11:47 PM
Point to http://localhost/dotproject/docs/

See your System Checks.
Is session.save_path ok? I am assuming not.

.;c:\apachefriends\xampp\tmp
is not a valid windows path (php interprets this as the actual folder(. ) and(; ) c:\apachefriends\xampp\tmp).

Now go to your php.ini and change that to c:\apachefriends\xampp\tmp, so there shoul be a line:

session.save_path = c:\apachefriends\xampp\tmp

This folder exists? I am assuming so.

Go to your windows explorer and verify by right clicking that folder that it is not read only and so on.

That's it.

Any further problems? I am assuming so, so here is my example:
session.save_path = c:\php4

Created that folder and it is working for me.

Pedro A.

lykfeldt
14-04-05, 12:02 AM
Thanks, that was it.

Do you have any idea why it won't print danish chars? It's only data from the db (project names, task names etc.), the language pack works fine. It prints a ?-sign instead of one or two danish chars.

pedroa
14-04-05, 12:19 AM
Hi again,

The problem is with the new character encoding
in 1.0
$locale_char_set = 'iso-8859-1';

in 2.0
$locale_char_set = 'utf-8';

So your data needs to be reencoded in order to appear correctly.
So you'll need to retype your data within the dP environment and save it, now it will be saved correctly.
Same happens to your localization files. Use the Tradution Manager on System Admin.

Pedro A.

lykfeldt
14-04-05, 06:18 AM
I have too many projects, tasks and logs to do that. There must be another way.

uniquehandle
04-07-05, 02:10 PM
Pedroa

I seem to have the same issue as the original poster. However, I've changed the line

session.save_path= ".;e:\apachefriends\xampp\tmp"

to

session.save_path= "e:\apachefriends\xampp\tmp" to

in the several locations that I've found it in php.ini (e:\apachefriends\php and e:\apachefriends\php\php4) and in one php5.ini. I've closed and reopened the browser and rerun the dotproject install. Yet I still get

Session Save Path writable?
Fatal: .;e:\apachefriends\xampp\tmp not existing or not writable

Any clues? Otherwise php seems to be working fine (I mean other apps that use php). That dir does exist. Thanks

pedroa
04-07-05, 11:52 PM
I've closed and reopened the browser and rerun the dotproject install. Yet I still get



This is not enough, you will have to shut down Apache and turn it back on in order to php.ini changed settings to become effective.

If you are sure that the dir exists then the only thing remaining is to verify that it is not read only, trough Apache settings and trough OS settings ("right click on the folder, properties, and remove any read only property...").

Pedro A.

uniquehandle
05-07-05, 03:03 AM
Aha! Super! A restart did the trick!

Thanks!!!

Jos
31-08-07, 04:36 PM
I had this error and fixed it by folling this tread and correcting the Session.Save_Path to a TMP directory under my web server root directory like C:\programfiles\Apache Group\apache2\Tmp. Then I run the install site and upgreaded the installation, inwhich case I didn't get any fatal error but the next page which sould have been displayed when I clicked "Login and Configure the dotProject System Environment" link displays blanck page. Any Idea what the problem here is? I'm running on Windows 2003 Server with Apache 2.0,PHP 5.0, and dotProject 2.1 rc2.

Thanks.

Jos
31-08-07, 05:30 PM
I removed the previous installation and done a fresh one, this time I got the following warnings and the "Login and Configure the dotProject System Environment" link still leads to a blanck page....
Warning: include_once(C:\Apachewebroot\webroot\dotproject/includes/config.php) [function.include-once]: failed to open stream: No such file or directory in C:\Apachewebroot\webroot\dotproject\db\upgrade_per missions.php on line 7

Warning: include_once() [function.include]: Failed opening 'C:\Apachewebroot\webroot\dotproject/includes/config.php' for inclusion (include_path='.;C:\php5\pear') in C:\Apachewebroot\webroot\dotproject\db\upgrade_per missions.php on line 7

I lookd at the Apache error logfile and found the following lines
---------------------------------------
[Thu Aug 30 20:24:10 2007] [error] [client 127.0.0.1] PHP Notice: Undefined variable: baseDir in C:\\Apachewebroot\\webroot\\dotproject\\includes\\ config.php on line 17
[Thu Aug 30 20:24:10 2007] [error] [client 127.0.0.1] PHP Notice: Undefined variable: baseUrl in C:\\Apachewebroot\\webroot\\dotproject\\includes\\ config.php on line 18
[Thu Aug 30 20:24:26 2007] [error] [client 127.0.0.1] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot find save handler user in C:\\Apachewebroot\\webroot\\dotproject\\includes\\ session.php on line 212, referer: http://localhost:3030/dotproject/install/do_install_db.php
[Thu Aug 30 20:24:26 2007] [error] [client 127.0.0.1] PHP Warning: session_register() [<a href='function.session-register'>function.session-register</a>]: Cannot find save handler user in C:\\Apachewebroot\\webroot\\dotproject\\includes\\ session.php on line 215, referer: http://localhost:3030/dotproject/install/do_install_db.php
[Thu Aug 30 20:24:26 2007] [error] [client 127.0.0.1] PHP Warning: session_destroy() [<a href='function.session-destroy'>function.session-destroy</a>]: Trying to destroy uninitialized session in C:\\Apachewebroot\\webroot\\dotproject\\index.php on line 172, referer: http://localhost:3030/dotproject/install/do_install_db.php
[Thu Aug 30 20:24:26 2007] [error] [client 127.0.0.1] PHP Fatal error: Unknown: Cannot find save handler %TMP% in Unknown on line 0, referer: http://localhost:3030/dotproject/install/do_install_db.php
-----------------------------------------------

Please help...:(

Jos
31-08-07, 07:23 PM
After looking at the apache log, I changed the session.save_handler = files and it is woking just fine now....TXs alll...