php in virtual server

I used the install script to install phpmyadmin in a virtual server. However when I try to access it, the server just downloads the index.php file rather than rendering the php. The phpmyadmin was installed to …/public_html/phpmyadmin. In the root folder (…/public_html) I have a info.php that renders perfectly. So it seems to be just within the phpmyadmin subfolder. Any suggestions?


Hmm, do you happen to have a phpMyAdmin package installed that came from your distro? If so, that could be interfering with the Install Script you installed.

If you install phpMyAdmin into a different directory (that is, make sure to use a different name than just “phpmyadmin”) – does it work properly?


I checked and there was a distro version installed. Removed it and things began to work correctly.