Only phpMyAdmin displays php code instead of executing it

3 posts / 0 new
Last post
#1 Sat, 03/09/2019 - 14:15

Only phpMyAdmin displays php code instead of executing it

Fresh Centos 7 install. Virtualmin install.
Added a VH (php 7.0); (use
SSL cert from Let's Encrypt via Virtualmin option
Forced http -> https
Followed instruction tu upgrade php 5.4 to php7.2
So now I have php 7.0 and 7.2
Installed phpMyAdmin from Webmin Software Packages
Changed /etc/httpd/conf.d/phpMyAdmin.conf

Require all granted
#Require ip
#Require ip ::1 and info.php display the correct output but displays php code
phpmyadmin.conf is included in httpd/conf.d
How can I solve this?

Sat, 03/09/2019 - 14:31

Ran into something similar a while ago. Is the php version set properly for the phpmyadmin directory under server config -> web options?

Sat, 03/09/2019 - 16:07 (Reply to #2)

After installing from Webmin followed instructions from here
after "Configuring and Securing phpMyAdmin" line displays the php code
phpmyadmin is installed at /usr/share/phpMyAdmin

I added some directives in /etc/httpd/conf.d/phpMyAdmin inside Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8
Options +FollowSymLinks +Multiviews +Indexes
AllowOverride None
AuthType basic
AuthName "Authentication Required"
AuthUserFile /etc/phpMyAdmin/.htpasswd
Require valid-user

phpMyAdmin doesn't have a Virtualmin Virtual Host to manage 'web options' or php version from panel