473,387 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

PHP stopped working on with IIS

Hi

I have a server running PHP 5.2.3 Isapi module with 64 bit IIS 6 on a windows 2003 server.

This has been working fine for several weeks.

Overnight, it has stopped processing php, it will still display html pages but php pages are just rendered as an html page header and no content, even a simple hello_world script that just shows a couple of thumbnails and then runs phpinfo();. There have not been any changes to code or config overnight (that I know of).

I've looked at what I would consider the usual stuff and just can't see what's going on. The windows logs arent showing anything useful.

Has anybody else seen this? or can somebody tell me where I might find some useful information to get the server back to normal.

Thanks

Paul
Jun 30 '07 #1
12 5368
kovik
1,044 Expert 1GB
You checked the server error logs?
Jul 1 '07 #2
Hi

Yes went through system, application and security logs. Nothing there that matches the time that this happened.

Do you think it's worth re-installing php on the server ?

Thanks

Paul
Jul 1 '07 #3
kovik
1,044 Expert 1GB
Possibly.

Who else has access to it? The rendering of PHP files is handled through server settings that use the PHP DLLs to parse the code into web pages. Check your configuration for anything with the word "php" in it and see what you find.
Jul 1 '07 #4
At the moment, nobody else uses it.

I have now re-installed iis6 and re configured to use PHP ISAPI.

It is back to exactly what I had before which is when I display a php only page I get...

Expand|Select|Wrap|Line Numbers
  1.  
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  3. <HTML><HEAD>
  4. <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
  5. <BODY></BODY></HTML>
  6.  
  7.  
nothing between the php tags on the page is displayed.

Here is the code for my page...

Expand|Select|Wrap|Line Numbers
  1.  
  2. <?php
  3. //phpinfo();
  4. session_start();
  5. require 'functions.php';
  6. $sess = session_id();
  7. $this_path =session_save_path();
  8. $this_session = $this_path."\sess_".$sess;
  9. echo $this_session."<br>";
  10. print_r ($_SESSION);
  11. echo "hello world<br>";
  12.  
  13. dateSelect($sel_day,$sel_month,$sel_year);
  14. echo "<br><br><img src= ../user_images/2/koi_thumbs/2_3_20060919232737_736257985.jpg border=\"0\"></a></center>";
  15. echo "<br><br><img src=../user_images/2/koi_thumbs/2_3_20060919232737_736257985.jpg border=\"0\"></a></center>";
  16. echo "<br><br><img src=../user_images/2/koi_thumbs/test_image.jpg border=\"0\"></a></center>";
  17. echo "<br><br><img src=../user_images/test_image.jpg border=\"0\"></a></center>";
  18. phpinfo();
  19. ?>
  20.  
  21.  
I know in the end this will be simple but right now I just cannot see what's going on.

Paul
Jul 1 '07 #5
kovik
1,044 Expert 1GB
It's not the code you should be concerned about. It's the server configuration. Again, look at the lines in the configuration file that have "php" in them and tell me what they say.
Jul 1 '07 #6
Okay

Here are the bits from MetaBase.xml containing references to php

Expand|Select|Wrap|Line Numbers
  1.  
  2. ScriptMaps=".asa,C:\WINDOWS\system32\inetsrv\asp.dll,5,GET,HEAD,POST,TRACE
  3. .asp,C:\WINDOWS\system32\inetsrv\asp.dll,5,GET,HEAD,POST,TRACE
  4. .cdx,C:\WINDOWS\system32\inetsrv\asp.dll,5,GET,HEAD,POST,TRACE
  5. .cer,C:\WINDOWS\system32\inetsrv\asp.dll,5,GET,HEAD,POST,TRACE
  6. .idc,C:\WINDOWS\system32\inetsrv\httpodbc.dll,5,GET,POST
  7. .php,C:\php\php5isapi.dll,5,GET,POST,HEAD
  8. .shtm,C:\WINDOWS\system32\inetsrv\ssinc.dll,5,GET,POST
  9. .shtml,C:\WINDOWS\system32\inetsrv\ssinc.dll,5,GET,POST
  10. .stm,C:\WINDOWS\system32\inetsrv\ssinc.dll,5,GET,POST"
  11. WAMUserName="IWAM_S15258006"
  12.  
  13.  
Expand|Select|Wrap|Line Numbers
  1.  
  2. WebSvcExtRestrictionList="1,C:\WINDOWS\system32\inetsrv\httpodbc.dll,0,HTTPODBC,Internet Data Connector
  3. 1,C:\WINDOWS\system32\inetsrv\ssinc.dll,0,SSINC,Server Side Includes
  4. 1,C:\WINDOWS\system32\inetsrv\asp.dll,0,ASP,Active Server Pages
  5. 1,C:\WINDOWS\system32\bitssrv.dll,0,BITSEXTS,BITS Server Extensions
  6. 1,C:\php\php5isapi.dll,1,,PHP ISAPI
  7. 0,*.exe
  8. 0,C:\WINDOWS\system32\inetsrv\httpext.dll,0,WEBDAV,WebDAV
  9. 0,*.dll"
  10.  
  11.  
Expand|Select|Wrap|Line Numbers
  1.  
  2. <IIsFilter    Location ="/LM/W3SVC/521478854/filters/PHP ISAPI"
  3.         FilterDescription="ISAPI"
  4.         FilterFlags="NotifyPreProcHeaders | NotifyAuthentication"
  5.         FilterPath="C:\php\php5isapi.dll"
  6.         FilterState="1"
  7.     >
  8.  
  9.  
Expand|Select|Wrap|Line Numbers
  1.  
  2. <IIsFilters    Location ="/LM/W3SVC/Filters"
  3.         AdminACL="49634462f0000000a4000000400000009f0e4425a1136d80d43dbfdafba3523aaa9202844b51aa85a30a7e2b90ce4cc28846c4b406d9d50d0772a1a012e95c0f06cd46a9e767738858a7b742a840ac3d06e07fbc2641f6c77033b1e09231a2db52ff115dca21f9e724ebf23cfc264251fc787c884527d50a9fc1478b84d795e3ae5e32665e26d93be913d06558c9445f9aedfcd374fcab4bf2a325a006910c18fc8185f91389b97369f83d1e44851bb239bfae0c00000000ea22ddb0d4e225a92e358cd1539321b81bd482a4ea0f5407d91de36e3af5bf8321430f68635652b9dc66f558959c68d3ac038255a1f33a0367f74b4693e54728"
  4.         FilterLoadOrder="PHP5 ISAPI"
  5.     >
  6. </IIsFilters>
  7.  
  8.  
Expand|Select|Wrap|Line Numbers
  1.  
  2. <IIsFilter    Location ="/LM/W3SVC/Filters/PHP ISAPI"
  3.         FilterFlags="0"
  4.         FilterPath="C:\php\php5isapi.dll"
  5.         FilterState="4"
  6.     >
  7. </IIsFilter>
  8. <IIsFilter    Location ="/LM/W3SVC/Filters/PHP5 ISAPI"
  9.         FilterDescription="ISAPI"
  10.         FilterFlags="NotifyPreProcHeaders | NotifyAuthentication"
  11.         FilterPath="C:\php\php5isapi.dll"
  12.         FilterState="1"
  13.     >
  14. </IIsFilter>
  15.  
  16.  
Hope this makes sense

Paul
Jul 1 '07 #7
kovik
1,044 Expert 1GB
And PHP is in c:\php?

Try this website: VisualWin.com

They've got a lot of resources on IIS.
Jul 1 '07 #8
Hi

Yes, PHP is in c:\php.

I used the installation instructions here...

http://www.peterguy.com/php/install_IIS6.html

It's fixed for now (or more accurately worked around).

I have changed the setup to be CGI rather than ISAPI.

I'll have to sort this out properly at some time but it's back in action for now.

Thanks

Paul
Jul 1 '07 #9
kovik
1,044 Expert 1GB
Hi

Yes, PHP is in c:\php.

I used the installation instructions here...

http://www.peterguy.com/php/install_IIS6.html

It's fixed for now (or more accurately worked around).

I have changed the setup to be CGI rather than ISAPI.

I'll have to sort this out properly at some time but it's back in action for now.

Thanks

Paul
Well, as long as it's local, CGI won't hurt anybody. Otherwise, you'll need to deal with that ASAP.
Jul 1 '07 #10
Well, it gets odder and odder.

Today I have reset back from CGI to ISAPI and it works just fine.

There does seem to be something odd and nasty around using 32 bit modules with the 64 bit version of IIS 6. even with the WOW compatibility on and the

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

command which is supposed to enable 32 bit and 64 bit modules to be run at the same time.

So I have a work around if / when it happens again which is to change to CGI mode, run a few pages through, restart IIS and then reset back to ISAPI.

Paul
Jul 2 '07 #11
mfeog
2
I have had the same issue. PHP just stopped working on my server after about 2 weeks of working fine. I tried the cgi solution suggested but that has made no difference. Anyone else with any ideas? Would really appreciate the help
Jul 6 '07 #12
mfeog
2
Hi, just an update on this. Installed an earlier version of php5 (5.1.6) and got the server back up and running. Today the same thing has happened again. No amount of reinstalling seems to be working this time
Jul 19 '07 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Bill | last post by:
I used to be able to run the following ASP code on our corp machine (W2K Server Edition and IIS-5) and successfully send a net-msg to anyone on our intranet. Last week it stopped working... and...
4
by: Niel | last post by:
Hello friends, I am not sure if i am posting to the correct group but if anyone has an idea about this and the possible solution or the link to that solution then please let me know We have out...
12
by: Beer | last post by:
Hello Everyone, We have been getting the EventID 7031 errors ever since we installed SP 3. We have been searching for any possible solution, but not much luck. We are running Windows 2000...
4
by: Dag Sunde | last post by:
I've been working on a system that have been running for the last couple of years, but stopped working on my dev. machine after reinstalling WinXP yesterday. To my knowledge, it have been set up...
2
by: Dag Sunde | last post by:
I have the following code fragment in one of my pages: if (typeof document.getElementById('myApplet').getTableAsSDV != 'undefined') { rowBuffer =...
6
by: Susan Bricker | last post by:
Hi. Does anyone have a clue why my mouse wheel stopped working while I was working on the VB behind a form in MS/Access? I would swear that the mouse wheel was working a short time ago. I've...
4
by: vzaffiro | last post by:
Our Development Server (windows 2003, framework 1.1) was working great for months, then one day all the client side validators stopped working. Only the server side validation is working. Our code...
4
by: JohnB111 | last post by:
Hi Environment: Windows XPPRO SP2 IIS 5.1 AVG Anti Virus (Not script Blocking) The following code used to work perfectly on my local development machine and still does on my web server.
2
by: Rico | last post by:
Hello, I have an ASP.net application, it's a third party forum software running on an SQL Server back end. This application was working fine with no issues. Then yesterday, without being...
1
by: rickcasey | last post by:
I wonder if anyone has experienced something like this, as it seems truly bizarre and is causing me to tear out my hair (what little there is left of it).... The exec() function just suddenly...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.