Page 1 of 1

centos 6.9 phpMyAdmin shows source codes instead of the site

Posted: 2018/03/26 08:56:09
by yan2xp0gi
Good day everyone,

I would like to ask for help on how to fix the issue where if I access phpMyAdmin it shows the source code instead of the page

see attachments

Re: centos 6.9 phpMyAdmin shows source codes instead of the site

Posted: 2018/03/26 09:00:18
by TrevorH
Judging by the other tabs you have open there I'd say it's extremely possible that you've installed a foreign copy of php and done it wrong. What did you do and how?

CentOS 6 comes with php 5.3.3 and you can install it correctly using yum install php then restarting apache httpd. If you need a newer php version then there are numerous ways to get that too but you cannot use the main CentOS repos to do that. Personally I'd recommend undoing whatever you've done so far and then googling for the IUS repo, find that, install the ius-release package from them and then use e.g yum install php56u to get php 5.6 from there. They also ship php 7.0 and 7.1 with similarly named packages.