PHP Pages Displaying Code And Not Rendering Code

For some reason my server started displaying code instead of actually processing or rendering the code.

After playing around with the server I noticed the php5 module was missing from Apache.

If your code is displaying and not rendering you may have the same issue.

To install and enable it run the following command.

sudo apt-get install libapache2-mod-php5
sudo a2enmod php5

Then restart your apache. The restart command is different depending on the distro you’re using.
A simple Google search will help you.

 

This is the forum post that helped me fix my issue.

http://ubuntuforums.org/showthread.php?t=1546116&p=9681081#post9681081

Share this Story
Load More Related Articles
Load More By Nick Escobedo
Load More In How-To's

Check Also

Website Launch: Champion Spotlight

I launched a new website dedicated to finding ...