Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1816516 - Syntax error in config file /etc/httpd/conf.d/phpMyAdmin.conf under EL7
Summary: Syntax error in config file /etc/httpd/conf.d/phpMyAdmin.conf under EL7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: phpMyAdmin
Version: 33
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Robert Scheck
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-24 08:03 UTC by Johannes Grumböck
Modified: 2021-07-13 01:27 UTC (History)
3 users (show)

Fixed In Version: phpMyAdmin-4.4.15.10-6.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-13 01:27:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Johannes Grumböck 2020-03-24 08:03:13 UTC
Description of problem:
There is an issue with file /etc/httpd/conf.d/phpMyAdmin.conf in the latest RPM version of phpMyAdmin (phpMyAdmin-4.4.15.10-4.el7.noarch).

While in the first half of the config file there is distinction of cases for Apache 2.2 and Apache 2.4...
 [...]
<IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip 127.0.0.1
       Require ip ::1
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 127.0.0.1
     Allow from ::1
   </IfModule>
[...]

... there is no disctinction being made in the second half:

[...]
# These directories do not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>

<Directory /usr/share/phpMyAdmin/setup/lib/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>

<Directory /usr/share/phpMyAdmin/setup/frames/>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>
[...]

Therefore, on servers with Apache 2.4 installed, on restart of Apache process the following error message occurs:

"Feb 25 13:57:52 mobiweb2c01t httpd[114623]: AH00526: Syntax error on line 51 of /etc/httpd/conf.d/phpMyAdmin.conf:
Feb 25 13:57:52 mobiweb2c01t httpd[114623]: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration."

Because of this syntax error Apache won't start.



Version-Release number of selected component (if applicable):
phpMyAdmin-4.4.15.10-4.el7.noarch


How reproducible:
Install Apache/httpd 2.4
Install phpMyAdmin-4.4.15.10-4.el7.noarch
restart Apache


Actual results:
Error in Apache error logs:
AH00526: Syntax error on line 51 of /etc/httpd/conf.d/phpMyAdmin.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration."

Expected results:
No errors

Comment 1 Remi Collet 2020-03-24 08:11:16 UTC
Check if "mod_access_compat" is loaded (should be using default httpd configuration)

$ httpd -M
...
 access_compat_module (shared)
...

Comment 2 Johannes Grumböck 2020-03-24 08:25:01 UTC
You're right.
mod_access_compat would be present in standard httpd installation.

Sorry, I forgot that we install and setup Apache with Puppet and
we also configure all modules we need via Puppet, with an option
to purge every module load/configuration we don't need.

So we run into this error because we don't need mod_access_compat
for our "normal" webservers.

It would be fine if the configuration of phpmyadmin package can
be fixed, so we don't need to activate "old/backward compatability" modules.

Comment 3 Johannes Grumböck 2020-03-24 08:51:02 UTC
I've create a PR https://src.fedoraproject.org/rpms/phpMyAdmin/pull-request/1

Comment 4 Ben Cotton 2020-08-11 15:27:04 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 5 Fedora Update System 2021-06-27 23:47:40 UTC
FEDORA-EPEL-2021-dbbd33147d has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-dbbd33147d

Comment 6 Fedora Update System 2021-06-28 01:25:39 UTC
FEDORA-EPEL-2021-dbbd33147d has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-dbbd33147d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-07-13 01:27:39 UTC
FEDORA-EPEL-2021-dbbd33147d has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.