Forum Moderators: phranque

Message Too Old, No Replies

My .php files are being downloaded by the clients

         

Questor21

3:55 am on Mar 26, 2006 (gmt 0)

10+ Year Member



My .php files are being downloaded by the clients rather than executing on the server? Why?!?

This has never worked, new install. Apache 2, PHP 4, Slackware 10.

jdMorgan

4:17 am on Mar 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to add the config directive:

AddHandler server-parsed .php

to httpd.conf or your top-level .htaccess file.

If the directive:


AddType application/x-httpd-php .php

is present, comment it out.

Jim

Questor21

3:00 am on Mar 27, 2006 (gmt 0)

10+ Year Member



Thanks, but it's still doing exactly the same thing...

File Download... Do you want to save this file?

Questor21

3:13 am on Mar 27, 2006 (gmt 0)

10+ Year Member



Turns out I didn't have teh execute bit set for world.