Forums

Endless Redirect And/Or Empty Database Tables RESOLVED! (7 posts)

  1. muhlwebdev
    Member
    Posted 4 months ago #

    I had both of these errors and they were both resolved on a Linux machine.

    SUMMARY:
    =========
    Endless Redirect: DO NOT MANUALLY CONFIG THE wp-config.php file.
    Empty Database tables: Create an EMPTY .htaccess file, and give full
    write permissions.

    DETAILS:
    =========

    Re-install wordpress as follows:
    1. Drop the database (to simplify the task of removing ALL tables).
    2. Create the database. If using MySQL, assuming:
    database name: wpdb
    database user: wpdbadmin
    database password: wpdbadmin_pwd791
    host: localhost

    Login to MySQL and run the following commands:

    CREATE DATABASE wpdb;
       GRANT ALL PRIVILEGES ON wpdb.* TO "wpdbadmin"@"localhost"
       IDENTIFIED BY "wpdbadmin_pwd791";
       FLUSH PRIVILEGES;
       EXIT

    3. Go to your install directory, and delete the wp-config.php file.

    4. Make sure an .htaccess file exists. (It can be empty, or just copy
    htaccess.dist to .htaccess).

    5. Modify the permissions to the .htaccess file as follows:
    chmod 777 .htaccess

    6. Change the owner of the .htaccess file to the same owner running the
    web server. (Assuming the owner is "apache"):
    chown apache .htaccess

    7. Make sure the install directory, and the wp-content directory have
    the same permission settings as .htaccess (see steps 5 & 6 above)

    8. Re-run the install script from the web browser:
    Subdirectory: http://www.yourdomain.edu/wordpress/index.php
    Subdomain: wordpress.yourdomain.edu/index.php

    I hope this helps!

  2. muhlwebdev
    Member
    Posted 4 months ago #

    After your success, DO NOT FORGET change the permissions back (no write access) for the install directory, .htaccess, and the wp-content directory.

  3. andrea_r
    Member
    Posted 4 months ago #

    "SUMMARY:
    =========
    Endless Redirect: DO NOT MANUALLY CONFIG THE wp-config.php file."

    You mean follow the instructions in that same config file that say NOT to edit it??? Right there at the top, in big sparkly bits.

  4. muhlwebdev
    Member
    Posted 4 months ago #

    Thanks for emphasizing that point, andrea_r! LOL

    It is tempting to edit the wp-config.php, despite the instructions in the file "at the top in the sparkly bits" :) particularly when:

    1) you are seemingly at a loss
    2) the non-Multiuser version of wordpress allows it
    3) even wordpress may roll out a bug

    Alas, the approach above not only auto-generates the wp-config.php file, but also the .htaccess file WITHOUT A SINGLE FILE EDIT... (even without the edit of the .htaccess file's "RewriteBASE BASE" line... ) Hopefully this will help someone :)

  5. andrea_r
    Member
    Posted 4 months ago #

    Well, #1 can usually be cured by reading the instructions.

  6. muhlwebdev
    Member
    Posted 4 months ago #

    ...

  7. veightar1
    Member
    Posted 3 months ago #

    Thanks. It really works

Reply

You must log in to post.

About this Topic