Installing drupal commerce kickstart or updating shows 500 internal server error, apache logs shows: [Thu Nov 08 18:09:05 2012] [warn] mod_fcgid: read data timeout in 31 seconds [Thu Nov 08 18:09:05 2012] [error] [client 189.158.216.91] Premature end of script headers: install.php, referer: http://domain.com/tienda/install.php?profile=commerce_kickstart&welcome=...
By checking troubleshooting on the commerce kickstart it is advised to do the following: xdebug setup: If you are using xdebug, you'll want to make sure you have the nesting levels configured accurately. (http://drupal.org/node/1663314) apache setup: max_allowed_packet needs to be 16M minimum required php libraries: Commerce Kickstart 2 requires the Curl PHP Library to be installed.
I have setup max_allowed_packet in MySQL (my.cnf) and curl php library is installed. Not sure where to check xdebug and if something else is needed. PHP limits have been already increased.
Comments
Submitted by andreychek on Thu, 11/08/2012 - 18:42 Comment #1
Howdy -- well, we're unfortunately not familiar with the various Drupal modules. I also haven't used Xdebug before, though I can offer that it appears to be a PHP module for debugging and profiling code, available here:
http://xdebug.org/
The error you're seeing suggests that, for some reason, the install process is taking longer than 30 seconds to run. That could occur because it's just hanging, or it could occur if it really does need longer than 30 seconds to perform the installation.
You could always try increasing that timeout, by going into Server Configuration -> Website Options, and setting "Maximum PHP script run time" to a higher value, perhaps "60".
Also, in that same screen, you could try experimenting with another PHP Execution Mode. If changing the timeout doesn't help, you may want to try switching the CGI PHP Execution Mode. And then if CGI doesn't work, see if mod_php makes a difference.
Submitted by jorgecardenas1 on Fri, 11/09/2012 - 18:37 Pro Licensee Comment #2
Setting PHP Execution Mode to CGI wrapper made the trick (After increasing mysql/php limits). Installation went by flawless, only 2x to 10x slower than FCGId which make me think something was not correctly setup there.