Solved

Installing mod-auth-mysql on Ubuntu 12.04 LTS

Posted on 2014-11-06
2
1,192 Views
Last Modified: 2014-11-11
After I upgraded to the latest version of PHP, mod-auth-mysql stopped working. When I try to install it, I get:

root@l1:/var/log/apache2# apt-get install libapache2-mod-auth-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libapache2-mod-auth-mysql : Depends: apache2.2-common (>= 2.2.3-3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Open in new window


Please advise, thanks.
0
Comment
Question by:Mark
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 28

Accepted Solution

by:
Dr. Klahn earned 500 total points
ID: 40427299
Your debian-based linux system requires that the module "apache2.2-common" be installed before "libapache2-mod-auth-mysql" can be installed.

Apache 2.2 may not be installed, or the apt database may be corrupt, or you may be running some other version of Apache rather than 2.2, or Apache may have been built from sources rather than installed by debian.  There are probably other possibilities as well but these are the ones which come to mind.

IF:
Apache 2.2 may not be installed
Do a full system backup so that if anything goes wrong, you can restore the system to its current state.  Then issue the command apt-get install apache2.2-common.  After Apache 2.2 is properly installed you should be able to install the module.

IF:
The apt database may be corrupt
Same as above, but back up your current Apache configuration first.

IF:
Running some other version of Apache rather than 2.2
Upgrade to Apache 2.2 or find a version of the module compatible with your current version.

IF:
Apache may have been built from sources rather than installed by debian.
Install "libapache2-mod-auth-mysql" from a source kit instead of as a debian install.
0
 

Author Comment

by:Mark
ID: 40428544
Trying to the simplest suggestion (I'm not sure how to do the others): I get the following

root@l1:/var/log/apache2# apt-get install apache2.2-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
[b]apache2.2-common is already the newest version.[/b]
The following packages were automatically installed and are no longer required:
  libterm-readkey-perl libdbd-mysql-perl
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@l1:/var/log/apache2#

Open in new window

0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question