Php configuration in iis

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MrMob
    New Member
    • Jan 2010
    • 27

    Php configuration in iis

    i made a File with ..
    Code:
         <? 
           echo "HI WORLD ";
         ?>
    and Save the file to the Virtual Directory..

    and i browse this file --- it show like..

    The page cannot be found

    SEEMS like PHP has still NOT Configured Nicely....

    I Tried THIS...
    1. To unzip using Windows default Extract Wizard
      1. right click the zip file
      2. select Extract All...
      3. click Next
      4. browse to My Computer > SYSTEM(C:)
      5. with SYSTEM(C:) highlighted, click Make New Folder
      6. enter php
      7. press OK
      8. in the ...extract to this directory. field you should see C:\php
      9. press Next
      10. then press Finish
    2. To unzip using WinZip
      1. right click the zip file
      2. select Extract to...
      3. select SYSTEM(C:) in the Folders/drives: window
      4. with SYSTEM(C:) highlighted, click New Folder
      5. enter php
      6. press OK
      7. in the Extract To: field you should see C:\php
      8. press Extract


    Add c:\php to your Environment Variables
    1. right click 'My Computer' on desktop
    2. select 'Properties' -> 'Advanced'
    3. select 'Environment Variables' at the bottom of the screen
    4. in 'System variables', scroll down to select 'Path' and press 'Edit'
    5. add ;C:\php at the end of the 'Variable value:' field (variable values need to be separated by ;)
    6. press Ok, press Ok, press Ok


    Add the .php extension
    1. For IIS, add it to the Application Mappings.
      1. Start -> Control Panel -> (Performance and Maintenance) ->Administrati ve Tools -> Internet Information Services
      2. Expand your local computer by clicking the +
      3. Right click on Web Sites
      4. Select Properties
      5. Select the Home Directory tab
      6. Press the Configuration button on the lower right side of the screen
      7. Press the Add button
      8. Browse to C:\php
      9. Change Files of type: at the bottom of the screen to Dynamic Link Libraries (*.dll)
      10. Double click on php5isapi.dll or select php5isapi.dll and press Open
      11. Enter .php in the Extension field (be sure to enter the '.' before the php)
      12. Press OK
      13. Press Apply
      14. Press OK
      15. Press OK
      16. Close the Internet Information Services screen
    Last edited by Atli; Jan 20 '10, 09:48 AM. Reason: Added [code] tags.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hey.

    Did you restart IIS?
    If so, try restarting the computer. (Env-variables may need that)

    P.S.
    Is there a reason why you are using IIS?
    Generally, I would recommend using Apache with PHP.
    (Avoiding mixing M$ software with open-source software - especially open-source software that happens to be the main rival of other M$ software - is usually a good idea :P)

    Comment

    • MrMob
      New Member
      • Jan 2010
      • 27

      #3
      COZ i had a Problem Installing WAMP server Or ApACHE... Server.
      and the package i download had a Virus ... so it quite Bit Difficult to work with it..

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        Originally posted by MrMob
        COZ i had a Problem Installing WAMP server Or ApACHE... Server.
        and the package i download had a Virus ... so it quite Bit Difficult to work with it..
        Speaking as somebody who has used several versions of both IIS and Apache, you are a lot better of sticking with Apache.
        (It's free, open-source, practically designed to work with PHP, platform-independent, o and did I mention: it's free!)

        In the past I've heard some oddities regarding the WAMP package, so I would recommend XAMPP instead. I have yet to run into an error myself, using XAMPP.

        You should also note that some anti-virus applications can give you false-positives on some of these packages. After all, they contain various pieces of server software, which aren't just your ordinary client applications. They are generally a lot more involved in the OS, so some anti-virus software may confuse it with some sort of a virus attack. (Not to mention that XAMPP uses file names like "kill.exe", which isn't exactly trustworthy in the eyes of a virus-scanner :P)

        It is usually best to just turn of all anti-virus apps while installing stuff like this. They can cause all sorts of issues. (I've heard about issues concerning McAfee and Norton, in particular.)

        But rest assured, neither XAMPP nor the stand-alone Apache server is trying to infest your computer with viruses. You can check for yourself if you don't believe me. It is open-source, after all.

        Comment

        Working...