Wordpress on Centos 7 displaying source code instead of content

Our Wordpress installation on Centos 7 is displaying source code instead of content.

. LAMP has been installed. Wp-config.php has been edited.

I am new to Linux so I am not sure how to resolve this issue.

Any assistance will be appreciated. Please include paths to files that need edited etc. I can use all the help I can get at this point.
Who is Participating?

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

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.

It sounds like mod_php, the php interpreter, isn't running on Apache.

Create a PHP: file with
// prints e.g. 'Current PHP version: 4.1.1'
echo 'Current PHP version: ' . phpversion();

// prints e.g. '2.0' or nothing if the extension isn't enabled
echo phpversion('tidy');

Open in new window

(code from php.net manual)

save that in your htdocs directory or root of your website as getver.php. Then call http://localhost/getver.php 
or whatever you site. If that doesn't give you the php version, then you don't have PHP installed.

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
ICantSeeAuthor Commented:
It printed out "Current PHP version:5.4.16 and nothing on the second line. How do I enable it?
ICantSeeAuthor Commented:
I don't understand where my last post went. I started over by deleting the virtual server and reinstalling everything. It worked as expected after that. I wanted to mark the missing post and the post from SStory as the answer.
Sorry. I've been on vacation for about 8 days and just got back to this.  It looks like you've solved it.  Something must have gone wrong in your original install. If the PHP interpreter isn't working, PHP pages are just displayed instead of interpreted I believe. So somehow it wasn't working.

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

From novice to tech pro — start learning today.