Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


I'll admit right away that I'm not very familiar with the server side of things, just FYI, so I'm not sure how to debug this error. I moved my website from a Windows platform to an Linux platform and a new VPS. I'm getting an "Internal Sever Error" every once in awhile and I'm not sure why. When I look at the server logs I'm seeing this:

"Timeout waiting for output from CGI script /var/www/cgi-bin/cgi_wrapper/cgi_wrapper"

I'm running WordPress for my sites. Can someone tell me how to debug this error? Sometimes the site works fine which is really strange. Any help would be great.

share|improve this question
Can you post some relevant info from the Apache config (depending on how you've done the config, the bits describing the relevant site which is failing). – EightBitTony May 21 '12 at 13:00
Tony,I have the base configuration, I haven't done anything to it. I'll try to get the config and post it. I'm getting a permission denied error trying to get it so I have to contact the host. – JMac May 21 '12 at 13:27
You'll want to show apache and error log info as well. – uSlackr May 21 '12 at 13:44
I'm not sure what you would like to see? <IfModule mod_fcgid.c> FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/ </IfModule> <Directory /var/www/vhosts/> <Files ~ (\.php)> SetHandler None AddHandler php-script .php Options +ExecCGI allow from all </Files> – JMac May 21 '12 at 14:24
Log: [Wed May 16 13:02:16 2012] [warn] [client] Timeout waiting for output from CGI script /var/www/cgi-bin/cgi_wrapper/cgi_wrapper [Wed May 16 13:03:31 2012] [error] [client] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/' - /usr/lib64/php/modules/ cannot open shared object file: No such file or directory in Unknown on line 0 [Wed May 16 13:03:52 2012] [error] [client] Premature end of script headers: cgi_wrapper – JMac May 21 '12 at 14:26

It looks like something is trying to use PHP's sqlite module, but it's not installed. You don't say which Linux distribution you're using so I can't comment on how to install it, but that's where you should start looking.

share|improve this answer
I'll look into that first. – JMac May 21 '12 at 17:41
All, not sure if it means anything but in my suexec_log I'm seeing: uid: (10000/chadbh) gid: (506/506) cmd: cgi_wrapper – JMac May 22 '12 at 15:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.