Solved

Installing mod-auth-mysql on Ubuntu 12.04 LTS

Posted on 2014-11-06
2
1,120 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
2 Comments
 
LVL 24

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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é.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

919 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now