phpbar.de logo

Mailinglisten-Archive

[php] Session Errors

[php] Session Errors

G.Zimmermann at mobilkom.at G.Zimmermann at mobilkom.at
Fre Nov 14 13:44:33 CET 2003


Hallo,

Ich bekomme immer wieder folgenden Fehler:
Danke im Voraus für alle Ideen.

[13-Nov-2003 22:01:48] PHP Warning:  Unknown():
open(/tmp/sess_ebecea07bc1dc2690e6a874fe53ab15d, O_RDWR) failed: Invalid
argument (22) in Unknown on line 0
[13-Nov-2003 22:01:48] PHP Warning:  Unknown(): Failed to write session data
(files). Please verify that the current setting of session.save_path is
correct (/tmp) in Unknown on line 0


Ich habe mich bereits mit den üblichen Fehlern auseinandergesetzt und kann
folgendes ausschliessen:

1) /tmp existiert und hat die richtigen Rechte  (1777).
2) /tmp hat genügen freien Speicher (>500MB).
3) Der user unter welchem der apache und damit php ausgeführt wird hat ein
gültiges Homedirectorie und kann auch die ganannten files in /tmp
erzeugen. (Z.b.: su - wwwrun -c 'touch
/tmp/sess_ebecea07bc1dc2690e6a874fe53ab15d' oder mkdir ...)
4) Bis vor 3 Tagen hat alles funktioniert, auch die Sessions .
5) Auch mit den Standard php.ini und apache configfiles bleibt der Fehler
erhalten.
6) Ein ändern des session.save_path auf /var/www/tmp hat ebenfalls nichts
geändert.


php.ini.
Sessions Konfiguration:
##################
[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this 
; variable in order to use PHP's session functions.
session.save_path = /tmp

; Whether to use cookies.
session.use_cookies = 1

; This option enables administrators to make their users invulnerable to 
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1

; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =

; Handler used to serialize data.  php is the standard serializer of PHP.
session.serialize_handler = php

; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.

session.gc_probability = 1
session.gc_divisor     = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit
register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning seperately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.

session.bug_compat_42 = 0
session.bug_compat_warn = 1

##################

Anbei noch mein configure für apache und php:

apache.
###################
./configure --prefix=/opt/httpd-2.0.48 --mandir=/usr/share/man
--infodir=/usr/share/info --enable-deflate --enable-logio
--enable-mime-magic --enable-ssl --enable-proxy --enable-proxy-connect
--enable-proxy-ftp --enable-proxy-http --enable-info --enable-cgi
--enable-cgid --enable-speling --enable-rewrite --enable-so
--with-ssl=/opt/openssl --with-z=/opt/zlib --disable-suexec
###################

php:
###################
./configure --prefix=/opt/php-4.3.4 --mandir=/usr/share/man
--infodir=/usr/share/info --enable-force-cgi-redirect --enable-discard-path
--enable-fastcgi --enable-bcmath --enable-calendar --enable-ftp
--enable-mbstring --enable-mbregex --enable-memory-limit
--enable-zend-multibyte --with-apxs2=/opt/httpd-2.0.48/bin/apxs
--with-config-file-path=/etc/php-4.3.4 --with-openssl=/opt/openssl
--with-zlib=/opt/zlib --with-bz2=/usr --with-ldap=/opt/openldap
--with-mysql=/opt/mysql --with-mysql-sock=/tmp --with-rrdtool=/opt/rrdtool
--with-pgsql=/opt/postgres --enable-sockets --enable-yp --enable-dba
--enable-dbase --enable-dbx --enable-dio --enable-filepro
--with-ldap=/opt/openldap --with-db4=/opt/db --with-java=/usr/lib/jdk1.3
--with-gd --enable-gd-native-ttf --with-imap-ssl=/opt/openssl
--with-flatfile --with-fribidi=/opt/fribidi --with-cpdflib=/usr/local
--with-dom=/usr/local --with-dom-xslt=/opt/libxslt-1.0.30
--with-ming=/opt/ming --enable-exif --with-mcrypt=/usr --with-mhash
--with-imap=/opt/imap-2002e-ssl --with-gettext=/usr/local
--with-expat-dir=/usr --enable-xml --with-mcal=/usr/local
--with-imap-ssl=/usr/local/ssl --enable-sysvmsg --enable-sysvsem
--enable-sysvshm --enable-shmop --enable-ucd-snmp-hack --enable-wddx
--enable-safe-mode --with-inifile --with-flatfile
###################


mfg
Günter Zimmermann
OM-Server&Backup
mobilkom austria AG & Co KG
Tel.:	  +43 (1)  331 61 2560
Fax:   +43 (1)  331 9791 12560
GSM :+43 664 331 2560
Obere Donaustrasse 29
1020 Wien
Zimmer A02A060


php::bar PHP Wiki   -   Listenarchive