Certbot-auto plugin error phpMyAdmin.conf


#1

Hello, Im having an issue with certbot-auto first this is the command that I execute

P.S. My operating system is CentOS 7.2
[MY WORKAROUND WAS TO RENAME PHPMYADMIN.CONF TO PHPMYADMIN.CONF.BAK] But that just a workaround not a fix for the issue?

./certbot-auto --authenticator webroot --installer apache -w /var/www/html --domain www.fihad.com --expand -m info@fihad.com -d fihad.com -d mail.fihad.com -d www.mail.fihad.com

This is the the error that I get

The apache plugin is not working; there may be problems with your existing configuration.
The error was: PluginError((‘There has been an error in parsing the file (%s): %s’, u’/etc/httpd/conf.d/phpMyAdmin.conf’, u’Syntax error’),

and this what my phpMyAdmin.conf contains

phpMyAdmin - Web based MySQL browser written in php

Allows only localhost by default

But allowing phpMyAdmin to anyone other than localhost should be considered

dangerous unless properly secured by SSL

Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

<Directory /usr/share/phpMyAdmin/>

# Apache 2.4

#Require ip 127.0.0.1
#Require ip ::1
Require all granted


<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
# Deny from All
Allow from 127.0.0.1
Allow from ::1
ِAllow from All

<Directory /usr/share/phpMyAdmin/setup/>

# Apache 2.4

Require ip 127.0.0.1
Require ip ::1


<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1

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 /usr/share/phpMyAdmin/setup/lib/>
Order Deny,Allow
Deny from All
Allow from None

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

This configuration prevents mod_security at phpMyAdmin directories from

filtering SQL etc. This may break your mod_security implementation.

#

<Directory /usr/share/phpMyAdmin/>

SecRuleInheritance Off

#

thanks in advance


#2

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.