Posted by adriancotter on November 28, 2011 at 7:11pm
We have Drupal 7 up and running on Windows IIS 7. But we are getting some errors right now that we are finding difficult to troubleshoot (they are not site wide, just specific to editing content types, and editing specific pieces of content).
These are internal server errors, but we have been unable to log these or get a more verbose error message to display. We've edited the php.ini and our web.config, but nothing seems to work.
How are people logging these in general, or how would you to get the a verbose error to display.
Thanks for your help
Comments
Windows Log
I don't have it on hand, but there is a setting in the php.ini that will send all errors to the windows event log. You can then enable the syslog module in drupal and it will appear in the windows event log viewer. If i find the directions how to set this up I'll pass it along.
re: General Error Setup on WAMP (IIS7)
Hi Adrian,
can you post the error you are receiving?
here are some initial troubleshooting advices.
1) Did you install PHP 5.3 and PHP Manager? If not you can install it with Web Platform Installer. Just launch it, search for PHP manager and follow the easy installation procedure. You can find a lot of resources about Web PI on the mentioned link if you are new to this tool.
Note: you can also install Drupal 7 via WebPI. This is the easiest way to deploy Drupal on IIS. The setup will take care of all the dependencies and details.
2) To solve your problem, in IIS Manager, click on your site in the left pane and search for PHP Manager in the central features pane. Open it and see if it's reporting any error that you can post here for further advices. With PHP manager you can setup everything related to PHP without having to fiddle manually with PHP.INI or other settings.
3) Check the PHP configuration with the provided phpinfo link.
4) If you are still experiencing errors, there's a feature called Failed Request Tracing in IIS that's pretty useful to determine the source of the problem.
http://learn.iis.net/page.aspx/266/troubleshooting-failed-requests-using-tracing-in-iis/. I can guide you through the configuration. Let me know about your progress! :)
I suggest you to install also WinCache for PHP 5.3, as usual via WebPI. It's a Windows specific PHP accelerator that considerably boosts the performance of PHP apps on IIS.
No configuration needed, just install it and it will be registered as a PHP extension.
As a side note, we are offering some free training on optimizing Drupal on IIS at DrupalCon 2012 in Denver, in case you'd be interested in a full day deep dive on everything related to running Drupal on Windows. :)
Alessandro Pilotti
[ MVP ASP.Net / IIS ]
re: General Error Setup on WAMP (IIS7)
Hi Adrian,
can you post the error you are receiving?
here are some initial troubleshooting advices.
1) Did you install PHP 5.3 and PHP Manager? If not you can install it with Web Platform Installer. Just launch it, search for PHP manager and follow the easy installation procedure. You can find a lot of resources about Web PI on the mentioned link if you are new to this tool.
Note: you can also install Drupal 7 via WebPI. This is the easiest way to deploy Drupal on IIS. The setup will take care of all the dependencies and details.
2) To solve your problem, in IIS Manager, click on your site in the left pane and search for PHP Manager in the central features pane. Open it and see if it's reporting any error that you can post here for further advices. With PHP manager you can setup everything related to PHP without having to fiddle manually with PHP.INI or other settings.
3) Check the PHP configuration with the provided phpinfo link.
4) If you are still experiencing errors, there's a feature called Failed Request Tracing in IIS that's pretty useful to determine the source of the problem.
http://learn.iis.net/page.aspx/266/troubleshooting-failed-requests-using-tracing-in-iis/. I can guide you through the configuration. Let me know about your progress! :)
I suggest you to install also WinCache for PHP 5.3, as usual via WebPI. It's a Windows specific PHP accelerator that considerably boosts the performance of PHP apps on IIS.
No configuration needed, just install it and it will be registered as a PHP extension.
As a side note, we are offering some free training on optimizing Drupal on IIS at DrupalCon 2012 in Denver, in case you'd be interested in a full day deep dive on everything related to running Drupal on Windows. :)
Alessandro Pilotti
[ MVP ASP.Net / IIS ]
Thanks. If you could find the
Thanks. If you could find the directions, that would be fantastic.
php.ini set these?
error_reporting = E_ALL & ~E_DEPRECATED
log_errors = On
error_log = syslog
Server has to be restarted after changing the php.ini, correct?
PHP.Ini changes
Restarting the application domain is enough.
With PHP Manager you can easily set the error reporting settings too and it can instruct IIS to restart the app domain for you when changes to PHP.INI are detected.
Alessandro
If i remember correctly the
If i remember correctly the error_log variable needs to be set to something other then syslog but that's what I'm fuzzy on.
Server doesn't need a reboot just the APP Pool.
PHP Manager is great and makes changing the ini easy, go grab it quick.
web platform installer
Hey Alessandro,
Thanks for the tips. The error is "HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request."
I don't think we have phpmanager on there, but I'll check.