Forum Moderators: phranque

Message Too Old, No Replies

Apache server wont load index.php

Other php files load correctly but not index.php,

         

kapalselam

1:28 pm on May 3, 2005 (gmt 0)

10+ Year Member



Hi people,

I have a weird problem with my website. It's hosted on Apache on a Fedora server... I created an index.php file and I want it to be loaded as default index page. Before that I had uploaded an index.html as the default but then I deleted that file. Index.php has been uploaded but everytime apache still loads old index.html which I dont know where it gets it from, since I have deleted the file.

I tried to open other php files, they work properly, then I try to access manually [wwWebmasterWorldebsite.com...] but I got error: Document contains no data (I use firefox). Seems that index.php doesnt exist at all on the server.

So I tried to force apache to read index.php by creating .htaccess for public_html directory, with entry: DirectoryIndex index.php.... Still doesnt work either.......

Last attempt, I deleted every files on public_html, accessed the website and got a Fedora test page. I thought I could fool apache, by re-uploaded all php files again....but still doesnt work......

Am I missing something here? What can I do to fix this problem? Or do I have to rely to the hosting company to fix this problem, since I only have ftp access to the site?

Thank you

KapalSelam

jdMorgan

2:57 pm on May 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



KapalSelam,

Welcome to WebmasterWorld!

It sounds to me like you may need to flush your browser cache (temporary internet files). If the file is gone from your server, but still appears to load, then it must be coming from elsewhere, and your own browser cache is the most likely source.

I suggest flushing the browser cache after any change to access-control code.

Jim