[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Is PHP for windows a good idea?

Posted on 2006-07-20
14
Medium Priority
?
316 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
11 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 7

Accepted Solution

by:
maUru earned 200 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:Richard Quadling
Richard Quadling earned 200 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
 

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 200 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 200 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 200 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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.
Suggested Courses
Course of the Month18 days, 14 hours left to enroll

834 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