Apache won't start after restoring backups

11 posts / 0 new
Last post
#1 Sun, 01/23/2011 - 10:09
seemeinhi

Apache won't start after restoring backups

Changed from centos to ubuntu 10.04 used install.sh. When I restored backup got this error. Everything else seems to be OK.

Failed to start apache :

  • Starting web server apache2 Syntax error on line 39 of /etc/apache2/sites-enabled/stlcold.com.conf: Invalid command 'PerlRequire', perhaps misspelled or defined by a module not included in the server configuration ...fail!
Sun, 01/23/2011 - 10:21
andreychek

Howdy,

It looks like something being included from your Apache config isn't actually loaded or setup at the moment, and that's causing trouble.

One option would be to just comment out that line, if it's something you don't actually need.

To figure out what is actually being loaded though, you'd need to take a look at line 39 of /etc/apache2/sites-enabled/stlcold.com.conf. If you aren't sure what it is, feel free to paste the contents of that line in here.

-Eric

Sun, 01/23/2011 - 10:26
helpmin

It looks like you did not install mod_perl on Ubuntu?

Sun, 01/23/2011 - 11:35
seemeinhi

I tried to install mod_perl through webmin. It downloads but will not install. I have never seen this happen. Any ideas.

Sun, 01/23/2011 - 11:47
helpmin

What error message did you get?

Sun, 01/23/2011 - 11:59
seemeinhi

no error message. it just keeps hanging up after download

Sun, 01/23/2011 - 12:00
seemeinhi

Downloading http://www.cpan.org/authors/id/G/GO/GOZER/mod_perl-1.31.tar.gz (380.82 kB) .. Received 1024 bytes (0 %) Received 39 kB (10 %) Received 77 kB (20 %) Received 115 kB (30 %) Received 153 kB (40 %) Received 191 kB (50 %) Received 229 kB (60 %) Received 267 kB (70 %) Received 305 kB (80 %) Received 343 kB (90 %) Received 380.82 kB (100 %) .. download complete.

Sun, 01/23/2011 - 12:02
helpmin

what about installing mod_perl with aptitude?

Sun, 01/23/2011 - 12:16
seemeinhi

I did what you said with aptitude, which seemed to install ok. then I got this

[Sun Jan 23 08:09:15 2011] [error] Can't locate /etc/webmin/virtualmin-google-analytics/apachemod.pl in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /etc/apache2) at (eval 2) line 1.

Sun, 01/23/2011 - 12:44
andreychek

It looks like the Google Analytics feature is causing the problem you're seeing.

It appears that Virtualmin doesn't have the files setup for Google Analytics to run. In order to get those copied out, you may need to disable, then re-enable, the Google Analytics feature in that domain (or any other domain).

-Eric

Sun, 01/23/2011 - 13:51
seemeinhi

uninstalled Google Analytics and it works now. Thanks everyone.

Topic locked