I installed phpmyadmin on centos via yum and can access it via //ip/phpMyAdmin.
However, it shows the source code instead of the interpreted PHP code result.
I tested this again by adding another file, test.php with just the contents “” and sure enough in this case too the source code was displayed.
I have other sites on this server installed for which php works just fine. These are in the /home directory however, and phpmyadmin is installed in /usr/share/phpMyAdmin
What could be the cause of this? It’s certainly nothing to do with short tags since my test.php doesn’t use that…
Note that I use webmin, might this have something to do with it? Webmin/virtualmin use php in fcgi mode by default, which I would like to keep that way…
I have added this in case:
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
AllowOverride All
Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,Sy$
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/ubn/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/ubn/fcgi-bin/php5.fcgi .php5
But now get an internal server error with seemingly no entry in the error_log