Note that there are some explanatory texts on larger screens.

plurals
  1. POApache2 isn't serving index.php
    primarykey
    data
    text
    <p>My server is fairly old (based on SuSE 9), and while I try to go through the pain of updating to the latest Apache2, PHP5 and MySQL, I ran into this problem with one of my hosted domains.</p> <p>The site has an index.php, and if I browse to their site example.org/index.php it displays fine.</p> <p>But if I navigate to <a href="http://example.org" rel="nofollow noreferrer">http://example.org</a> or <a href="http://example.org/" rel="nofollow noreferrer">http://example.org/</a> , Firefox pops up a dialog asking if I want to save the file or view it in a program. The downloaded file is a copy of the unprocessed index.php file.</p> <p>The config file for the domain has not changed, but clearly I messed up something. In the config file is "DirectoryIndex index.php". In the DocumentRoot is a .htaccess file with only "XBitHack on".</p> <p>Confusing the matter is that I have another hosted domain with a Wordpress install that also uses index.php, and navigating there works just fine.</p> <p>Here's the site: <a href="http://www.sjbridge.org" rel="nofollow noreferrer">http://www.sjbridge.org</a> or <a href="http://www.sjbridge.org/index.php" rel="nofollow noreferrer">http://www.sjbridge.org/index.php</a></p> <p>Mojo</p> <p>Here's some more information: When I navigate to <a href="http://www.sjbridge.org" rel="nofollow noreferrer">http://www.sjbridge.org</a>, Firefox presents the file as "application/x-httpd-php" in the content-type, but for /index.php the content-type is, of course, text/html.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload