• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Apache + php5 , keeps downloading php files in browser


New Member

Thanks: 1
Messages: 10


I've been up on this all night :( I lept changing addtypes, addhandlers, reinstalling apache and php5 but still nothing.

I use phpinfo.php to test the server but it downloads the php file! everything else like html work fine.

[LoadModule php5_module libexec/apache22/libphp5.so
Under <IfModule mime_module>
[CODE]    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    AddType application/x-httpd-php .php .htm .html
This is basically the default httpd.conf file and I followed this guide:

What can I do?


Well-Known Member

Thanks: 58
Messages: 416

Did you remeber to restart the apache server after each configuration change? Otherwise any changes you make won't impact the server.