1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

about safe mode

Discussion in 'XenForo Pre-Sales Questions' started by Mazinger, Oct 11, 2010.

  1. Mazinger

    Mazinger Member

    Can we run XF with safe mode turned on?
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Mazinger

    Mazinger Member

    Does turning it on closes a specific function or it disables the whole product?
  4. Mike

    Mike XenForo Developer Staff Member

    Primarily, it would break uploads. But it's possible/likely that it will break other things in the future.
    Welduae likes this.
  5. Nasr

    Nasr Well-Known Member

    Will turning safe_mode off cause a security issue? I've read somewhere that this is one of the disadvantages of Xenforo!
  6. Mike

    Mike XenForo Developer Staff Member

    It's worth pointing at the PHP manual itself here: http://php.net/manual/en/features.safe-mode.php:
    Safe mode unreasonably limits things like creating directories and reading files from within them (based on its UID limits). Strictly speaking, there are workarounds, but they involve chown'ing files and that's not really something to get into. The cruxt is that safe_mode is not a recommended PHP setting any more; security solutions should be looked at via a lower-level method (eg, phpsuexec).
    Mazinger likes this.

Share This Page