Is PHP for windows a good idea?

Posted on 2006-07-20
Last Modified: 2013-12-13
I had a web site on a windows server that was working fine before re-tooling with PHP. Now every time a Credit Card is processed the customers get an hourglass. After a few are processed, IIS needs restarting. Should I move PHP off the windows server onto a UNIX server? I really don't care what platform it runs on. I'm not really looking for Microsoft/PHP evangelists to start preaching a sermon. I just want the best technical information available with quantifiable reasons to back up opinions.
Question by:cntdtech
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +4
LVL 33

Expert Comment

ID: 17148408
Are you using the CGI binary or the ISAPI module?  It seems there are lots of bug reports about problems with ISAPI.

Author Comment

ID: 17149715

Expert Comment

ID: 17150921
use apache :p never had any problems, i think the problem lies with IIS rather than php.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Accepted Solution

maUru earned 50 total points
ID: 17150931
however, unix is a much better platform (in general) to host web servers, more reliable, lower memory/cpu footprints, less crashes etc.

IIS should only be used (imo) if you are going to be using ASP
LVL 40

Assisted Solution

by:Richard Quadling
Richard Quadling earned 50 total points
ID: 17152068
The hour glass is probably the web server holding the user up.

So, you can try swapping IIS for Sambar or Apache (both free). PHP is very well supported by both of these web servers on Windows.

Also, the Credit Card processing code could be flawed.

You say there was "re-tooling". How much code was written for PHP?

You would need to use some system analysis tools (System Internals Process Explorer for one!) to see what is holding things up.

There are many configuration options available within IIS, you may have some sort of limiting in place which is putting a cap on the amount of activity. You may be accessing a slow DB system. The CC validation service could be playing up or be busy.

What caused you to move from, I assume, ASP to PHP? Where there speed/hang issues there also?

Author Comment

ID: 17153874
new webmaster/designer wanted to program in PHP. Legacy still in use e-commerce site built in ASP. Leased Managed Server is Windows IIS.

So the front end of the site is Flash in PHP. The e-commerce section was re-skinned to look like the front end but the guts remain ASP.

Assisted Solution

battletech earned 50 total points
ID: 17154328
I have had problems in the past with IIS caching issues with asp and php.  Sounds though that your problem might be going between the apps.  If you were all asp or php it wuld be easier to troubleshoot.  What version og PHP are you using?  What DB are you using?  Is it feasable for you to convert legacy asp into php?  This might stream line things a bit.  Depending on how you are doing it, use of sessions accross both apps ect.  IIS is a resource hog when it comes to those things, along with ASP and you have memory management issues.  I have had good success with just php and IIS but I am not using multiple apps.  Just php/MySQL.    

Assisted Solution

Rob_Jeffrey earned 50 total points
ID: 17155264
The problem you are faced with is finding out where the data lag is occuring.
Working in a mixed environment like you are is never fun - but is necessary at times.
How are your credit card payments being handled?  Are you passing the user from your server to another and it's hanging on the way back?
The page passing - is it PHP or ASP?  The process that is hanging (After a few are processed, IIS needs restarting) is it IIS or the PHP module?
I agree with battletech - converting all the pages to one or the other is a good idea.  If you are running all PHP then you will be free to run Apache on the window box or go with a Linux box or whatever.

Expert Comment

ID: 17168138
fire the new developer

get one that does asp

problem solved.

Expert Comment

ID: 17168304
Note to self: Never work for maUru.  :)

Assisted Solution

floorman67 earned 50 total points
ID: 17174230
the very best solution in my opinion is a unix OS/apache/php.

by far the most secure, most productive, and least resource consuming OS around, with the highest uptime.

after the set up, the rest is a breeze.

I have 3 unix servers that havent needed rebooting for months.

If you arent familiar with pure unix OS just do some research.

well worth it in the long run.

a nice by product is no MS exploits and constant upgrading/updating, as well as much better security.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question