phpMyAdmin - apache configuration issue

Brandon Tomlinson brandon.tomlinson at RACKSPACE.COM
Mon Jan 25 15:16:06 UTC 2016


And re: what happened,

The post-inst of the phpmyadmin does this:

apache_install() {
        mkdir -p /etc/apache2/conf-available
        ln -sf ../../phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf

        COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)

        if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
                . /usr/share/apache2/apache2-maintscript-helper
                apache2_invoke enconf phpmyadmin
        elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
                [ -d /etc/apache2/conf.d/ ] && [ ! -L /etc/apache2/conf.d/phpmyadmin.conf ] && ln -s ../conf-available/phpmyadmin.conf /etc/apache2/conf.d/phpmyadmin.conf
        fi

        avahi_install
        desktop_install
}



Only after the phpmyadmin package is installed. So if there is something that wipes out your links and re-initializes them, the phpmyadmin link would only reappear if it it installed again.

So to amend my previous statement:

Do 'ln -sf ../../phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf’
Then a2enmod phpmyadmin.

-Brandon, out!
(blame typos on autocorrect)


More information about the ubuntu-users mailing list