Hello, What is the setting of session.save_path in php.ini?
This is from the default php.ini file:
; NOTE 1: PHP will not create this directory structure automatically.
; You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
; use subdirectories for session storage
;session.save_path = /var/lib/php4
I just purged my configuration and did a clean install with apache2
on sarge. Hmmm. It apears to work here defaulting to /var/lib/php4
Does (or did) your /var/lib/php ownership and permissions
look like this?
seesink:/var/lib# ls -la | grep php4
drwx-wx-wt 2 root root 4096 2005-05-08 11:32 php4
seesink:/var/lib# ls -la php4
total 16
drwx-wx-wt 2 root root 4096 2005-05-08 11:32 .
drwxr-xr-x 61 root root 4096 2005-05-08 11:22 ..
-rw------- 1 www-data www-data 7172 2005-05-08 11:32
sess_0546c683cb23498c7e6cf76374d19b27
And does it work if you change it to that?
Did you upgrade your php from an older version or did you do a clean
install?
Cheers,
Remco.
On Sat, 07 May 2005 17:29:19 +0200
Anders Ellensh�j Andersen <[EMAIL PROTECTED]> wrote:
> Package: ibwebadmin
> Version: 0.98-2
> Severity: normal
>
>
> Installed with aptitude. When going to the index.html file in browser
> I got this error:
>
> Fatal error: session_start(): Failed to initialize storage module:
> user (path: /var/lib/php4) in
> /usr/share/ibwebadmin/inc/script_start.inc.php on line 16
>
> The developer suggested inserting this line on line 15 before the
> session_start() call:
>
> ini_set('session.save_handler', 'files');
>
> After inserting this line i got the following errors:
>
> Warning: session_start():
> open(/var/lib/php4/sess_ffcb82a4130c5f8edcfb0a3a5bf6391a, O_RDWR)
> failed: Permission denied (13) in
> /usr/share/ibwebadmin/inc/script_start.inc.php on line 18
>
> Warning: session_start(): Cannot send session cookie - headers already
> sent by (output started at
> /usr/share/ibwebadmin/inc/script_start.inc.php:18) in
> /usr/share/ibwebadmin/inc/script_start.inc.php on line 18
>
> The fix for this appeared to be to change ownership of the
> /var/lib/php4 directory from root:root to www-data:www-data.
>
> After these changes ibwebadmin appeared to work. I don't know what to
> make of this though. I have not made any changes to my php4 install
> that I can think of, but the ibwebadmin developer seems to think
> something is not right with it if these changes are necessary. Anyway
> though I should report it.
>
> Anders E. Andersen
>
> -- System Information:
> Debian Release: 3.1
> APT prefers unstable
> APT policy: (500, 'unstable')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.8
> Locale: LANG=da_DK, LC_CTYPE=da_DK (charmap=ISO-8859-1)
>
> Versions of packages ibwebadmin depends on:
> ii apache2-mpm-prefork [httpd] 2.0.54-2 traditional model for
> Apache2 ii libapache2-mod-php4 4:4.3.10-13 server-side,
> HTML-embedded scripti ii php4-interbase 4.3.10-2
> InterBase (FireBird) module for PH ii ucf
> 1.18 Update Configuration File: preserv
>
> -- no debconf information
>
pgpdmRxSBuVxh.pgp
Description: PGP signature

