php showing as text

I installed postfixadmin on a new AWS instance.  When I go to http://<IP address>/postfixadmin/setup.php I see the text of the file instead of it working as a php file.

I have the following code in my httpd.conf and have verified that AWS has php installed:
<FilesMatch "\.ph(p[2-6]?|tml)$">
    SetHandler application/x-httpd-php
</FilesMatch>

Open in new window


What could be wrong here?
jeff_zuckerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Most recent installs of Apache with PHP have a separate 'conf' file to enable PHP.  Try removing that code and reboot the server and see if you can run 'phpinfo();'.
<?php
phpinfo();
?>

Open in new window

jeff_zuckerAuthor Commented:
Turns out my problem was that php wasn't installed correctly.  As soon as I ran "php -v" to get the php version number, I received a command not found message which tipped me off that it was my install.  Here's what worked to fix the bad install on AWS:
yum remove php httpd php-cli php-xml php-common httpd-tools
yum install php55 php55-mysql php55-pdo

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jeff_zuckerAuthor Commented:
This is what worked.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.