Windows server: PHP 5.2 might be stable under IIS!

Windows server: PHP 5.2 might be stable under IIS!

Dan Marsden發表於
Number of replies: 19
Core developers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片 Plugins guardians的相片 Testers的相片 Translators的相片

I've been testing PHP 5.2 on my Win2K3/IIS 6 test box over the past week and I don't seem to have the issues with w3svc crashing.......

Is anyone else running PHP 5.2 and finding it stable? - especially people who have had issues with versions post 5.1.2?

would be nice if the bug in PHP has finally been fixed!

微笑

Dan

評比平均分數: -
In reply to Dan Marsden

Re: Windows server: PHP 5.2 might be stable under IIS!

Ross Stanbridge發表於

We are running PHP 5.2 under 2k3 with IIS 6.  We have been running it for about 3 weeks now without a single incident.

Ross

In reply to Ross Stanbridge

Re: Windows server: PHP 5.2 might be stable under IIS!

Chris Jung發表於

Hi Ross,

I am running PHP 5.2 under 2K3 with IIS 6 and XP.

PHP works fine with not 2K3 but XP even I tried so many ways.

PHP5isapi.dll is assigned for ISAPI, but php page cannot be displayed under 2K3. This makes me big in trouble for full week.

Could you let me know how to solve it?

I am sorry if I took your time...

Chris

jkstree@gmail.com

Toronto

In reply to Dan Marsden

Re: Windows server: PHP 5.2 might be stable under IIS!

Lael ...發表於
Dan,

Any further news? Does it seem ready for production servers?

Lael
In reply to Dan Marsden

Re: Windows server: PHP 5.2 might be stable under IIS!

Mario Camilleri發表於
I've been running it as an ISAPI filter under Win 2K3 server/ IIS6 for well over a month without a single hitch. To be honest however, I have not gone out of my why trying to break it...
In reply to Mario Camilleri

Re: Windows server: PHP 5.2 might be stable under IIS!

Jason Browne發表於

Hi there...

I've been having errors with php 5.2.1 and IIS 6. See here...

http://moodle.org/mod/forum/discuss.php?d=65409

Any ideas please? Should I look at going back to 5.1.2, or should I just put up with it. I'm finding all this talk of different versions of software ( php, moodle, iis, mysql ) and settings ( cgi, isapi, php accelerators ) quite confusing at this stage...

J.

In reply to Dan Marsden

Re: Windows server: PHP 5.2 might be stable under IIS!

Dennis Flynn發表於
I had previously been using 5.1.16.  In my Event Logs, I had been seeing worker process warnings, and errors whenever the worker process was scheduled to recycle.  I upgraded to 5.2.1 after seeing this post, and for 24-hours have not seen any warnings or errors.
In reply to Dennis Flynn

Re: Windows server: PHP 5.2 might be stable under IIS!

Jon Witts發表於
Plugin developers的相片 Testers的相片
Hi there, have picked up on this thread a bit late; but here is my input for what it is worth.

When I first upgraded to PHP 5.2 I got all sorts of errors in IIS with these errors being returned: "PHP has encountered an Access Violation at 7C8224B2"

IIS had to be restarted completely to get things up and running again.

Anyhow, my server died a while back and I reinstalled the whole server again, this time with W2K3 R2 edition and I have not had a single error from PHP since...

Looks like the fault may have been with M$ IIS and not PHP... thoughtful
In reply to Jon Witts

Re: Windows server: PHP 5.2 might be stable under IIS!

Dan Marsden發表於
Core developers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片 Plugins guardians的相片 Testers的相片 Translators的相片

Hi Jon,

did you install an even later version of 5.2.x on the rebuild? - I did have a few issues with 5.2.1 and 5.2.2 which "seem" to be ironed out with 5.2.3

微笑

Dan

In reply to Dan Marsden

Re: Windows server: PHP 5.2 might be stable under IIS!

Jon Witts發表於
Plugin developers的相片 Testers的相片
Hi Dan,

Good question! I have just had a look into the versions I was running before the rebuild and what I am running now, and it appears I had 5.1.6 running before but have gone up to 5.2.0 after the rebuild...

So would you recommend me holding on upgrading PHP for a while then?

Jon
In reply to Jon Witts

Re: Windows server: PHP 5.2 might be stable under IIS!

Dan Marsden發表於
Core developers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片 Plugins guardians的相片 Testers的相片 Translators的相片

ahh - that explains it - 5.2 fixed some issues found in php under iis since 5.1.3  - if it's working for you, then I'd be careful upgrading again - I'd keep a copy of 5.2.0 ready to go if the upgrade failed - I do this by renaming the existing c:\php folder to something like php5.2.0 and then put the new version in place of c:\php - then if you start to have issues, you can just rename the directories again, do an iisreset and you're set.

微笑

Dan

In reply to Dan Marsden

Re: Windows server: PHP 5.2 might be stable under IIS!

Jon Witts發表於
Plugin developers的相片 Testers的相片
Cheers Dan.

I will bear that in mind next time I do an upgrade!

Will let you know how it goes.

Jon
In reply to Dan Marsden

Re: Windows server: PHP 5.2 might be stable under IIS!

Phil Rand發表於
I'm running Moodle 1.8.1+, PHP 5.2.3, Win2k3 SP2, IIS, ISAPI, MySQL 5.0.40, and I'm seeing IIS crashes, like this one:
Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 7/11/2007
Time: 3:25:34 PM
User: N/A
Computer: MOODLE-TEST
Description:
Faulting application w3wp.exe, version 6.0.3790.3959,
faulting module w3core.dll, version 6.0.3790.3959,
fault address 0x000201b4.

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

Data:
0000: 41 70 70 6c 69 63 61 74 Applicat
0008: 69 6f 6e 20 46 61 69 6c ion Fail
0010: 75 72 65 20 20 77 33 77 ure w3w
0018: 70 2e 65 78 65 20 36 2e p.exe 6.
0020: 30 2e 33 37 39 30 2e 33 0.3790.3
0028: 39 35 39 20 69 6e 20 77 959 in w
0030: 33 63 6f 72 65 2e 64 6c 3core.dl
0038: 6c 20 36 2e 30 2e 33 37 l 6.0.37
0040: 39 30 2e 33 39 35 39 20 90.3959
0048: 61 74 20 6f 66 66 73 65 at offse
0050: 74 20 30 30 30 32 30 31 t 000201
0058: 62 34 b4
This is on a test server with very light usage. I've been seeing probably close to one crash a day. Yesterday I created a course just so I could use the wiki for another project, and had a few crashes over maybe 2 hours working on a project outline. I was almost certainly the only user during that time.
There's a possibly related bug at php.net, http://bugs.php.net/bug.php?id=38111 , which has been suspended for lack of posted tracebacks. I've tried but haven't (yet) succeeded in producing the tracebacks.

I don't mean to whine. Just providing the data point.

Are others seeing this? What versions of PHP are stable with IIS and ISAPI on Win2k3 SP2?

In reply to Phil Rand

Re: Windows server: PHP 5.2 might be stable under IIS!

Dennis Flynn發表於
It's been awhile now, so I'm not sure if it was the exact same problem, but w3wp.exe was crashing daily on me too when I was running 5.1.x. After upgrading to 5.2.1, the crashes stopped. HTH
In reply to Phil Rand

Re: Windows server: PHP 5.2 might be stable under IIS!

Thomas Haynes發表於
We have had problems with IIS6 and php isapi 5.2.3 on our Win2K3 SP2 server.

There were memory usage problems and three crashes under moderate usage once school started.

We moved back to 5.2.1 and the problems went away. We ran 5.2.1 all last year, and this is where we are likely to stay in production for a while.
In reply to Thomas Haynes

Re: Windows server: PHP 5.2 might be stable under IIS!

Mikael Ekblom發表於
Yep, I will not deviate from 5.2.1 on our production server for quite a while...微笑

Never had a more stable version of php.
In reply to Mikael Ekblom

Re: Windows server: PHP 5.2 might be stable under IIS!

Mark Hilliard發表於
Mikael,
You seem to have a stable Windows Moodle with IIS would you mind posting what versions of the major Moodle apps you are using that are stable together?

Version Windows Op. Sys: ?

SQL DB type and ver: ?
PHP version: php 5.21 obviously
IIS version (or webserver vers): ?

Also if you could share, some idea of the load or how many concurrent users is your system supporting?

We have been doing a long-term test (many months) trying to get Moodle stable and supported using Windows 2003 with MSSQL and even though we have tried about 12-15 combinations of Windows, MySQL, Apache, PHP, we haven't found a combination we would trust for even modest use Moodle sites.
Thanks for any info you might share
Mark

In reply to Mark Hilliard

Re: Windows server: PHP 5.2 might be stable under IIS!

Mikael Ekblom發表於
Hi,

sure, I'll specify the list below:

OS: windows server 2003 standard edition sp2 running as a virtual machine on ESX 3.0.1, configured with 2* 2 Ghz Intel xeon 5130:s and 2 Gb of RAM
Db:Mysql 5.0.26
Php:5.2.1 running as ISAPI
Webserver:IIS 6 Moodle running within its own application pool.The application pool is set to start max 4 worker processes.

During stress testing I have concluded that this configuration will cope with about 130 concurrent users, with page load times around 5 secs then. Within a day we have about 1000 + distinct users logging in.

Php is set to use 16 Mb per script.We had some initial problems when allow_call_time_pass_by_reference was set to "On" in php.ini. When we set this to "Off" everything worked fine.So far...微笑

I installed php manually, as I want full control of this process.

Mysql_max_links is set to 100. Mysql was installed via the installer. We have never experienced problems on the Mysql side.

Something like this!

Mikael

In reply to Mikael Ekblom

Re: Windows server: PHP 5.2 might be stable under IIS!

Mark Hilliard發表於
Mikael,
Thank you so much for your generous (and detailed) response!
This is exactly what I have been seeking now for many months!

One or two final questions for you as you seem to have built almost the exact same Moodle server we plan to build soon...

1. Did you ever try this setup with a MSSQL backend database for Moodle?

2. Finally, we have been reading about PHP used as a FastCGI process instead of the ISAPI DLL. Are you, or have you, considered using this for PHP?

I am guessing you will say "if it works now I'm not going to break it - wink"
We are interested in this as a possible performance tool...

Again, Thanks for sharing! I will try to post the results of our next windows test with MSSQL here later.

Mark
Minnesota, USA
In reply to Mark Hilliard

Re: Windows server: PHP 5.2 might be stable under IIS!

Mikael Ekblom發表於
Hi mark,

1. No, I never really went down that path. I do have experience from MSSQL from the Blackboard world but...It's enough that I'm running Moodle on a Windows OS. No more proprietary software for me...微笑

2. I've never had to test this one as I managed to get the ISAPI stable. But, I might test it out on our development server, which basically is a clone of our production server. But, never break anything that works...微笑

Mikael

Åbo, Finland