Jesus Loves GRASS

Technical blog about GRASS/GIS,open source geoinformatics and MAPSERVER.

Wednesday, February 21, 2007

FATAL ERROR: Session save path () doesn't exist or is not writable

OK. I decided to work with the DM tools and chamelion widgets for the CALTER mapserver, this way I will not have to program any basic components.

I am still installing all the stuff, but to have chamelion working the PHP moduled needed to re recomplied to support GD and FreeType

./configure --enable-safe-mode --with-mysql --with-pgsql --enable-dbase --with-config-file --enable-static --prefix=/chroot/httpd/usr/local/apache2/php --with-apxs2=/chroot/httpd/usr/local/apache2/bin/apxs --disable-cgi --with-config-file-path=/chroot/httpd/usr/local/apache2/php --with-openssl --with-zlib --with-gd --with-freetype-dir

The maplab tools gave some headaches with Forbidden warnings. The fist time this warning was caused incorrect permissions (nothing like a good 666 or 777 to make things working).

Still it wouldn't work, checking the error logs it was mod_security sending the forbidden, the php was sending an error message and mod_security was blocking it. So the mod_security was reconfigured not to scan replies from the server

Finally the error was FATAL ERROR: Session save path () doesn't exist or is not writable , the maplab uses sessions id to pass data between the programs, so I googled and found the solution in a french website.

The php.ini needs to have session.save_path unquoated and activated to /tmp and /tmp should have rw permission.

0 Comments:

Post a Comment

<< Home