views:

44

answers:

1

I just installed MediaWiki on a website and I am having some problems.

Whenever I go to "www.something.com/wikidir" the server gives me the PHP index file as an unnamed download instead of displaying it.

However, if I go to "www.something.com/wikidir/index.php" everything works as expected.

I'm not familiar with Apache and was wondering if someone could tell me how to fix this or point me in the right direction?

I'm using a LAMP stack and Mediawiki 1.7.1 (old I know).

In my .htacces file I have:

AddType application/x-httpd-php5 .php
+2  A: 
lewiguez
Also, try checking what your "DefaultType" is set to in Apache. If it's application/octet-stream, that's another possbile problem. Should probably something like text/plain.
lewiguez
It does indeed work in IE but not Chrome... Do I just add the DefaultType in my local .htaccess folder? I already checked that it is readable by Apache
samoz
Your .htaccess suggestion worked out. I added an AddType and that worked. I was having problems still afterwards though because I forgot to clear my cache. *doh*
samoz
After I re-read this, it might not be the type. :( When you use the non-index.php page, what file is downloaded? Is it the same as the index.php page? Maybe it's an issue with the order the files are being processed by Apache? (There are a whole bunch of possibilities, here... I'm just guessing now)***Edit***Nevermind! Glad it worked!
lewiguez