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

safe_mode off...

Nasr

Well-known member
#1
safe_mode is off on my webhost server but i'm getting ...

The following errors occurred while verifying that your server can run XenForo:

  • PHP must not be running in safe_mode. Please ask your host to disable the PHP safe_mode setting.
Please correct these errors and try again.

I've checked phpinfo.php and safe_mode is off.

any reason that could cause this?
 

Jake Bunce

XenForo moderator
Staff member
#2
Is the phpinfo file in the same directory as the test script? It's possible to have different PHP configurations per directory on some servers.
 
#3
I figured out the same problem.

In my php.ini i set:

Code:
safe_mode = Off
then i checked the setting by using an info.php, like:
Code:
<?
  phpinfo();
?>
It results in telling me, that the safe_mode is off.
Anyways installation canceled by telling me, that i have to switch off safe_mode.

In my case the solution was to set in my php.ini:

Code:
; safe_mode = off
I think the problem is, that the Requirement-Test-Script checks if there is any safe_mode-setting (no matter if on or off) instead of checking, if safe_mode is off.
 

Nasr

Well-known member
#5
I figured out the same problem.

In my php.ini i set:

Code:
safe_mode = Off
then i checked the setting by using an info.php, like:
Code:
<?
  phpinfo();
?>
It results in telling me, that the safe_mode is off.
Anyways installation canceled by telling me, that i have to switch off safe_mode.

In my case the solution was to set in my php.ini:

Code:
; safe_mode = off
I think the problem is, that the Requirement-Test-Script checks if there is any safe_mode-setting (no matter if on or off) instead of checking, if safe_mode is off.
I have my local server set to off and it worked without a problem. Maybe they just need to restart php again.
 
#9
Even if it is working for you, here the information, where:
Code:
 if (@ini_get('safe_mode'))
                {
                        $errors['safe_mode'] = new XenForo_Phrase('php_must_not_be_in_safe_mode');
                }
can be found.

It is in: /library/XenForo/Install/Model/Install.php

Greets