Solved

Is PHP for windows a good idea?

Posted on 2006-07-20
14
301 Views
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.
0
Comment
Question by:cntdtech
  • 3
  • 2
  • 2
  • +4
14 Comments
 
LVL 33

Expert Comment

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

Author Comment

by:cntdtech
ID: 17149715
ISAPI
0
 
LVL 7

Expert Comment

by:maUru
ID: 17150921
use apache :p never had any problems, i think the problem lies with IIS rather than php.
0
 
LVL 7

Accepted Solution

by:
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
0
 
LVL 40

Assisted Solution

by:RQuadling
RQuadling 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?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:cntdtech
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.
0
 
LVL 2

Assisted Solution

by:battletech
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.    
0
 
LVL 9

Assisted Solution

by:Rob_Jeffrey
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.
0
 
LVL 7

Expert Comment

by:maUru
ID: 17168138
fire the new developer

get one that does asp

problem solved.
0
 
LVL 9

Expert Comment

by:Rob_Jeffrey
ID: 17168304
Note to self: Never work for maUru.  :)
0
 
LVL 5

Assisted Solution

by:floorman67
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now