Foros del Web » Programando para Internet » PHP »

Como soluciono problema con SAFE MODE ?

Estas en el tema de Como soluciono problema con SAFE MODE ? en el foro de PHP en Foros del Web. Queria saber si mas o menos me podian orientar con un problema que tengo en mi foro invision. El error se muestra en la pagina ...
  #1 (permalink)  
Antiguo 19/08/2005, 07:39
Avatar de lisandro Arg  
Fecha de Ingreso: octubre-2003
Ubicación: Cordoba, Argentina
Mensajes: 945
Antigüedad: 20 años, 6 meses
Puntos: 24
Como soluciono problema con SAFE MODE ?

Queria saber si mas o menos me podian orientar con un problema que tengo en mi foro invision. El error se muestra en la pagina para seleccionar los avatares, y la funcion que trae problemas es opendir()


Aca abajo esta el codigo del error:

Warning: opendir(): SAFE MODE Restriction in effect. The script whose uid is 543 is not allowed to access /home/virtual/site114/fst/var/www/html owned by uid 0 in /home/virtual/site41/fst/var/www/html/foro1_3/sources/Usercp.php on line 1563

Warning: opendir(/home/virtual/site114/fst/var/www/html/foro1_3/html/avatars): failed to open dir: No such file or directory in /home/virtual/site41/fst/var/www/html/foro1_3/sources/Usercp.php on line 1563

Warning: readdir(): supplied argument is not a valid Directory resource in /home/virtual/site41/fst/var/www/html/foro1_3/sources/Usercp.php on line 1565

Warning: closedir(): supplied argument is not a valid Directory resource in /home/virtual/site41/fst/var/www/html/foro1_3/sources/Usercp.php on line 1581
  #2 (permalink)  
Antiguo 19/08/2005, 10:25
Avatar de claudiovega  
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 5 meses
Puntos: 11
Tendrias que jugar con esta parte del php.ini

; Whether to enable the ability to force arguments to be passed by reference
; at function call time. This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend. The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration. You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
allow_call_time_pass_reference = On

; 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

; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
;open_basedir =

Si es que tienes acceso a ese archivo. De seguro safe_mode = esta On.
  #3 (permalink)  
Antiguo 19/08/2005, 17:46
Avatar de lisandro Arg  
Fecha de Ingreso: octubre-2003
Ubicación: Cordoba, Argentina
Mensajes: 945
Antigüedad: 20 años, 6 meses
Puntos: 24
Es que no tengo acceso al php.ini !!!!, si no cambiaria el safe mode de on a off
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 19:37.