Wordpress site gives a 404 when attempting to log into back end

markofkruger

Active Member
Joined
Feb 7, 2018
Messages
55
Afrihost hosting. The site itself works fine.

Initially I got an "error establishing connection to database", I changed the SQL user password and updated the wp-config.php file, then I got a 404.

Any idea what I'm missing? Actual noob here.
 

DarkDragon

Well-Known Member
Joined
Jan 9, 2017
Messages
166
You didn't leave a space where there shouldn't be one or a comma or a period. It can make a huge difference.

Maybe check the file again just to be sure.
 

w1z4rd

Karmic Sangoma
Joined
Jan 17, 2005
Messages
49,682
When you connect your mysql db to your website and it doesnt work with wordpress, doesnt it just give you the setup? a 404 error seems odd.

Did you change the site URL?
 

JOEY_8

Senior Member
Joined
May 11, 2016
Messages
903
The error establishing database connection is a common issue with shared hosting - seen it happen plenty of times with AH. The host usually fixes it - usually you can't do much about it unless you caused the error.
 

markofkruger

Active Member
Joined
Feb 7, 2018
Messages
55
When you connect your mysql db to your website and it doesnt work with wordpress, doesnt it just give you the setup? a 404 error seems odd.

Did you change the site URL?
Nope, nothing changed. The issue started out of the blue.
 

markofkruger

Active Member
Joined
Feb 7, 2018
Messages
55
The error establishing database connection is a common issue with shared hosting - seen it happen plenty of times with AH. The host usually fixes it - usually you can't do much about it unless you caused the error.
Okay, so I need to talk to Afrihost? Joy.
 

Devin Homan

Member
Joined
Sep 5, 2020
Messages
10
I had the same problem when my sites were still with Afrihost. Their support staff usually had to sort it out. Decided to get my own reseller shared hosting. Never looked back
 
Top