PHP File Looks Like A Text

September 24, 2014 1.9k views

I have installed fresh centos 6.5 32bit and followed this tutorial ( step by step.

Please visit the link: contents


Laravel’s php file looks like a text file. I don’t understand, what is wrong?

Could you help me figure out this.

Please forgive me, maybe that’s a stupid question.

Thank you for your replies.

1 Answer

Add this line to your Apache server configuration (httpd.conf):

AddType application/x-httpd-php .php

Add the following to the configuration:

LoadModule php5_module modules/

Original answer:

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!