Report this

What is the reason for this report?

PHP File Looks Like A Text

Posted on September 24, 2014

I have installed fresh centos 6.5 32bit and followed this tutorial (https://www.digitalocean.com/community/tutorials/how-to-install-laravel-4-on-a-centos-6-vps) step by step.

Please visit the link: http://efendi.co

http://efendi.co/info.php contents

phpinfo();

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.



This textbox defaults to using Markdown to format your answer.

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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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/mod_php55.so

Original answer: http://stackoverflow.com/a/26020018/3672135

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.