• Hi,
    I’ve installed WordPress 1.2.1.1 into a subdirectory of the webserver’s document root. The subdirectory is just called “wp”.
    The install.php worked fine and the database is set up as expected. The problem is when I try to log in.
    All the other files required by wp-login.php are expected to be directly in the root. I get the following error:
    Not Found
    The requested URL /wp-admin/post.php was not found on this server.
    Files are being searched for directly in the root and the “wp” subdirectory is being ignored. I put an “echo ABSPATH;exit;” line into wp-config.php to see if ABSPATH was correct and it is.
    It translates to “/u/htdocs/wp/” which is correct. I tried another install, this time directly into the root and that setup works fine.
    Must wordpress be located directly in the document root?
    thanks in advance,
    Denis

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am having the same problem. WP installed correctly (all three steps), and then presented me with the login prompt. When I click on login, it gives me a “404 Not Found”:

    The requested URL /wp-admin/post.php was not found on this server.

    I checked again to make sure that the file exists, and it is lying in that exact same folder, looking good.

    Any idea what the problem is? How do I fix it?

    Config: Apache/2.0.50 (Win32) PHP/5.0.0

    Maybe you should use the permalink feature? Though at my provider does not support url rewrite using .htaccess, permalinks with included “index.php?…” works like a charm.

    Thanks, KayNine, but I fixed the error.

    My WP install was not in the root directory, as it assumed, so the required file could be found in /wordpress/wp-admin/post.php. I only just had to change the address bar URL.

    I guess this was because of what the WP setup did in the Step 2 of the install, where it tries to guess the WP location itself, but asks you neverthless if it is correct. I just went with the default, which was my server-root. Maybe that’s what the problem was.

    Once I logged in, I changed the paths appropriately in the options, and everything’s fine. Thanks a heap.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Must WP be located in the document root ?’ is closed to new replies.