IIS5 does not read PHP.ini?

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

    IIS5 does not read PHP.ini?

    I have an odd problem.

    I use PHP 4.3.2
    I use Apache 1.3.28 on port 8080
    I use IIS5 in Win2k on port 80

    Both Apache and IIS use the same PHP version, and I thought they both read
    the %Systemroot%\ph p.ini - however, only when I execute ini_get('SMTP') in
    a php page on the Apache server I get the value from PHP.ini - which is
    test.com.

    If I execute the exact same php file, using the exact same php.ini on the
    IIS server on port 80 - I get the value: localhost - the default value for
    SMTP under Win32.

    PHP works on both servers, and all regular commands works on both servers.
    However, I really need to use the SMTP and register_global s variables under
    IIS - but I cannot make IIS read the ยค#%%& file - what should I do?

    I have been stuck with this problem for a while, and it doesn't help
    removing Apache from the machine, nor does it help giving every full access
    to php.ini.

    I hope you can help me out with this issue, it might be security related -
    maybe IIS obeys some rules and Apache does not regarding %systemroot% - but
    I have not been able to set the correct properties yet.

    Thank you in advance,
    Cheers, Flemming.
  • Martin Lucas-Smith

    #2
    Re: IIS5 does not read PHP.ini?


    [color=blue]
    > I use PHP 4.3.2
    > I use Apache 1.3.28 on port 8080
    > I use IIS5 in Win2k on port 80[/color]

    To state the obvious: is there a reason for needing two webservers on the
    same box? (I can imagine this would be useful for testing script
    portability.) If you're only trying to get both 80 and 8080 working, you
    can do that using just a single websever.

    Sorry not to be able to answer the question directly - I've never needed
    to use IIS - but I'm posting this just in case you're not aware of the
    above. I'm sure others will be able to answer it directly.


    Martin

    Comment

    • Flemming Joensson

      #3
      Re: IIS5 does not read PHP.ini?

      Martin Lucas-Smith <mvl22@cam.ac.u k> wrote in
      news:Pine.SOL.4 .44.03082214050 90.1701-100000@yellow.c si.cam.ac.uk:
      [color=blue][color=green]
      >> I use PHP 4.3.2
      >> I use Apache 1.3.28 on port 8080
      >> I use IIS5 in Win2k on port 80[/color]
      >
      > To state the obvious: is there a reason for needing two webservers on the
      > same box? (I can imagine this would be useful for testing script
      > portability.) If you're only trying to get both 80 and 8080 working, you
      > can do that using just a single websever.[/color]

      I know this, I have both running to be able to verify PHP behavior on both
      servers.

      Oddly enough everything works on Apache but not in IIS. It is like IIS does
      not even try to read PHP.ini and defaults to all default settings instead
      of the actual settings in php.ini - which really sucks by the way.

      Flemming

      Comment

      Working...