Botched upgrade Ubuntu 12.04 to 14.04 LTS (kept old config)

As of several weeks of go I am completely new to Linode/Ubuntu/Apache etc.

Recently I was having problems with site-available and thought upgrading might make things work (ha!)

Everything is broken. I asked my genius friend Bob for some help and he sent me this:

> Happy to help with Ubuntu issues, just now reading your email.

Sites are normally kept at /var/www on Ubuntu.

I see you are using /srv/www, which should work.

I see that apache is not running as:

pgrep apache

returns nothing.

When apache isn't running the first thing to check is the log file:

root@li343-96:/var/log/apache2# cat error.log

PHP Warning: Module 'curl' already loaded in Unknown on line 0

[Sun Oct 05 06:41:04 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.13 with Suhosin-Patch configured – resuming normal operations

[Tue Oct 07 05:42:53 2014] [notice] Graceful restart requested, doing restart

PHP Warning: Module 'curl' already loaded in Unknown on line 0

[Tue Oct 07 05:42:54 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.13 with Suhosin-Patch configured – resuming normal operations

[Fri Oct 10 00:18:10 2014] [notice] caught SIGTERM, shutting down

PHP Warning: Module 'curl' already loaded in Unknown on line 0

[Fri Oct 10 00:18:11 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.13 with Suhosin-Patch configured – resuming normal operations

[Fri Oct 10 04:39:48 2014] [notice] Graceful restart requested, doing restart

Warning: DocumentRoot [/srv/www/bcagentmatch.com/public_html/] does not exist

Warning: DocumentRoot [/srv/www/deborahshilling.com/public_html/] does not exist

PHP Warning: Module 'curl' already loaded in Unknown on line 0

[Fri Oct 10 04:39:48 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.13 with Suhosin-Patch configured – resuming normal operations

[Sat Oct 11 03:59:25 2014] [notice] caught SIGTERM, shutting down

You'll want to fix those Warnings if you haven't already, but that's probably not your core problem.

Next step is to start apache manually:

root@li343-96:/var/log/apache2# /etc/init.d/apache2 start

  • Starting web server apache2 *

  • The apache2 configtest failed.

Output of config test was:

apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/authz_default.load: No such file or directory

Action 'configtest' failed.

The Apache error log may have more information.

When you go to mods-enabled you will see that the red line is a broken link, that's why it's highlighted.

root@li343-96:/etc/apache2/mods-enabled# ll

total 8

drwxr-xr-x 2 root root 4096 Aug 12 06:38 ./

drwxr-xr-x 9 root root 4096 Oct 11 04:02 ../

lrwxrwxrwx 1 root root 28 Aug 10 19:39 alias.conf -> ../mods-available/alias.conf

lrwxrwxrwx 1 root root 28 Aug 10 19:39 alias.load -> ../mods-available/alias.load

lrwxrwxrwx 1 root root 33 Aug 10 19:39 authbasic.load -> ../mods-available/authbasic.load

lrwxrwxrwx 1 root root 33 Aug 10 19:39 authnfile.load -> ../mods-available/authnfile.load

lrwxrwxrwx 1 root root 36 Aug 10 19:39 authzdefault.load -> ../mods-available/authzdefault.load

lrwxrwxrwx 1 root root 38 Aug 10 19:39 authzgroupfile.load -> ../mods-available/authzgroupfile.load

lrwxrwxrwx 1 root root 33 Aug 10 19:39 authzhost.load -> ../mods-available/authzhost.load

lrwxrwxrwx 1 root root 33 Aug 10 19:39 authzuser.load -> ../mods-available/authzuser.load

lrwxrwxrwx 1 root root 32 Aug 10 19:39 autoindex.conf -> ../mods-available/autoindex.conf

lrwxrwxrwx 1 root root 32 Aug 10 19:39 autoindex.load -> ../mods-available/autoindex.load

lrwxrwxrwx 1 root root 26 Aug 10 19:39 cgi.load -> ../mods-available/cgi.load

lrwxrwxrwx 1 root root 30 Aug 10 19:39 deflate.conf -> ../mods-available/deflate.conf

lrwxrwxrwx 1 root root 30 Aug 10 19:39 deflate.load -> ../mods-available/deflate.load

lrwxrwxrwx 1 root root 26 Aug 10 19:39 dir.conf -> ../mods-available/dir.conf

lrwxrwxrwx 1 root root 26 Aug 10 19:39 dir.load -> ../mods-available/dir.load

lrwxrwxrwx 1 root root 26 Aug 10 19:39 env.load -> ../mods-available/env.load

lrwxrwxrwx 1 root root 27 Aug 10 19:39 mime.conf -> ../mods-available/mime.conf

lrwxrwxrwx 1 root root 27 Aug 10 19:39 mime.load -> ../mods-available/mime.load

lrwxrwxrwx 1 root root 34 Aug 10 19:39 negotiation.conf -> ../mods-available/negotiation.conf

lrwxrwxrwx 1 root root 34 Aug 10 19:39 negotiation.load -> ../mods-available/negotiation.load

lrwxrwxrwx 1 root root 27 Aug 10 19:39 php5.conf -> ../mods-available/php5.conf

lrwxrwxrwx 1 root root 27 Aug 10 19:39 php5.load -> ../mods-available/php5.load

lrwxrwxrwx 1 root root 33 Aug 10 19:39 reqtimeout.conf -> ../mods-available/reqtimeout.conf

lrwxrwxrwx 1 root root 33 Aug 10 19:39 reqtimeout.load -> ../mods-available/reqtimeout.load

lrwxrwxrwx 1 root root 30 Aug 12 06:38 rewrite.load -> ../mods-available/rewrite.load

lrwxrwxrwx 1 root root 31 Aug 10 19:39 setenvif.conf -> ../mods-available/setenvif.conf

lrwxrwxrwx 1 root root 31 Aug 10 19:39 setenvif.load -> ../mods-available/setenvif.load

lrwxrwxrwx 1 root root 29 Aug 10 19:39 status.conf -> ../mods-available/status.conf

lrwxrwxrwx 1 root root 29 Aug 10 19:39 status.load -> ../mods-available/status.load

root@li343-96:/etc/apache2/mods-enabled#

So now let's go look at mods-available:

root@li343-96:/etc/apache2/mods-available# ll authz*

-rw-r–r-- 1 root root 72 Jan 3 2014 authz_core.load

-rw-r--r-- 1 root root 96 Jan 3 2014 authz_dbd.load

-rw-r--r-- 1 root root 92 Jan 3 2014 authz_dbm.load

-rw-r--r-- 1 root root 78 Feb 7 2012 authz_default.load.dpkg-remove

-rw-r--r-- 1 root root 104 Jan 3 2014 authz_groupfile.load

-rw-r--r-- 1 root root 94 Jan 3 2014 authz_host.load

-rw-r--r-- 1 root root 74 Feb 7 2012 authz_owner.load

-rw-r--r-- 1 root root 94 Jan 3 2014 authz_user.load

Sure enough, the file authz_default.load has been renamed by dpkg hence it can't be found.

Not sure if you need that file (I don't on my system). So maybe you should try removing the reference to it.

And:

> http://www.linuxquestions.org/questions … 175499888/">http://www.linuxquestions.org/questions/slackware-14/ah00534-httpd-configuration-error-no-mpm-loaded-4175499888/

root@li343-96:/etc/apache2/sites-enabled# service apache2 start

  • Starting web server apache2 *

  • The apache2 configtest failed.

Output of config test was:

AH00534: apache2: Configuration error: No MPM loaded.

Action 'configtest' failed.

The Apache error log may have more information.

Roman, study these files:

root@li343-96:/etc/apache2# ll apache2.con*

-rw-r--r-- 1 root root 8346 Oct 5 01:45 apache2.conf

-rw-r--r-- 1 root root 7115 Jan 7 2014 apache2.conf.dpkg-new

-rw-r--r-- 1 root root 8376 Oct 4 02:57 apache2.conf.save

Things have changed, and you probably selected keep old file config file during your upgrade.

I don't want to bother Bob too much considering how busy he is/how minor this problem likely is.

I feel like an idiot, and if anyone can help point me in the right direction, it'd be greatly appreciated.

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct