More Than Just Web Design | INTERNET ENGINEERING | APPLICATION | DESIGN

Using SuPHP with PHPMyAdmin

Posted: 18/04/15

Enabling SuPHP under Apache 2.4 breaks PHPMyAdmin but there is a handy work around

SuPHP adds its own handler for PHP files, which causes a problem with the default configuration of PHPmyAdmin. Attempts to use it result in a file download being offered. The solution is to alter/etc/phpmyadmin/apache.conf and add the default handlers added by mod_php5:

 <FilesMatch ".+\.ph(p[345]?|t|tml)$">
        SetHandler application/x-httpd-php
 </FilesMatch>

This goes with the <IfModule mod_php5.c> conditional.