Apache2, PHP5 + Subdirectories

Alles, was PHP betrifft, kann hier besprochen werden.

Apache2, PHP5 + Subdirectories

Postby ButterBrot » 21. June 2010 19:31

Hi,

I got a problem regarding the execution of PHP5 files in a subdirectory. PHP itself seems to be fine. The problem is the following:

http://www.example.com/subdir/index.php <- works fine
http://www.example.com/subdir <- does not work, the browser downloads the .php file itself.

Basically I used the default configuration coming with Ubuntu 10.04.

My mods-enabled/dir.conf contains:

<IfModule mod_dir.c>
DirectoryIndex index.cgi index.pl index.php index.xhtml index.htm index.html
</IfModule>

I did some Google searches, but I could not find people having the same problem. I must admit, that I had no good idea on how to search for this problem, because php5, apache2 and subdirectory lead to many irrelevant pages.
ButterBrot
 
Posts: 1
Joined: 21. June 2010 19:22

Return to PHP

Who is online

Users browsing this forum: No registered users and 3 guests