‘http://www.mind2mind.net/’ presently lands at
‘http://www.mind2mind.net/mind2mind_home.html’,
so all WordPress folders and files — the *content* of the unzipped /wordpress/ folder — would need to be in the same location (same folder)
as the ‘mind2mind_home.html’ file in order for the default
‘http://www.mind2mind.net/.htaccess’ for WordPress to be able to send
‘http://www.mind2mind.net’ to ‘http://www.mind2mind.net/index.php’ to start WordPress.
https://codex.wordpress.org/htaccess
note: The above is not true if you are using htaccess to redirect ‘http://www.mind2mind.net/’ to a sub-folder in order to find the ‘mind2mind_home.html’ file. Also, there are other options for locating and accessing WordPress if you already have an index.php (or any other filename matching a WordPress file) in that location.
I read about also uploading my database, but I’m hoping that’s already in the WordPressSite folder.
Definitely not. Your actual site content resides in two places:
WordPress database tables at the server;
WordPress /wp-content/ folder and contents.
Then, wp-config.php is the WordPress file that connects those two.
My hosting service provides an auto install of WP 4.3.1.
The simplest thing to do would be to make use of that to get a default WordPress installation running, then later upload the contents of your local /wp-content/ folder and then import your local database and then edit that uploaded database and the new wp-config.php so they can recognize each other in the new location.
Thanks, leejosepho,
I’ve copied over the wp-content folder (and the wp-admin and wp-includes folders, just beause). No problems, thank you!
So, the database. After much labor, I was able to create a new one not using phpMyAdmim, but through mySQL. I imported the script from my desktop. Now I believe I just need to make sure the index file looks for the correct database. I would delete this post if I could see how. I originally wrote it before finding out how to create and import into my new database. Since I couldn’t see how to delete it, I thought I’d at least bring ou up to date. I have to say this database thing is counter-intuitive. If it were a file with a pathname I could ftp and address in another file that needed it, things would be simpler. No doubt that is impossible for reasons experts understand, but I do not.
I’ve copied over the wp-content folder (and the wp-admin and wp-includes folders, just beause).
That is fine, just be sure to do delete-and-replace rather than overwrite since overwrites tend to be subject to corruption in some cases.
I believe I just need to make sure the index file looks for the correct database.
The index file does not do that. Your wp-config.php file is the one that has that information.
If [the database] were a file with a pathname…
…you would have a static site and not need a database at all.
Thanks leejosepho. Your last line made me laugh.
I’ve moved foward and of course it was the wp-config.php file I needed to change. At first I got the path wrong and got database communication errors. I finally got the thing to work and I have a fabulous website. Well, fabulous for WP because my home page now displays the WP install page. Um, oops.
I figure I still have the path wrong (well, wrong for me), but I’m lost again. At least I’m making new mistakes. That’s got to be progress of a sort.
I just had a back-and-forth with support at my host and they’ve updated my siteurl from http://localhost:8888/wordpress to http://www.mind2mind.net/. I had not gotten around to that. They tell me that the values in my wp-config.php file are correct for the database. The problem persists, though, and they invited me to take it up here. Gosh, thanks.
I note that the WP index page loads the wp-blog-header.php page and its values for me are:
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( !isset($wp_did_header) ) {
$wp_did_header = true;
require_once( dirname(__FILE__) . ‘/wp-load.php’ );
wp();
require_once( ABSPATH . WPINC . ‘/template-loader.php’ );
}
These are clearly not what I want. Instead of /wp-load.php I want my home page data. As I have set a static front page, would the correct value here be page.php? But I still donβt know what should replace template-loader.php, if anything.
I’m actually a pretty accomplished person in my own field and this experience is really humbling for me. Thanks for helping me along. I’m actually an author and I wonder if I could volunteer to add some explanatory lines to the WP documentation for noobs like me.
Franz
Do not change anything there. Go to Dashboard > Appearance > Customize and select what you want. Techies can manipulate WordPress, but that is not at all typical.
Do NOT start editing those files! No need to π
To have a static home page, create the page as a ‘Page’ (not a ‘Post’), name it Home.
Then go to Dashboard > Settings > Reading > Front page displays and choose A static page (select below) > Front page > and select Home > Save Changes
Thanks guys,
I’m clearly not expressing myself well. I did create my front page as a “page” and I saved it as static and all is well on that front.
My problem is that my home page redirects to the WP install page. That is not what I or anyone else could possibly want. There’s a disconnect between my localhost site, which of course displayed all my pages with all their content and my live site which, despite seemingly being (I thought) an absolute clone of my localhost site, invites the world to download WP. I (not you; you are busy and need to do other things) need to get WP to get its oppressive hands off my site!
Thanks,
Franz
Sorry, I misunderstood the original post π
If your host has updated the URL to your proper domain, then you should be able to log into the Dashboard on your live site:
http://www.mind2mind.net/wp-admin
Once logged in, install and run this plugin to update the remaining URLs (links) that are stored in the database:
https://wordpress.org/plugins/better-search-replace/
You have to do this (including what your host did to the siteurl and home fields in the wp-options table in your database) any time you move a site and the domain name changes.
Hey SniffileValve (what a great username, btw), that’s exactly the problem: going to the address you supplied (http://www.mind2mind.net/wp-admin) just offers the surfer install WP. I imagine installing the better-search-replace plugin is a good thing, but I seem to have some serious pathname issues that might break its efforts.
Franz
https://codex.wordpress.org/Changing_The_Site_URL#Relocate_method
Here is the line you temporarily need near the bottom of wp-config:
define('RELOCATE',true);
Just be certain to read carefully there and clear your browser cache and be sure to either type or paste your URL into the browser and not use a saved browser link that might or might not have some kind of embedded redirect or whatever.
I’ve inserted “define(‘RELOCATE’,true);” and mind2mind.net still redirects to mind2mind.net/wp-admin/install.php. I deleted the line again. No change. I inserted it again. No change. I’ve also checked the wp-options table and the urls for siteurl and name are http://www.mind2mind.net. The http://www. prefix is not a problem, is it?
I have new respect for you programmers. This stuff is exasperating!
I’ve inserted “define(‘RELOCATE’,true);” and mind2mind.net still redirects to mind2mind.net/wp-admin/install.php. So does /wp-admin.php. So does /wp-login.php. I’ve deleted the relocate line, tested, added it again, and tested. No change. Something is definitely working efficiently to redirect the site. Just not to where I want.
I’ve checked the wp-options table in the database to make sure the host changed it properly and the urls for siteurl and name are http://www.mind2mind.net. The http://www. prefix is not a problem, is it? I hardly think the host employees would make such an obvious error.
So, I’m still lost, or rather my site is. One thing for sure: I’ve gained new respect for programmers. This stuff is exasperating and you need wonderful patience to deal with it.
What do you have for htaccess?
https://codex.wordpress.org/htaccess
Also, maybe give one or the other of these a try:
Select and edit one pair of lines or the other — no trailing slashes — then temporarily place a slash after /*toggle on/off* just above those two lines to un-comment them and make them active.
-either-
/*-either-*/
/* tell database to recognize and use http://domain.com
/** @ near top of wp-config.php /*toggle on/off*
define('WP_HOME','http://domain.com');
define('WP_SITEURL','http://domain.com');
/*-or-*/
/* tell database to recognize and use http://www.domain.com
/** @ near top of wp-config.php /*toggle on/off*
define('WP_HOME','http://www.domain.com');
define('WP_SITEURL','http://www.domain.com');
/*-end-*/
-or-
/*-either-*/
/* tell database to recognize and use http://domain.com
/** @ near top of theme functions.php /*toggle on/off*
update_option('siteurl','http://domain.com');
update_option('home','http://domain.com');
/*-or-*/
/* tell database to recognize and use http://www.domain.com
/** @ near top of theme/functions.php /*toggle on/off*
update_option('siteurl','http://www.domain.com');
update_option('home','http://www.domain.com');
/*-end-*/
I could not post earlier today. I didn’t know what was happening and ended up submitting various versions of my post. Two were approved. Sorry about that.
But now, great news: my site is up!
I still don’t know what was wrong before. I suspect it may have been corruption in the wp-admin or wp-includes folders. As leejosepho said, “just be sure to do delete-and-replace rather than overwrite since overwrites tend to be subject to corruption in some cases.” I had overwritten them. Anyway, I decided to delete the entire install and start from scratch. This time I left those folders as-is. I also re-exported my database from my local host and re-imported it. That could have fixed an error, as well.
Whatever went right, I am in your debt, leejosepho. My site is basic and amateur. I’ve literally spent more time trying to take it live than I spent putting it together (aside from writing the content, of course). But it’s LIVE and I’m sure glad to take some time off now and get ready for the first day of school tomorrow. I need to remember what I’m supposed to be teaching!
Thank you again!