Apache 2.0 is showing only text and not php files

Posted by denonth on Server Fault See other posts from Server Fault or by denonth
Published on 2012-09-19T07:45:57Z Indexed on 2012/09/19 9:41 UTC
Read the original article Hit count: 226

Filed under:
|
|
|

I have a web application written with PHP, html and JavaScript. On my pc I have installed a EasyPHP program which has Apache and everything installed.

But I wanted to put this web app to my server and I have installed a Apache 2.0 but my php files are displayed as text or it starts to download them automatically.

I have tried several things one of them is to add this to my conf file:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

But it's still not working.

What else can I do?

Thank you

© Server Fault or respective owner

Related posts about apache2

Related posts about php