komdo Posted September 21, 2007 Share Posted September 21, 2007 I have both IIS 7.0 and Apache 2.2.4 install on my vista local machine and i'm using php 5.2.4. When i run my php script on IIS 7.0, there will be error reporting telling me the errors in my php script. However when i run it on Apache with the same script with errors, there is no error reporting, it just show me HTTP 500 Internal error(Page cannot be display). So I guess is some configuration in Apache that i didn't set. Can someone help me? Thank in advance. Quote Link to comment Share on other sites More sharing options...
apacheguy Posted September 22, 2007 Share Posted September 22, 2007 Check your error log. It should contain more info as to why the error occurred. Quote Link to comment Share on other sites More sharing options...
komdo Posted September 24, 2007 Author Share Posted September 24, 2007 The error log is showing the php script error reporting, that suppose to print in the IE. But the error only show in the error log and not in IE. Do you know where to set it, so that the error reporting is shown on the IE and not just display HTTP 500. Thanks a lot. Quote Link to comment Share on other sites More sharing options...
apacheguy Posted September 25, 2007 Share Posted September 25, 2007 I'm not sure if you can enable that feature. However, you can customize the error response pages: http://www.devshed.com/c/a/Apache/Custom-Error-Pages-with-Apache/ Quote Link to comment Share on other sites More sharing options...
trq Posted September 25, 2007 Share Posted September 25, 2007 Do you know where to set it, so that the error reporting is shown on the IE and not just display HTTP 500. There is a setting somwhere within the IE preferences, show friendly error messages, disable it. Quote Link to comment Share on other sites More sharing options...
komdo Posted September 25, 2007 Author Share Posted September 25, 2007 I have disable the "show friendly error messages", instead of shoing me the HTTP 500, now it show me a blank white page and the error is still showing in the error log only. Btw, I'm using dreamweaver CS3, could it be the IDE problem? Just to confirm, will I get the same error reporting message shown in IIS on apache when there is an error in my php script. Quote Link to comment Share on other sites More sharing options...
trq Posted September 25, 2007 Share Posted September 25, 2007 will I get the same error reporting message shown in IIS on apache when there is an error in my php script PHP has its own errors. You appear to have a server error, and no, IIS and Apache show different server error messages. Quote Link to comment Share on other sites More sharing options...
komdo Posted September 25, 2007 Author Share Posted September 25, 2007 thank thorpe, but how can i solve that server error? It is still showing the blank page when I run my error script. I have try reinstalled apache server on my machine, but same outcome. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted September 25, 2007 Share Posted September 25, 2007 Is display_errors turned on in the php.ini? display_errors must be enabled in order for errors to be shown during runtime. Quote Link to comment Share on other sites More sharing options...
komdo Posted September 26, 2007 Author Share Posted September 26, 2007 oh thanks, the error reporting is showing up. But when i run the error script e.g list.php, instead of showing the error for the list.php, it creates a temp file TMP4hiy6oyiec.php in the same folder as list.php. The error is shown base on TMP4hiy6oyiec.php which is the duplication of list.php with my CSS code and i have to refer to that temp file for the error of list.php So I'm wondering is it the error reporting result that i will get from apache or is there a way to have the error reporting shown base on the same php script without the temp file. Thank Quote Link to comment Share on other sites More sharing options...
trq Posted September 26, 2007 Share Posted September 26, 2007 But when i run the error script e.g list.php, instead of showing the error for the list.php, it creates a temp file TMP4hiy6oyiec.php in the same folder as list.php. That sounds like some sort of IDE issue. Are you previewing these files directly through Dreamweaver? Quote Link to comment Share on other sites More sharing options...
komdo Posted September 26, 2007 Author Share Posted September 26, 2007 oh thorpe, thank for your enlightenment. Under my dreamweaver preferences, preview using temporary file is checked. Now everything is solved, thanks!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.