centos 6.9 phpMyAdmin shows source codes instead of the site

Issues related to applications and software problems
Post Reply
yan2xp0gi
Posts: 1
Joined: 2018/03/22 07:53:06

centos 6.9 phpMyAdmin shows source codes instead of the site

Post by yan2xp0gi » 2018/03/26 08:56:09

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
Attachments
problems.PNG
problems.PNG (57.44 KiB) Viewed 1215 times

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2018/03/26 09:00:18

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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply