PHP 4.0 Bug #5543: Problem with specifying sessions files path in virtual domains
| From: | Leknor at Leknor dot com | Date: | Thu, 13 Jul 2000 00:10:26 +0000 |
| Subject: | PHP 4.0 Bug #5543: Problem with specifying sessions files path in virtual domains | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-24247@lists.php.net to get a copy of this message | ||
From: Leknor@Leknor.com
Operating system: Linux 2.2.16 / Apache 1.3.12
PHP version: 4.0.1pl2
PHP Bug Type: Session related
Bug description: Problem with specifying sessions files path in virtual domains
I'm hosting a few virtual domains and I want to keep the session files in separate directories.
I found that when I change the 'session.save_path' option via a php_value in an apache
VirtualHost defination causes this error:
[Tue Jul 11 19:44:51 2000] [notice] child pid 5138 exit signal Segmentation fault (11)
and here is an example of the httpd.conf section:
...
<VirtualHost leknor.com>
...
/leknor/sessions
...
</VirtualHost>
...
I have:
* tried many varriations of file permissions/owners on the session dir
* tried different locations including the one above and /tmp/leknor.com
* tried setting php_value session.save_path /tmp and it generates a seg fault also even though it is
the same settion as the global config in php.ini
What is strange IMO is that even thought the child pid seg faults the session seems to get
read/written to disk correctly. which leads me to believe that fault is in the session file close
code.
The following work around seems to work for me:
Before you call session_start(); in your php code call session_save_path("/some/path");
eg:
...
session_save_path("/home/leknor/sessions");
session_start();
...
If you need more info on my setup go to:
http://leknor.com/php.php
If a developer needs more info feel free to email me at Leknor@Leknor.com