Website keeps going to http://MyWebsite.com/wp-admin/setup-config.php - wordpress

My website keeps going Website keeps going to http://MyWebsite.com/wp-admin/setup-config.php. Can you help? Thank you

If WordPress can't find the tables in the database, it will be redirected to the setup process. This usually occur when you transfer the website to another host and the prefix is different. Check your wp-config.php for the table prefix to see if it matches what's on the database.

.htaccess doesn't have anything to do with this. If your site was running before and you're suddenly gettting the Install screen, your database details in wp-config.php have changed, such as the database name and/or table prefix. Check those. You are connecting to the database, as you're not getting a database error. But your table prefix or database name was changed.

Related

Migrating a wordpress site and getting err_connection_refused

I'm transfering a wordpress site from a previous hosting package to our inhouse servers. I've copied the whole directory and taken a .sql backup of the database. Before moving it onto our servers, I want to make sure it works by running the backup locally.
So i've imported the database and changed the siteurl and home fields in the wp_options table to match my localhost. When i go to it, I get a database error, Which is what I wanter so then I entered the correct details in wp_config
But now when I go there, I get err_connection_refused message. I've tried everything I can think of, the url is correct in the database wp_options table so its not that. Any ideas please on what to try next?
Why not leave everything as is, and edit your hosts file to point to your new machine.
Then you can test using the real URL, minimizing the risk that there are URLs in the database that you didn't edit while testing.

What step have i missed? Transferring wordpress site

So i have recently tried to transfer my wordpress site to another server.
I have followed a few guides, but i definately seem to be missing a step.
Basically what i have done is:
export original database (phpMyAdmin)
Save all relevant files (ftp)
install fresh wordpress on new server. (wp backend)
'drop' all table fields in new wordpress (phpMyAdmin)
import original database to new location (phpMyAdmin)
transfer theme, plugins, uploads. (ftp)
activate theme, plugins. (wp backend)
update permalinks. (wp backend)
The problem is, i am left with a default looking wordpress installation, and not my orginal page-home.php and corresponding css.
Also, if i go to wordpress backend SETTINGS > READING > Frontpage:static; i only have the option of 'about', not home, i should have 'home'...
Sorry if i am vague, let me know if any screenshots are required.
We really need a little more info like:
when you say plain, do you mean just the theme is not set and you're on the default theme, or there is no theme, or do you mean even your content is not there?
the site you removed it from, where was the installation located? Was is in the public_html folder or a subfolder of that? Did you put it in the same place, ie not inadvertently put it in a different folder
(I've actually typed the bulk of the post and come back to the top for this one, but):
Are you sure you're checking the right site?
Have you kept the same domain name?
Has the domain name propagated to the new server?
Is the CSS being loaded from the correct domain (has anything been hardcoded to the old server)
Let's go through a few broader options:
1. Check how many WordPress installs are on your domain
First off, it sounds like you may have two WordPress installations. If you have the backend setup correctly with your themes but you're seeing a plain site, it sounds like you're looking at another install. I'm not saying you do have multiple installs, but it is a place to start looking.
A question to ask yourself here is: In this plain looking site, do you see your content, or the content of a default site? If you see your content, you may jump ahead to section 2.
If you're saying there is a home page but you're not seeing it as available under static pages, either:
You're looking at another site (but there should be a home page* even in a default setup—from memory), or
You're Home Page title may have changed, or have become "unpublished", ie reverted to a draft, or pending review. Check the page:
actually exists,
has the title you're looking for
the slug hasn't changed
(*note: although it could be a Welcome Page I'm thinking of here.)
Double check the database
The easiest way to do this is to go into your database and see how many WP databases there are. Check each database and look for the underlying table structure, it sounds like you should be able to identify it pretty easily. If it's not a multisite install, the table prefixes should be wp_ unless you changed them somewhere.
While you're playing around in the database, Take note of the database name and table prefix.
Double check the folder structure
Have a look for a second instance of your folder structure, maybe you dropped it into the wrong place).
2. Check the WordPress installation is actually connected to the database
Check the WordPress configuration file wp-config.php is connected to the database. Check wp-config.php sample from codex, you'll want to see the correct database name and table prefix in there.
From here you should also check the username has been setup correctly and is as you expect it. Remember, the database name will likely have a different prefix between hosting providers, unless you've managed to keep the same login name with each provider. ie, I'm talking about the database prefix here, not the table prefix.
(another note: most database connection issues will result in errors appearing on the page in lieu of your site, which leads me to believe it's at least partially setup correctly.)
TEST: What you can do is rename the old wp-config.php to something else and don't create a new one, then visit the website and it will lead you into setting it up again where you can enter the database details (your site info will still be intact, this will only reset your config file, not the database, although it could reset the connection between the filesystem and database).
3. Domain name propagation and DNS settings with your new host
As I mentioned previously, are you checking the right server? Are you sure the domain name has been propagated (if you're using the same domain name that is).
Check the IP address with your DNS provider (for your domain name) is correctly pointed to your new server
Then check that from your command line by typing ping {your-domain-name} and see that your IP address comes up
Check the DNS settings with your web host are setup correctly and that your domain name points to where you want it to point to (ie, public_html or the relevant subdirectory there-of). (This resally does come back to point one, which if you covered it, this shouldn't be an issue
Check that you dropped the files (and all the files) into the correct physical directory, ie public_html (or sub-dir)
If none of these help, please leave a comment with any further developments you've made and as much info as possible, and we can start looking in other areas.
*notes about the database name:
when playing with WordPress directly, ie in the configuration files or the backend administration settings, the database will include your {username}[underscore or hyphen]{database-name}
when playing in phpMyAdmin, they will already be included and you will just provide the {database-name}.
Fellow this steps
export your sql from cpanel---phpmyadmin
make zip of your files in cpanel
import the file in new domain and extract it
create a database link to the new domain
go to new database which you have reacted through phpmyadmin--delete all the tables which was installed by wordpress.
import that sql file which you have downloaded from old website
and in phpmyadmin change the url to new domain name
Regards
Follow these steps:
export database from phpmyadmin.
zip your WordPress project via c-panel.
upload zip file on new domain via c-panel.
extract zip file.
create new database and import old database in new phpmyadmin.
configure user name and password and database name.
change url in database table. from wp_operation table home_url and site_url
Thanks

Default Database name in wordpress

badly need help here. I have a website hosted in wordpress.com. I played around with the wp-config.php file and changed this line.
define('DB_NAME', 'mydatabase');
I have uploaded this and now everytime I load my website it says "Error establishing a database connection". I was not able to remember the database name, is there a default database name for wordpress? Note that my website is not local, it's already online. (http://european-supplement-shop.com/)
ALl you have to do is to get the name of the database from the control panel of your hosting and if its not set then give a name to the database and then change the name in wp-config.php
When installing a new version of Wordpress, the database is usually automatically given the suffix wp_ and then a series of numbers. This is an arbitrary number, so won't actually have any relation to anything in your install.
If you don't have access to your host's control panel, you will need to contact them to find the database name. Make sure you have some way of identifying yourself as the owner of the domain before calling as they will need to verify you are who you say you are before providing this information.
There isn't a default database name for WordPress. WordPress provides the files, where as you (or your host) provides the database. If you didn't create the database yourself, then contact your hosting company to find out the database name.
As both Ronan and hery point out there is no default name for WordPress-databases.
However, looking at your hosting provider's website, it seems that you can only find the db name by logging in here:
https://www.strato.de/apps/CustomerService
(I know you say that you don't have a login but I sense by the comments that it might be lost in translation).
I base my answer on this.

Moving Wordpress site to new server/domain | getting asked to reinstall WP

I'm getting asked to reinstall Wordpress (standard 5 minute install) after moving a site to a new server and domain name.
http://kevineikenberry.com
Testing URL:
http://keg.brettatkin.com
I've checked the wp_config and the new db settings are correct and working - I set up a test page that pulls records from the db.
I've done must of the things listed in this thread (http://stackoverflow.com/questions/4367058/problems-with-moving-my-wordpress-site-to-another-domain-server) such as running a couple of queries to update the domain name.
One additional thing I did do was change the table extension to something other than wp_
Any help would be awesome. I'm at a loss and must be missing something stupid.
Thanks
Brett
you chanced the prefix of your tables, if you do this there are DB record which need to be changed, also you have to change it in config.php
take a look at this:
http://digwp.com/2010/10/change-database-prefix/
You have changed the table prefix, that means you have different tables and your wp-config settings will not work, if you have changed your tables prefix also update it in wp-config file, save and check it again.

Change wordpress database in wp-config

I'm trying to replace the WordPress database I have on my live server. Here's the scenario: I have two databases on my server. The old one and the new one. When I edit config.php to change the database name from the old one to the new one, WordPress wants me to re-install. Here's why I'm confused...
The tables in the new database have been updated to the old URL (I'm keeping the same URL).
It's the same database user so the db user and db password don't need to change.
The db user has permissions for the new database.
I thought that I should be able to change the database name and go, but WordPress isn't letting me. Any help would be greatly appreciated. I've been working on this for several hours and I'm at my wit's end. I know there just HAS to be a way that doesn't involve manually adding/editing content in the WordPress admin.
Have you made sure that the wp-config.php:
$table_prefix = '';
Is the same as the prefix in the database (phpMyAdmin) if you use that? Usually that can keep displaying the admin/install.php page.
Wordpress prompts you to reinstall Wordpress because you're missing a whole directory in your Wordpress files (forget which one, sorry). In part, it will create the wp-config file which will store the database info.
I can't see it be bad to follow the install process, it'll ask you for the credentials to your database, which should atleast overwrite the old file and configuration. Don't forget to backup your files before doing this, in case it all goes to hell.
I had the same issue. It turned out that my new MySQL DB had an issue.
I restored the DB with innobackupex and didn't apply the --apply-log parameter on the backup directory to create the correct log files for the InnoDB engine.
Check your MySQL error log file to make sure that everything is normal. The log file's location is /var/log/mysql/[hostname].err.

Resources