linux-il  

Wierd problem - PHP downloads the source

Shachar Shemesh
Mon, 10 Sep 2007 12:41:11 -0700

Hi all,

I have a strange problem with Apache on a new server installation. I
installed apache2, phpmyadmin and mod-php5 from debs on Debian Etch
(AMD64 version, if it matters).

When I browse to http://machine/phpmyadmin/index.php, everything works.
I get the phpmyadmin interface and am offered to log in. Same goes if I
place a php file in another directory. If, however, I browse to
http://machine/phpmyadmin, I get a dialog offering me to download a
file. The content of the file is the actual content of index.php inside
the phpmyadmin directory. In other words, in some cases (I'm not sure
which), the index.php gets downloaded instead of executed.

I tried to place an index.php in the root of the documentroot, but it
never got downloaded, even if I did not refer to it by name.

Anyone has any idea how to solve this problem?

Thanks,
Shachar

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]