PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : safemode bei php ausstellen?



Stealth2204
30.09.04, 07:22
Hallo,

bin mir nun unsicher ob das hier das richtige Forum ist, aber hoffe doch.

Ich habe ein Problem und zwar ist auf meinem Server im PHP Safe Mode an. Ich gehe davon aus da ich einen sogenannten Tracker installieren möchte. Doch immer bei der Registrierung am Ende wo er die E-Mail senden soll kommt dieser Fehler:



Warning: mail(): SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in /srv/www/htdocs/web1/html/tracker/takesignup.php on line 135

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/web1/html/tracker/takesignup.php:135) in /srv/www/htdocs/web1/html/tracker/takesignup.php on line 137



Ich habe schon versucht die Zeile auszukommentieren doch dann wird leider keine e-mail verschickt.

Meine php.ini in /etc/php.ini sieht so aus:



; Safe Mode
;
;safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
;safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
;safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
;safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes. In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here. By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
;
; Note: If this directive is empty, PHP will let the user modify ANY
; environment variable!
;safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv(). These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
;safe_mode_protected_env_vars = LD_LIBRARY_PATH



Also laut diesen Zeilen ist es aus .. habe ebenfalls diese mit ";" auskommentiert um ganz sicher zu gehen .. Doch Leider ist php anscheinend immer noch im Safe Mode .. wie bekomm ich das denn nun aus? Ich bin echt ratlos :(

Benutze SuSE Linux 9.0

Danke für eure Hilfe im Vorraus.

Grüßle,
Stealth

drcux
30.09.04, 07:36
wenn du safe_mode=OFF auskommentierst, nimmt php die Standardeinstellung, und die ist ON...

Stealth2204
30.09.04, 07:41
wenn du safe_mode=OFF auskommentierst, nimmt php die Standardeinstellung, und die ist ON...


hm .. ok .. aba selbst wenn ichs nicht auskommentier bekomm cih den fehler .. habs ja erst ohne auskommentiert probiert da kam fehler .. dann dachte ich mir ich kommentier mal aus da kam auch fehler .. also auch wenn nicht auskommentiert ist kommt der fehler wegen safe mode :( .. gibts irgend ne php info oda so die ausliest wo die php konfigurationsdatei liegt oda so? Weil so langsam glaub ich der liest nicht von der -.- .. dieser root von server4you is irgendwie eigenartig :(

EDIT: habe gerade mal oben die distri geändert .. linux 9.0 *schäm* :rolleyes: das is mir auch noch nie passiert :D

also is SuSE Linux 9.0 :D

Stealth2204
30.09.04, 08:49
ok .. habs hinbekommen .. musste in der httpd.conf und in der confixx_virtual.conf noch safe mode ausstellen .. sorry für meine dummheit *schäm*

kann geclosed werden :D

zyrusthc
20.02.05, 15:18
Auch wenn dieser Thread etwas älter ist man kann auch das ganze in einzelnen vhosts abschalten !

php_admin_flag safe_mode Off

smokey78
19.10.05, 16:14
tach zusammen,

ich krieg den safemod nich ums verrecken aus :(

Habs schon mit: "php_admin_flag safe_mode Off" in confixx probiert.....

.... leider ohne Erfolg!


Auch find ich in der "httpd.conf" keinen Eintrag ,wo ich den auf off stellen könnte.

Und die "confixx_virtual.conf" find ich erst garnicht :(

Tausend Dank für eure Hilfe!!!

gruss

zyrusthc
19.10.05, 16:38
na dann schau doch einfach in die /etc/php.ini , dort wirst du fündig werden ;)

gruss Oli

Tomek
19.10.05, 16:55
Bei Confixx lassen sich solche Einstellungen im Admin-Interface je Benutzer oder Domain im Abschnitt HTTP-Spezial eintragen.