PHP on IIS

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
alexsts
Forum Newbie
Posts: 2
Joined: Fri Aug 02, 2002 3:59 pm
Location: NY, US

PHP on IIS

Post by alexsts »

Hello,
sorry I am new in php and just wondering is it possible to run php on IIS?
I know that main purpose to use it on unix/lunix but can this be done?
How?
Reason is simple, I have complete site on php but since company decide to move from lunix to windows...
Of course I can, and actually already start, redelveloping on asp but as temporary solution I need old web site up and runing until new will be ready.
Thanks
8)
User avatar
andrec
Forum Newbie
Posts: 6
Joined: Wed Jul 31, 2002 10:53 am

Post by andrec »

Correct me if I am wrong!

Certainly, you can run PHP on IIS, as a CGI apps or SAPI apps. It is said that SAPI is still not as stable as CGI while SAPI has better performance wise speaking.

I am currently on the CGI side. I install the "easy" installer and modify some parameters in PHP.ini. However, I think you are not encouraged to do so for production server. I have yet to try out the ZIP package on php.net yet. Anyone who has tried the ZIP package? Can someone share his/ her thought with us on running the SAPI based PHP (with potential problem encountered)?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

it's quite simple, too. there's a install.txt that covers the installation procedure step by step. As far as I know you can't get i.e. the auth-information by cgi on IIS. So I ran php for a few month on IIS as extension dll without any serious problem.
User avatar
Zeceer
Forum Contributor
Posts: 136
Joined: Fri Aug 02, 2002 5:10 am
Location: Norway

Post by Zeceer »

I'm running PHP on IIS my self, and it's working great. Then I can test my scripts before uploading them to the web. Alle you need to do i download PHP form http://www.php.net and install it. Then you set .php in as a file ending in the IIS. Select php.exe as the file handeler and you're on! It can be a little difficult to move around the IIS inviroment, but look around a little and you quickly find where to configure the different options :-).
alexsts
Forum Newbie
Posts: 2
Joined: Fri Aug 02, 2002 3:59 pm
Location: NY, US

Thanks.

Post by alexsts »

Ok people,
Thank you all for response and was great help to me.
By the way on last response there was a question ASP what was that?
Is that a seriouse question or just a joke?
If you seriouse I can help you with that. :lol:
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

I think that's just a joke. Part of the whole 'PHP is better than ASP' argument :) .

Mac
Post Reply