LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2014, 07:05 PM   #1
roman77
LQ Newbie
 
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
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:


Quote:
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 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 Aug 10 19:39 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 36 Aug 10 19:39 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38 Aug 10 19:39 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33 Aug 10 19:39 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 Aug 10 19:39 authz_user.load -> ../mods-available/authz_user.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:

Quote:
http://www.linuxquestions.org/questi...ed-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.
 
Old 10-12-2014, 01:07 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Check this out
http://www.linuxquestions.org/questi...ed-4175499888/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to upgrade Ubuntu 12.04 LTS to Ubuntu 14.04 LTS LXer Syndicated Linux News 0 05-05-2014 07:51 PM
Ubuntu LTS 10.4.1 upgrade to 10.4.2 paul_e_t Ubuntu 2 02-19-2011 02:12 PM
[SOLVED] ? Upgrade Ubuntu 10.04 LTS wester Linux - Newbie 3 11-12-2010 07:28 AM
No enough space error when trying upgrade ubuntu from 8.04 lts to 10.04 lts flik shen Ubuntu 5 06-15-2010 12:44 PM
LXer: Upgrade Ubuntu 7.10 (Gutsy Gibbon) to Ubuntu 8.04 LTS (Hardy Heron) Beta LXer Syndicated Linux News 0 03-26-2008 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration