linux-il  

Re: Wierd problem - PHP downloads the source

Shachar Shemesh
Mon, 10 Sep 2007 20:39:53 -0700

Yedidyah Bar-David wrote:
>
> Do you have in httpd.conf or around
> DirectoryIndex index.php
> or similar?
Yes, and in any case, if I didn't, it would either list the files in the
directory or say "directory listing forbidden". It wouldn't let me
download index.php.

I played around with it a little. phpmyadmin under /var/www was a
symlink to where the actual program was installed. The server had both
"FollowSymlinks" and "AllowOverride None", so it shouldn't have cared,
but apparently it (maybe) did. I replaced the symlink with an alias in
the server config, and the problem went away. The mystery, however, did
not.....

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]