WordPress.org

Ready to get started?Download WordPress

Forums

New install on a readynas can't pull index.php (3 posts)

  1. zeenon
    Member
    Posted 6 years ago #

    Folks,

    I setup wordpress successfully using the directions on http://www.readynas.com. I placed all the wordpress files/dir under a directory called wordpress. The problem is a user has to specifically type index.php to get to the wordpress page and they can't post a comment.

    http://www.stulack.com/websites/wordpress/ doesn't work, but http://www.stulack.com/websites/wordpress/index.php at least get's you to the page.

    Z

  2. TrishaM
    Member
    Posted 6 years ago #

    you have the wrong index.php file in your /wordpress/ directory. The one you have is the one that (from the looks of it - I downloaded it since you have a directory listing showing) should be in your theme folder (wp-content/themes/whateveryourthemeis/

    In the wordpress folder your index.php file should only contain this:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    The easiest way to fix this is to first copy the one that is there to your theme folder (so you don't lose it in case you don't have a backup) and then copy the index.php file from the unzipped WP folder which you should still have on your computer to your /wordpress/ folder

  3. zeenon
    Member
    Posted 6 years ago #

    TrishaM, Thank you for taking a look, but still the same.

    I see what your saying, when a downloaded the index.php file from the wordpress dir like you did, it is in fact a big file of php/html code.

    But, look at the size...94 bytes. Just to make sure I extracted the index.php (Like the snipet above) from the original wordpress zip and overwrote the original in the wordpress dir. So to make a long story short the index.php is the snipet of code above. :(

    Z

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.