Click to See Complete Forum and Search --> : PHP cgi or isapi?


Anon
06-29-2000, 09:40 AM
Hi,

While reading the readme that's included with PHP, they say it's more safe to use PHP in it's cgi mode.

I now have PHP running by making changes to IIS Admin (selecting php4isapi.dll) as explained in the readme files included with php4.

However, they don't explain how to use the CGI mode, perhaps a pretty dumb question but how do I not use php4isapi.dll and use the CGI mode on Windows NT with IIS4 ?

Anon
06-30-2000, 04:39 AM
In the website's property sheet under Home Directory > Application Settings, press the <Congigure...> button.

On the App Mappings tab, click on <Add...>.

Under Executable, enter:
<pre>path\to\php\php.exe %s %s</pre>

under Extension, enter the extension you would like to use (ex. <pre>.php</pre>)

Leave the other settings at default and you are all set - but don't forget to remove the ISAPI Filter entry!

Have fun!

Brett

Anon
06-30-2000, 11:04 AM
Wow... thanks man!!

I had fun alright ;-) It's working perfectly and I'm a happy camper now!

Wish I had stumbled upon this forum earlier could have saved me some nightmares...