PHP Installed for both IIS and Apache?

Discussion in 'PHP' started by npd1164, Feb 13, 2008.

  1. #1
    Okay, this is probably wishful thinking ....but does anyone know if it is possible to also get PHP to work with Apache (Windows) when it is already installed and configured to work with IIS (on a development machine)?

    (I already have a working IIS/PHP system and do not wish to upset its config. I've not yet installed Apache but will not bother to try it if PHP cannot be configured to work with it as well).

    If so, any tips?
     
    npd1164, Feb 13, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    I can't see why it would cause any problems.

    Make sure that your PHP directory and Apache directory are well away from any IIS PHP Configuraton (just to be safe). While using the same directory (say, C:\PHP) shouldn't cause any real issues, it's better to be safe rather than sorry. Plus, it makes removal a lot easier.

    Hope this helps,

    Jay
     
    jayshah, Feb 13, 2008 IP
  3. npd1164

    npd1164 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, Jay.

    Just to clarify- what you are suggesting is to install PHP a second time, into a directory other than the presently installed one (which is C:\PHP) and then try and config Apache to use this version/installation?
     
    npd1164, Feb 13, 2008 IP
  4. wisdomtool

    wisdomtool Moderator Staff

    Messages:
    15,826
    Likes Received:
    1,367
    Best Answers:
    1
    Trophy Points:
    455
    #4
    You can if you have more than 1 IP in that machine, assign the IPs needed for IIS/PHP and use socket pooling to use Apache/PHP at the same port 80 using different IPs.
     
    wisdomtool, Feb 13, 2008 IP
  5. npd1164

    npd1164 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well, something is not quite right. While PHP now works just fine with Apache & MySql, PHP is now no longer being handled at all through my IIS.

    I installed PHP for Apache to a different directory but running Apache/PHP on Windows seems to require the php.ini file to be copied/installed in C:windows directory. This is fine but one cannot have two versions of the same file in the same directory. So , unless i'm missing something, it appears that running two versions of PHP, one for each server type, is a no-go?!? :confused:
     
    npd1164, Feb 13, 2008 IP