Bug#779544: phppgadmin: apache config needs mod_dir enabled

2015-03-02 Thread ian_bruce
On Mon, 02 Mar 2015 11:24:18 +
Jean-Michel Nirgal Vourgère jmv_...@nirgal.com wrote:

 Do you know how you came to have that module disabled? Do you remember
 if you disabled it as an admin?

I can't imagine why I would have done so.

 Can you check for apache related package you installed that would
 disable that mod_dir or at least post the list of apache/php related
 packages you are using?

# deborphan apache2
apache2
  libapache2-mod-php5
  phppgadmin
  phppgadmin
  analog
  analog
  info2www
  info2www
  javascript-common
  javascript-common
  man2html
  man2html

(I don't know why deborphan sometimes repeats items.)

As for php, phppgadmin is the only thing that needs it.

 Can you give us an history of that server? I mean: Was it installed as
 a Wheezy (Debian 7) then upgraded?

That is almost certainly what happened, which would mean that the
installation started off as Apache-2.2, and was then upgraded to
Apache-2.4 .

Just now, I tried purging all the Apache packages, and then reinstalling
them. mod_dir is now enabled by default, so the problem has not
reappeared. Apart from the above, I don't know how it could have arisen.

HOWEVER: phppgadmin still doesn't work. The README.Debian file advises
that The application is available at http://localhost/phppgadmin/ after
installation. This is not so. From the access log:

::1 - - [02/Mar/2015:05:00:57 -0800] GET /phppgadmin/ HTTP/1.1 404 501 -

Oddly, the Apache configuration file goes into
/etc/apache2/conf.d/phppgadmin, instead of
/etc/apache2/conf-{available,enabled}, like everything else. It does say
Alias /phppgadmin /usr/share/phppgadmin, but a2enconf doesn't know
about it. Is that how it's supposed to be? If so, why doesn't it work?


-- Ian Bruce


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#779544: phppgadmin: apache config needs mod_dir enabled

2015-03-01 Thread Ian Bruce
Package: phppgadmin
Version: 5.1-1.1
Severity: critical
Justification: breaks unrelated software

Installing phppgadmin breaks the Apache webserver:


# /etc/init.d/apache2 start
[] Starting apache2 (via systemctl): apache2.serviceJob for apache2.service
failed. See 'systemctl status apache2.service' and 'journalctl -xn' for
details.
 failed!
#
# systemctl -l status apache2.service
+ apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
   Active: failed (Result: exit-code) since Sun 2015-03-01 20:15:35 PST; 13s
ago
  Process: 15301 ExecStop=/etc/init.d/apache2 stop (code=exited,
status=0/SUCCESS)
  Process: 15591 ExecStart=/etc/init.d/apache2 start (code=exited,
status=1/FAILURE)

Mar 01 20:15:35 quadlie apache2[15591]: Starting web server: apache2 failed!
Mar 01 20:15:35 quadlie apache2[15591]: The apache2 configtest failed. ...
(warning).
Mar 01 20:15:35 quadlie apache2[15591]: Output of config test was:
Mar 01 20:15:35 quadlie apache2[15591]: AH00526: Syntax error on line 5 of
/etc/apache2/conf-enabled/phppgadmin.conf:
Mar 01 20:15:35 quadlie apache2[15591]: Invalid command 'DirectoryIndex',
perhaps misspelled or defined by a module not included in the server
configuration
Mar 01 20:15:35 quadlie apache2[15591]: Action 'configtest' failed.
Mar 01 20:15:35 quadlie apache2[15591]: The Apache error log may have more
information.
Mar 01 20:15:35 quadlie systemd[1]: apache2.service: control process exited,
code=exited status=1
Mar 01 20:15:35 quadlie systemd[1]: Failed to start LSB: Apache2 web server.
Mar 01 20:15:35 quadlie systemd[1]: Unit apache2.service entered failed state.


It appears that mod_dir needs to be enabled:

http://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex

You could do this manually, but shouldn't it happen automatically?



-- System Information:
Debian Release: 7.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'unstable'), 
(500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.utf8, LC_CTYPE=en_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages phppgadmin depends on:
ii  libapache2-mod-php5  5.6.5+dfsg-2
ii  libjs-jquery 1.7.2+dfsg-3
ii  php5-pgsql   5.6.5+dfsg-2

Versions of packages phppgadmin recommends:
ii  apache2 [httpd]  2.4.10-9
ii  postgresql-doc   9.4+165

Versions of packages phppgadmin suggests:
ii  postgresql  9.4+165
pn  slony1-bin  none

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org