I'm trying to run PHP in safe_mode just in several Virtualhosts (Apache 1.3.19). For some virtualhosts (admin-users) safe_mode should be switched off as the need to have access to several files that haven't got the same GID.
I tried to switch safe_mode = Off in a virtualhost with the following line in the httpd.conf:

php_value safe_mode Off

That didn't work. Not even the other way round: Globally switch safe_mode = Off in php.ini and switch php_value safe_mode On in several Virtualhosts.

any idea?
thanks a lot
philip

    ok, there was no answer to my question till now, so I just figured it out by myself:


    php_admin_flag safe_mode On

    Can anyone tell me what's the difference between the following flags in httpd.conf:

    php_admin_flag
    php_admin_value
    php_value

    Is php_admin_flag the only working one and can I forget about the other 2, or do they have any meaning?

    thanks
    philip

      ok, here we go - again I found an answer for my own question 🙂

      http://www.php.net/manual/en/configuration.php

      php_value name value
      This sets the value of the specified variable.

      php_flag name on|off
      This is used to set a Boolean configuration option.

      php_admin_value name value
      This sets the value of the specified variable. "Admin" configuration settings can only be set from within the main Apache configuration files, and not from .htaccess files.

      php_admin_flag name on|off
      This is used to set a Boolean configuration option.

        Write a Reply...