The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

dir() has been disabled how to enable it.

Discussion in 'General Discussion' started by speedy, Apr 26, 2005.

  1. speedy

    speedy Active Member

    Joined:
    Dec 25, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    I am getting the following error with any script that has to look outside of it's own folder for any file. This is from a phpnuke.

    Warning: dir() has been disabled for security reasons in /home/three37/public_html/home/admin.php on line 220

    Fatal error: Call to a member function read() on a non-object in /home/three37/public_html/home/admin.php on line 221

    on login attempt.
    ---------------------------------------- how to fix it?-----------------------------------------

    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 =

    ; 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 =

    ; This directive allows you to disable certain functions for security reasons.
    ; It receives a comma-delimited list of function names. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    disable_functions =

    Someone point it out...
     
  2. speedy

    speedy Active Member

    Joined:
    Dec 25, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    help plz

    can someoen pls help me out I don't know how to fix this.
     
Loading...

Share This Page