Results 1 to 6 of 6

Thread: Manually installing PHP on IIS

  1. #1

    Thread Starter
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032

    Manually installing PHP on IIS

    Ok, I've got IIS 5 mostly whipped into shape on Windows 2000 server, and I'm manually installing PHP from the binary zipped download - I made a D:\PHP folder and copied php4ts.dll and php4isapi.dll in there, and mapped *.php files to php4isapi.dll, and I can run phpinfo() thru IIS no problem so far.

    So now I need to get a php.ini going to override the defaults. Can you get the php.ini file to work outside of the WINNT folder? - I really would like to put it in D:\PHP (for security and consolidation issues), but it doesn't seem to have any effect in there. Thanks.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  2. #2
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    I have never installed it manual but what if you placed a shortcut called php.ini inside the WINNT folder that lead to the PHP/php.ini file?

    Would that bypass it?
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  3. #3
    scoutt
    Guest
    it doesn't, the ini is suppose to go into the system32 folder on NT.

    curious, is the php.exe in the d:\php folder as well?

    if you can get phpinfo() to print out on the screen then where is the in i file at? maybe there is a setting in IIS that says where the ini file is. not sure as the server may only access one folder for all ini files.

  4. #4

    Thread Starter
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Originally posted by scoutt
    it doesn't, the ini is suppose to go into the system32 folder on NT.
    Yeah, but I don't want to put it there - I'm beating IIS into shape, I might as well beat on PHP.

    Originally posted by scoutt
    curious, is the php.exe in the d:\php folder as well?
    Nope, only the two files I mentioned - I don't plan to run it as CGI, I don't think I need it.

    Originally posted by scoutt
    if you can get phpinfo() to print out on the screen then where is the in i file at? maybe there is a setting in IIS that says where the ini file is. not sure as the server may only access one folder for all ini files.
    phpinfo thinks its in C:\WINNT, but I think that's a compile time default. It also thinks extension_dir is c:\php4 and session.save_path is /tmp. I wonder if I add D:\PHP to the path...
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  5. #5
    scoutt
    Guest
    oh I see, I am not use to the module type. it seems like you could put it anywhere. try that and let us know what happens.

  6. #6

    Thread Starter
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Adding D:\PHP to the path doesn't, so I put it in System32 and it works fine - I guess I probably could get it the way I want by patching and compiling the PHP source code, but...

    I personally think that's a bad choice of file location for the php.ini. It is interesting that you can get php running by manually copying a mere two dlls and spend two seconds configuring IIS...
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width