xubuntu 13.10 Saucy : lighttpd + phpmyadmin : post-installation status 2

Bug #1300038 reported by fredboboss
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
phpmyadmin (Ubuntu)
New
Undecided
Unassigned

Bug Description

When installing phpMyAdmin on top of lighttpd, package configuration exits with status 2 :

dpkg: error processing phpmyadmin (--configure):
 subprocess installed post-installation script returned error exit status 2
Processing triggers for libc-bin ...
Errors were encountered while processing:
 phpmyadmin

Further deinstallation with apt-get remove also fails.

Possible solution ?
It seems the following configuration file is missing when the user is prompted to select the HTTP server on which phpmyadmin is running :
/etc/lighttpd/conf-available/50-phpmyadmin.conf

As a workaround I created the lighttpd configuration with the following content :
<code>
server.modules += ( "mod_alias")

alias.url += ( "/phpmyadmin" => "/usr/share/phpmyadmin" )

$HTTP["url"] =~ "^/phpmyadmin" {
    # Allowed IP addresses, this is a regexp : (127.0.0.1|127.0.0.2)
    $HTTP["remoteip"] !~ "(127.0.0.1)" {
       url.access-deny = ("")
    }
}

# Directory protection
$HTTP["url"] =~ "^/phpmyadmin/libraries" {
    url.access-deny = ("")
}
</code>

And the installation with apt-get install phpmyadmin went successful.

Thank you for checking,
best regards,
Fred

Revision history for this message
fredboboss (fredboboss) wrote :
Revision history for this message
fredboboss (fredboboss) wrote :

sorry, attaching missing term.log
Fred

Revision history for this message
fredboboss (fredboboss) wrote :

zut ! I don't see how to attach multiple files, here is the tentative workaround
Fred

This file goes into /etc/lighttpd/conf-available/
so that when phpmyadmin is configured, it is enabled in lighttpd.

ll /etc/lighttpd/conf-enabled/50-phpmyadmin.conf
lrwxrwxrwx 1 root root 36 mars 29 07:31 /etc/lighttpd/conf-enabled/50-phpmyadmin.conf -> ../conf-available/50-phpmyadmin.conf

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "tentative for missing conf file" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.