Package libapache2-mod-auth-mysql is not available

moderadorkl25 picture moderadorkl25 · Dec 8, 2013 · Viewed 66.2k times · Source

I'm trying to install a LAMP stack on Linux Mint 16 Mate x64 but always get an error when I run this command:

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

I'm using the default source repositories. I managed to install apache2, php5 and mysql but whenever I install the three packages it returns:

Package libapache2-mod-auth-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'libapache2-mod-auth-mysql' has no installation candidate

Because of this I can't use the friendly URL feature.

Answer

Daniel A.A. Pelsmaeker picture Daniel A.A. Pelsmaeker · Feb 13, 2014

According to this thread the libapache2-mod-auth-mysql package is no longer maintained, and not needed:

I get the impression that many people have ended up here because they want to install a LAMP stack, since some instructions somewhere state that this package should be installed to get a LAMP stack. This is incorrect. This package is only required for Apache authentication against MySQL (as opposed to doing it at the web app end, which is far more common). It appears to me that there are cargo culted instructions floating around the Internet.

Robie Basak

I just installed a LAMP stack without that package, and it works fine.

sudo apt-get install php5-mysql phpmyadmin