Jump to content

Index.php not being served


jaymax

Recommended Posts

I am having problems processing index.php files when pointing to a directory. My test.php runs fine showing all the details of the PHP Version 5.2.12 installation.

 

The server is an Apache/2.2.11 (FreeBSD)

 

The serving page is from a virtual domain, which for all other purposes functions well.

 

The httpd.config file has the following defaults checked

index.html and index.html

 

==>

            # DirectoryIndex: sets the file that Apache will serve if a directory

    # is requested.

    #

    <IfModule mod_dir.c>

    DirectoryIndex index.php index.html index.htm

    </IfModule>

<==

 

Is there something else I am missing?

 

 

Even more troubling, when I put the index.php explicitly in the URL it does not serve or display the page

 

Thanks

 

 

Title: index.php not being served

Link to comment
https://forums.phpfreaks.com/topic/199554-indexphp-not-being-served/
Share on other sites

Even more troubling, when I put the index.php explicitly in the URL it does not serve or display the page

 

Try creating a new file and saving it as index.php in that directory, if it says "confirm overwrite" don't overwrite, just trying to rule out the fact that the file exists.  Sometimes there is a case sensitivity to some flavors of linux.  I personally protect my admin page by naming it Admin.php  ;)

 

Just to be safe back it up though.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.