Bug 1816516
| Summary: | Syntax error in config file /etc/httpd/conf.d/phpMyAdmin.conf under EL7 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Johannes Grumböck <johannes.grumboeck> |
| Component: | phpMyAdmin | Assignee: | Robert Scheck <redhat-bugzilla> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 33 | CC: | fedora, imlinux+fedora, redhat-bugzilla |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | phpMyAdmin-4.4.15.10-6.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-07-13 01:27:39 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Check if "mod_access_compat" is loaded (should be using default httpd configuration) $ httpd -M ... access_compat_module (shared) ... 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. I've create a PR https://src.fedoraproject.org/rpms/phpMyAdmin/pull-request/1 This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle. Changing version to 33. FEDORA-EPEL-2021-dbbd33147d has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-dbbd33147d 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. 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. |
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