Solved

Installing mod-auth-mysql on Ubuntu 12.04 LTS

Posted on 2014-11-06
2
1,146 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 26

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

828 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