WordPress.org

Forums

Can't run initial set up because of redirect loop (19 posts)

  1. Marscaleb
    Member
    Posted 1 year ago #

    So, I have a site already that I run wordpress on. I am setting up a second site, which I decided I could run wordpress on as well.

    They are two separate domains, but run on the same server.

    Here's what I did:
    I downloaded wordpress.
    I copied the wp-config.php from my existing site.
    I changed the table prefix for the database from "wp_" to "8ball_" and left all the other settings and info for the database the same.
    I uploaded all the wordpress files to my server.

    When I access my site, it takes me to "/wp-admin/install.php" but all I get is an error saying the webpage has a redirect loop.

    Please advise.

  2. dinsan
    Member
    Posted 1 year ago #

    May be the primary domain set on the dashboard is giving the issue?

  3. Marscaleb
    Member
    Posted 1 year ago #

    How would I check that?

  4. Saravanan
    Member
    Posted 1 year ago #

    Do you still have your old files on the server? or did you delete all the old files and started uploading the newer ones?

  5. Marscaleb
    Member
    Posted 1 year ago #

    What old files?
    I'm running TWO websites on this server. (Actually three, but the third isn't using WordPress.)

    There are no old files for this domain; only the wordpress files I uploaded.

  6. Swashata Ghosh
    Member
    Posted 1 year ago #

    You said, you have copied wp-config.php from your existing site. If it is a new site you can delete the wp-config.php altogether (for your new site) and simply head to the domain. It will automatically prompt you to create a new wp-config.php and on later steps it will ask for database and prefix etc. That might help you.

  7. Marscaleb
    Member
    Posted 1 year ago #

    Okay, I tried that, but it didn't work.
    I was taken to a page that said:

    There doesn't seem to be a wp-config.php file. I need this before we can get started.

    Need more help? We got it.

    You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.

    I clicked the button that said "create a configuration file" but nothing would happen. I manually copied the link to /wp-admin/setup-config.php and entered that URL but it just sent me back to the "Not found" page I've been staring at.

  8. Saravanan
    Member
    Posted 1 year ago #

    You will have to create that file manually, Use an FTP program and login to your host and locate the file "wp-config-sample.php" edit the file and rename the file as wp-config.php. You can read more about editing the config file here

  9. Marscaleb
    Member
    Posted 1 year ago #

    If I just rename the file I only see an error message declaring "Error establishing a database connection".
    If I change the database name, user, and password to what the database uses, (as well as the table prefix, of course) then I still have the same loop error.

  10. Saravanan
    Member
    Posted 1 year ago #

    Is this is multisite WordPress installation? Does this help you ?

  11. Marscaleb
    Member
    Posted 1 year ago #

    Okay, I just tried adding the code that site mentioned.

    Now when I try to access the site I get a blank screen. Nothing is visible; it's just a blank white screen. When I look at the source code, it's just an empty head and an empty body.
    When I try directly accessing the wp-admin page, it is the same.

    My other site is still working flawlessly.

  12. Saravanan
    Member
    Posted 1 year ago #

    Could you clear the cache of you browser and try once again? Perhaps try a different browser?

  13. Marscaleb
    Member
    Posted 1 year ago #

    Okay.

    Just cleared the cache, no change. Tried IE and Firefox, no change.

    Still just a blank page.

  14. Saravanan
    Member
    Posted 1 year ago #

    Is this a WordPress multisite installation? if it is not a multisite installation, the above code might not work. You have to undo that.

  15. Marscaleb
    Member
    Posted 1 year ago #

    Yes.
    I have two wordpress sites. They are both running on the same server. They are both connecting to the same database. They are however using different domains, and I ftp into separate folders. (Obviously.)

  16. Marscaleb
    Member
    Posted 1 year ago #

    Graaahhh!
    I just created a new database, and erased everything from the site, and downloaded and re-installed WordPress brand new again, and I STILL am getting this redirect loop nonsense!

    Is there a problem with 3.8.2 that nobody caught yet?

  17. Marscaleb
    Member
    Posted 1 year ago #

    Update:
    Tried 3.7.2 and still having the same problem.

  18. Saravanan
    Member
    Posted 1 year ago #

    This is not really a problem with the WordPress version, it is something to do with your configuration. Though you are trying to run two different sites the same server using WordPress, it is not called a multisite installation as you have two separate installations of WordPress (hope you are installing into different directories). We need a little more detail about your sites, what is your primary domain which is already working with WordPress and what is your new domain that you are trying to setup which is giving the redirect loop?

  19. Marscaleb
    Member
    Posted 1 year ago #

    I've been working it over with my friend who usually handles the server stuff, and we finally got it working. It looks like there has been some problem with file privileges. I'll share some more info when I have the details, in case someone else has this problem.

Topic Closed

This topic has been closed to new replies.

About this Topic