Fehlermeldung error.log apache

xStrak

Member
Hallo

ich schauen in meinem Datei Error.log in meiner apache, ich sehe es die folgende Meldung

Code:
[Thu May 14 16:07:54 2009] [error] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp//sess_ipff72d49e7re1oq9pnr37nauhtri3kg, O_RDWR) failed: Permission denied (13) in /phpMyAdmin/libraries/session.inc.php on line 87
[Thu May 14 16:07:54 2009] [error] PHP Warning:  Unknown: open(/tmp//sess_ipff72d49e7re1oq9pnr37nauhtri3kg, O_RDWR) failed: Permission denied (13) in Unknown on line 0
[Thu May 14 16:07:54 2009] [error] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
[Thu May 14 16:08:05 2009] [error] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp//sess_ist9vs841624q72gdk8iq7bl8a5d8knh, O_RDWR) failed: Permission denied (13) in /phpMyAdmin/libraries/session.inc.php on line 87
[Thu May 14 16:08:05 2009] [error] PHP Warning:  Unknown: open(/tmp//sess_ist9vs841624q72gdk8iq7bl8a5d8knh, O_RDWR) failed: Permission denied (13) in Unknown on line 0
[Thu May 14 16:08:05 2009] [error] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
 
Guten Tag beiliegend eine Kopie meiner Kartei, Von defaut in meiner php.ini Datei habe ich zwei Linie session.save_path, Ich soll die Premiere ändern oder der deuxieme liniert ?

Code:
; 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.
;
; As of PHP 4.0.1, you can define the path as:
;
;     session.save_path = "N;/path"
;
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; 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
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;     session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
;session.save_path = "/tmp"
 
Du kannst zb ein Verzeichnis "tmp" in /var/www anlegen und dann
Code:
session.save_path="/var/www/tmp"
setzen.

//

You can e.g. create a directory "tmp" in /var/www and set
Code:
session.save_path="/var/www/tmp"
 
Ich habe wirklich, in meiner Datei hinzuzufügen php.ini

Code:
session.save_path="/var/www/tmp"

Wenn ich in meiner Datei Error.log ansehe, maffiche toujour er von demselben Irrtum
 
Du kannst zb ein Verzeichnis "tmp" in /var/www anlegen und dann
Code:
session.save_path="/var/www/tmp"
setzen.

Da der Apache mit chroot läuft, muss man zwar /var/www/tmp anlegen und dem User www das Schreiben dort ermöglichen, aber in der php.ini muss man dann

Code:
session.save_path="/tmp"

verwenden.

HTH & Ciao.
Max
;-)
 
Zuletzt bearbeitet:
muss man nicht, denn /var/www/var/www ist ein symlink auf ../.., also auf /var/www bzw. innerhalb des chroot auf / :P
 
Zurück
Oben