/    Sign up×
Community /Pin to ProfileBookmark

COM surrogate error using PHP with IIS

I have recently installed PHP (latest version 5.1.6) on my laptop (XP pro SP2, IIS 5.1), and every time I call a .php page from a browser (IE or Firefox) using [url]http://localhost/test.php[/url] the page displays fine, but a couple of seconds later I get one of MSFT’s infamous message dialogs saying “COM surrogate has encountered a problem and needs to close. We are sorry for the inconvenience.” Then it prompts me to send an error report to MSFT (which I have ignored so far). If I investigate the error report text further I find that the fault lies with “dllHost.exe ver.5.1.2600.2180, faulting module unknown”.

Under ‘System Events’ I get the message “Out of process application /LM/W3SVC/1/ROOT terminated unexpectedly”. File name W3SVC.dll

If I refresh the page I get a server error “The remote procedure call failed and did not execute.”, but when I refresh again the .php page displays fine, but the “COM surrogate…” error dialog appears again, and so on. It’s a real pain.

I guess the problem lies with IIS configuration, but I have no idea where to start. The default website has the .php extension associated with c:phpphp5isapi.dll, ALL methods selected.

ASP pages seem to display ok, without any problems (classic, not .net, although I do have the .net framework installed on the pc).

Any help would be appreciated.

Alan

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @aharrisreid spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...