phpinfo() - Configuration File (php.ini) Path

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Win

    phpinfo() - Configuration File (php.ini) Path

    Not really an important question, but does anyone happen to know how to
    modify the path displayed in the [Configuration File (php.ini) Path]
    section from phpinfo()?

    I was referred to the following URL, but that doesn't seem to do it:


  • Colin McKinnon

    #2
    Re: phpinfo() - Configuration File (php.ini) Path

    Win wrote:
    [color=blue]
    > Not really an important question, but does anyone happen to know how to
    > modify the path displayed in the [Configuration File (php.ini) Path]
    > section from phpinfo()?
    >
    > I was referred to the following URL, but that doesn't seem to do it:
    > http://us3.php.net/manual/en/configuration.php[/color]

    What did you do? What OS are you running? What webserver? are you running
    PHP as a module or as CGI?

    IIRC if you want to change the default path you need to build the binaries -
    specify --with-config-file-path=... when you run configure.

    C.

    Comment

    • Win

      #3
      Re: phpinfo() - Configuration File (php.ini) Path

      My apologies for the lack of info.

      Win2k Srv IIS. PHP5 as a module.

      Comment

      • Philip  Olson

        #4
        Re: phpinfo() - Configuration File (php.ini) Path

        Set the following registry key:

        HKEY_LOCAL_MACH INE\SOFTWARE\PH P\IniFilePath

        Comment

        • Win

          #5
          Re: phpinfo() - Configuration File (php.ini) Path

          Thanks for the input Philip, but that key does not exist. Any other
          ideas?

          Comment

          • Philip  Olson

            #6
            Re: phpinfo() - Configuration File (php.ini) Path

            Set the system PHPRC environment variable on your system.

            Comment

            • Philip  Olson

              #7
              Re: phpinfo() - Configuration File (php.ini) Path

              Btw, you can create the key. I don't know much about Windows or its
              registry but you can create registry keys...

              Comment

              Working...