Hi, uploaded a bedrock wordpress site to a hosting through ftp. But all I get is the famous database connection error. *spoileralert: I know very little of bedrock, but helping out a friend in need who got a site made through bedrock.
I’ve defined the following inside the .env file that exist in my root subfolder (I run a test on this site on my sub-domain):
DEFINE: Basic variables
DEFINE: Database config
The root inside my hosting folder looks like this:
(I changed the name of the ‘web’ folder to ‘public_html’, in order to get the right url through htaccess.)
It is almost like the hosting server does not recognize the .env file. Usually it plays with wp-config.php in order to fetch the db-details. I’ve struggled with this thing in 3 days now, and pulling out my hair.
If I am short with details, I will gladly share more if needed!
Any help is highly appreciated! Thanks.