Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.