The title describes the question.
I have PHP installed, Apache, MySQL and also phpMyAdmin in the htdocs folder of Apache. I installed them separately and do not use a compilation package. I did try to create a php file with phpinfo, which works and showcases that PHP is installed properly, though when I access:
localhost/phpmyadmin/setup/index.php
The file becomes opened in the browser and does not get executed, which means I am seeing the source code - though the same does not happen with phpinfo php file.
Any ideas why?