• aiiee

    (@aiiee)


    WordPress displays index.html not index.php. If I delete index.html, the browser tries to open something called ‘~file’. It seems like an apache error/setting perhaps? I don’t know how to proceed here. I have tried to search the forums, but it seems everyone’s problem with index.html goes away when they delete index.html.

    I am running this on my machine running Ubuntu server, apache2, mysql, and php are installed.

Viewing 10 replies - 1 through 10 (of 10 total)
  • esmi

    (@esmi)

    Do any .php files work on your server?

    Thread Starter aiiee

    (@aiiee)

    I can reach phpmyadmin

    I can type php index.php at the cli and it displays some html that looks right

    esmi

    (@esmi)

    can type php index.php at the cli and it displays some html that looks right

    Sorry? Can you elaborate?

    Thread Starter aiiee

    (@aiiee)

    I type php index.php at the command line, and it displays the contents of
    a html file. how else can I answer your question, i’m new to php

    doesn’t that mean that php is “working”?

    Thread Starter aiiee

    (@aiiee)

    apache should display index.php right? Instead it is displaying index.html. That is the problem

    Thread Starter aiiee

    (@aiiee)

    If I even type https://example.com/index.php, it instead displays index.html

    Thread Starter aiiee

    (@aiiee)

    in other words if I type php <filename> at a command line prompt, it correctly parses the file

    Thread Starter aiiee

    (@aiiee)

    How can you realistically evenpretend to help people with problems like this? Better just to tell us to b ugger off no?

    As it turned out, I had all my wp files in the wrong directory ??

    It still doesn’t work but at leat now I am getting errors and it is reading the index.php fiels

    Thread Starter aiiee

    (@aiiee)

    and no I’m not drunk, the background of the message box is black ?? I’m not seeing anything I’m typing.

    ut that’s ok, nobody else is either !

    Thread Starter aiiee

    (@aiiee)

    ok this is too funny not to post

    turns out the files were in the right directory all along.
    I had moved them up one, started getting errors, but at least it was reading index.php.

    I moved all the php files back where I had them originally…..

    now every thing works perfectly.

    I had also done an updatedb for the locate command but that shouldn’t have affected anything

    ugggghhhh,

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Index.html displays not index.php, Deleting index.html doesn’t work’ is closed to new replies.