Running PHP in IIS

43 views
Skip to first unread message

Shalom

unread,
Dec 18, 2009, 6:57:09 PM12/18/09
to XMPie Interest Group
Is anyone running PHP within IIS? .NET makes my head explode, but I
can limp my way around PHP and would like to be able to use that as
well on our uProduce/web server.

Found this, looks promising:
http://php.iis.net/

Walter Van Waard

unread,
Dec 19, 2009, 1:41:43 PM12/19/09
to xmpie...@googlegroups.com, XMPie Interest Group
Hi shalom...:-),

Running php in iis is easy. Just download a distro that takes care of
the install, that is if you are a novice at installing this stuff...

For example: search for xampp or zend....

Good luck

Verstuurd vanaf mijn iPhone
Groeten,
Walter van waard

Op 19 dec 2009 om 00:57 heeft Shalom <shal...@gmail.com> het
volgende geschreven:\

> --
>
> You received this message because you are subscribed to the Google
> Groups "XMPie Interest Group" group.
> To post to this group, send email to xmpie...@googlegroups.com.
> To unsubscribe from this group, send email to xmpie-users...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/xmpie-users?hl=en
> .
>
>

Timothy Perrett

unread,
Dec 20, 2009, 4:23:09 AM12/20/09
to xmpie...@googlegroups.com
If you want to run PHP with IIS, I would use this installer: http://is.gd/5uCFq and follow these instructions to get it working: http://is.gd/5uCGM

You may also be interested in this: http://is.gd/5uCI6 - I found a very specific corner case where by IIS reports memory leaks and you need to tune the order of module loading... yes, welcome to IIS and PHP ;-)

I really must get around to writing a little ICP sample with PHP and stuffing it up on the group as countless people have asked me about it now. Perhaps i'll find some time this holiday season.

@walter:

Sorry walter, but I have to disagree. Do not attempt to run Apache next to IIS unless you:

a) really know what your doing
b) have read my blog on the subject ( http://is.gd/5uCzt )

As you can see from my blog post, you need to fully understand the way IIS utilises IP address binding etc before trying to run them in parallel - its possible of course, but many many people get into a world of pain with it as IIS is generally the worst web server in the world (tm) and has some "unique" behaviour patterns.

BTW, searching for "zend" in google wont really help the OP because Zend is now the company who actually write the PHP internals and manage the runtime optimiser. They also write a framework called "ZendFramework" for web apps. I've not used it, but its reportedly not too bad.

So there you have it - does that help?

Cheers, Tim

blog: http://blog.getintheloop.eu/
lift: http://liftweb.net/
akka: http://letitcrash.com/

Erik Zaadi

unread,
Dec 20, 2009, 4:36:00 AM12/20/09
to xmpie...@googlegroups.com
Shalom and all,

I definetly agree with Tim on the fact that running Apache side by side on a Windows machine wouldn't be the best thing.
If you want apache, go with a linux box.

However, Php plays rather nicely with IIS7.
You can install php, mySQL drivers etc with the web platform installer (http://www.microsoft.com/Web/)

This is of course if your web server (not uProduce) is on a windows machine with IIS7 (or 7.5).

Cheers,

Erik

2009/12/20 Timothy Perrett <tim...@getintheloop.eu>



--
Erik Zaadi

Timothy Perrett

unread,
Dec 20, 2009, 5:03:48 AM12/20/09
to xmpie...@googlegroups.com
Good call Erik... PHP on linux would out-perform windows any day of the week because of epol i/o and eventing etc under the hood. I actually run nearly all my xmpie apps on a linux front end, usually on the JVM and they out-perform the same application deployed on Windows as a service every time. Go linux! lol.

Interesting link about the platform installer - is that only for "microsoft web server" installations or can any server run it? I know MS are shipping a set distro labeled for web now - quite knows what it does differently as its the same architecture underneath. 

Cheers, Tim

wvwaard

unread,
Dec 20, 2009, 11:24:34 AM12/20/09
to XMPie Interest Group
Hi Tim,

I always leave the apache alone in those distro's and yes you are
right you have to know
what you are doing....but isn't that with every setup you have to
do ;-) ?

De ZendFramework is really good we use it on our external servers.
Allthough tweaking and installing it yourself is always best. But as i
could not make up
if Shalom is a novice or advanced user , i came up with the distro
Idea...Stupid
of me that Xampp installes Apache by default...sorry for that one.

Our Uproduce btw still runs on good old IIS 6 and is stabel enought
for us.....

On 20 dec, 10:23, Timothy Perrett <timo...@getintheloop.eu> wrote:
> If you want to run PHP with IIS, I would use this installer:http://is.gd/5uCFqand follow these instructions to get it working:http://is.gd/5uCGM
>
> You may also be interested in this:http://is.gd/5uCI6- I found a very specific corner case where by IIS reports memory leaks and you need to tune the order of module loading... yes, welcome to IIS and PHP ;-)


>
> I really must get around to writing a little ICP sample with PHP and stuffing it up on the group as countless people have asked me about it now. Perhaps i'll find some time this holiday season.
>
> @walter:
>
> Sorry walter, but I have to disagree. Do not attempt to run Apache next to IIS unless you:
>
> a) really know what your doing
> b) have read my blog on the subject (http://is.gd/5uCzt)
>
> As you can see from my blog post, you need to fully understand the way IIS utilises IP address binding etc before trying to run them in parallel - its possible of course, but many many people get into a world of pain with it as IIS is generally the worst web server in the world (tm) and has some "unique" behaviour patterns.
>
> BTW, searching for "zend" in google wont really help the OP because Zend is now the company who actually write the PHP internals and manage the runtime optimiser. They also write a framework called "ZendFramework" for web apps. I've not used it, but its reportedly not too bad.
>
> So there you have it - does that help?
>
> Cheers, Tim
>
> blog:http://blog.getintheloop.eu/
> lift:http://liftweb.net/
> akka:http://letitcrash.com/
>
> On 19 Dec 2009, at 18:41, Walter Van Waard wrote:
>
>
>
> > Hi shalom...:-),
>
> > Running php in iis is easy. Just download a distro that takes care of  
> > the install, that is if you are a novice at installing this stuff...
>
> > For example: search for xampp or zend....
>
> > Good luck
>
> > Verstuurd vanaf mijn iPhone
> > Groeten,
> > Walter van waard
>

> > Op 19 dec 2009 om 00:57 heeft Shalom <shalom...@gmail.com> het  


> > volgende geschreven:\
>
> >> Is anyone running PHP within IIS? .NET makes my head explode, but I
> >> can limp my way around PHP and would like to be able to use that as
> >> well on our uProduce/web server.
>
> >> Found this, looks promising:
> >>http://php.iis.net/
>
> >> --
>
> >> You received this message because you are subscribed to the Google  
> >> Groups "XMPie Interest Group" group.
> >> To post to this group, send email to xmpie...@googlegroups.com.
> >> To unsubscribe from this group, send email to xmpie-users...@googlegroups.com
> >> .

> >> For more options, visit this group athttp://groups.google.com/group/xmpie-users?hl=en


> >> .
>
> > --
>
> > You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
> > To post to this group, send email to xmpie...@googlegroups.com.
> > To unsubscribe from this group, send email to xmpie-users...@googlegroups.com.

> > For more options, visit this group athttp://groups.google.com/group/xmpie-users?hl=en.- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

Timothy Perrett

unread,
Dec 20, 2009, 5:50:15 PM12/20/09
to xmpie...@googlegroups.com

Hey Walter

> I always leave the apache alone in those distro's and yes you are
> right you have to know
> what you are doing....but isn't that with every setup you have to
> do ;-) ?

I agree - however, Microsoft want to dumb everything down to the point of wizard computing for all... someday they'll realise that is a flawed model!

> Our Uproduce btw still runs on good old IIS 6 and is stabel enought
> for us.....

My beef with IIS is more that it can only do one thing - that is, its generally ok if your working 100% in Microsoft technology, but it pretty much sucks ass when you try to integrate or layer anything else. In my experience, one is usually working with a more vibrant array of technologies than just .NET so the single solution approach falls down somewhat. The fact that a simple task like reverse proxying is not built into the product is astonishing - nearly everyone other web server i can think of manages to do that as a basic task.

Anyway, thats my rant over - sorry to the OP for hijacking your thread ;-)

Cheers, Tim


Walter Van Waard

unread,
Dec 20, 2009, 6:17:51 PM12/20/09
to xmpie...@googlegroups.com
It's not my fault ...haha i was just trying
To help our good fellow shalom :-)
Anyway luckely for microsoft we do not all need apache for stable
website hosting....for the not to faint hearted we just tweak the
metabase and voila we have some extra hidden features....
Sleep tight until the next episode haha

Verstuurd vanaf mijn iPhone
Groeten,
Walter van waard

Op 20 dec 2009 om 23:50 heeft Timothy Perrett
<tim...@getintheloop.eu> het volgende geschreven:\

Shalom

unread,
Dec 21, 2009, 11:55:39 AM12/21/09
to XMPie Interest Group
Thanks gents for all the info. I'll give it a shot and let you know
how badly I muck it up. My first thought was to run Apache side-by-
side with IIS, but a co-worker said that was not the best route and
outlined the same issue's Tim described. Part of our problem is that
our uProduce and web server are one and the same. The universities
primary web hosting is still classic ASP (pre .NET). They are moving
to a LAMP environment, but it's been the pipeline for 18+ months, and
I'm sick and tired of waiting. There is such a thing as over-thinking
a project ...

For local web development I use MAMP, which gives me a fully
functional web server in about 15 seconds. Why can't ms products be
this easy to use?

On Dec 20, 4:17 pm, Walter Van Waard <wvwa...@gmail.com> wrote:
> It's not my fault ...haha i was just trying
> To help our good fellow shalom :-)
> Anyway luckely for microsoft we do not all need apache for stable  
> website hosting....for the not to faint hearted we just tweak the  
> metabase and voila we have some extra hidden features....
> Sleep tight until the next episode haha
>
> Verstuurd vanaf mijn iPhone
> Groeten,
> Walter van waard
>
> Op 20 dec 2009 om 23:50 heeft Timothy Perrett  

> <timo...@getintheloop.eu> het volgende geschreven:\

Timothy Perrett

unread,
Dec 21, 2009, 3:52:28 PM12/21/09
to xmpie...@googlegroups.com
In your configuration, just use the IIS + PHP installer and you'll be away.

Cheers, Tim

Reply all
Reply to author
Forward
0 new messages