Mod security and phpmyadmin

Discussion in 'Installation/Configuration' started by manarak, Jul 7, 2011.

  1. manarak

    manarak Member

    Hello,

    I have Mod Security running and would like to deactivate it for the server-wide phpmyadmin installed under IP/phpMyAdmin

    Does someone have the instructions at hand please, so I don't need to look everywhere?

    Thank you
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to edit the /etc/apache2/sites-available/ispconfig.conf file and change:

    <Directory /usr/share/phpmyadmin>
    Order allow,deny
    Allow from all
    </Directory>

    <Directory /usr/share/phpMyAdmin>
    Order allow,deny
    Allow from all
    </Directory>

    to:

    <Directory /usr/share/phpmyadmin>
    Order allow,deny
    Allow from all
    SecRuleEngine Off
    </Directory>

    <Directory /usr/share/phpMyAdmin>
    Order allow,deny
    Allow from all
    SecRuleEngine Off
    </Directory>

    and restart apache.
     
    Last edited: Jul 7, 2011
  3. manarak

    manarak Member

    Thank you very much Till!
     
  4. mjnet

    mjnet New Member

    Thanks Till!

    But unfortunately this didn't solve my issue when i want to delete a table record:

    Method Not Implemented
    GET to /phpmyadmin/sql.php not supported.
    Apache/2.2.0 (Fedora) Server at codag.net Port 80

    I think this is since i updated debian?!
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Are you sure this is a Debian server? Looks like Fedora.
     
  6. mjnet

    mjnet New Member

    Yes, it's Debian GNU/Linux 6.0
     
  7. falko

    falko Super Moderator ISPConfig Developer

    But where does this come from?

    Code:
    Method Not Implemented
    GET to /phpmyadmin/sql.php not supported.
    Apache/2.2.0 ([COLOR="Red"]Fedora[/COLOR]) Server at codag.net Port 80
    Are you sure you are troubleshooting the correct server?
     
  8. mjnet

    mjnet New Member

    Yes I am. Don't know why there's a "Fedora" but a friend of mine has that as well on a debian squeez. Maybe hetzner repos?

    .. well, i had still no luck with that phpmyadmin
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Hetzner is just mirroring the official Debian repos, so that's not the problem...
     

Share This Page