Apache failed to restart

Hi

I have just had to restart one of our servers and apache will not start, when I try and restart it I get the following, nothing has been changed on this server except updates were installed last week.

Failed to start service :

Starting web server: apache2Warning: SuexecUserGroup directive requires SUEXEC wrapper. Warning: SuexecUserGroup directive requires SUEXEC wrapper. Warning: SuexecUserGroup directive requires SUEXEC wrapper. Warning: SuexecUserGroup directive requires SUEXEC wrapper. Warning: SuexecUserGroup directive requires SUEXEC wrapper. Warning: SuexecUserGroup directive requires SUEXEC wrapper. Syntax error on line 20 of /etc/apache2/sites-enabled/test.cybernamixqld.com.au.conf: Invalid command 'FCGIWrapper', perhaps misspelled or defined by a module not included in the server configuration failed!

Operating system Debian Linux 5.0 Perl version 5.010000 Path to Perl /usr/bin/perl
Postfix version 2.5.5 Mail injection command /usr/lib/sendmail -t
BIND version 9.5.1 Apache version 2.2.9
PHP version 5.2.6 Webalizer version
Logrotate version 3.7.1 MySQL version 5.0.51
ProFTPd version 1.31 SpamAssasssin version 3.2.5
ClamAV version 0.95.2 Operating system Debian Linux 5.0 Webmin version 1.480
Virtualmin version 3.73 Pro Theme version 7.4

Status: 
Closed (fixed)

Comments

The fatal error you're getting is this one:

Syntax error on line 20 of /etc/apache2/sites-enabled/test.cybernamixqld.com.au.conf: Invalid command 'FCGIWrapper'

So the issue is that Apache doesn't understand the "FCGIWrapper" command it's seeing.

You'd generally get that if the fcgid module were no longer being loaded into Apache.

If this file does not exist:

/etc/apache2/mods-enabled/fcgid.load

Then you may need to re-enable fcgid, by running this command:

a2enmod fcgid

It also looks like you're getting a warning message about the suexec module not being loaded. You can enable that with this command:

a2enmod suexec

After typing those, you should be able to start Apache.

That has allowed apache to restart but when running "Re-Check Config" I get this .. Suexec is enabled in the default template, but the suexec command was not found on your system.

So suexec is missing? That's unusual :-)

What does this command show:

find /usr -name suexec

Hrm, so it sounds like somehow, suexec may have been removed.

Does this show it as being installed?

dpkg -l 'apache2-suexec*'

By default, the package the Virtualmin installer would pull in is apache2-suexec-custom.

I get this result from dpkg -l 'apache2-suexec*'

Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ un apache2-suexec (no description available) rc apache2-suexec 2.2.9-10+lenny Configurable suexec program for Apache 2 mod

This server of ours is very strange

It has lost

Virtualmin Package Updates Virtualmin Password Recovery

From Webmin -> System Menu.

Is it easy to get this back or should I look at reloading the server?

I have manually reinstalled the modules so it is all working fine now, thanks for your help.

Glad to hear it's working now!

Automatically closed -- issue fixed for 2 weeks with no activity.