Hello Team,
I’m new to inifnityfree. I created a website using Pantheon.io on wordpress. Downloaded and uploaded all the Website files and SQL database to Infinityfree server. DNS is also redirected. Everything is done.
But my domain is not showing the website I created, it’s only showing the default wordpress theme.
I’ve been trying the do this on my own and to figure out the problem from last 3 days, but no solution. Kindly help.
@wasik405, the website URL is right on the OP’s post. Read first before you say “can you provide your website URL?”.
@UmangJ, did you make sure to set the database prefix accordingly on your wp-config.php file if it’s different from the one Softaculous created or, if you have a different database where you uploaded the backup, updated the wp-config.php file so that it points to the other database? Also, did you make sure that the files are uploaded on your htdocs folder and not in any subfolder of it?
I made sure to upload all the files in htdocs folder directly and not in any subdirectory.
And in the wp-config.php file I added all my SQL database details: Name, User, Host and password according to what was given in my Infinityfree MySQL Connection Details.
Now I’m not sure what you meant by “did you make sure to set the database prefix accordingly on your wp-config.php file if it’s different from the one Softaculous created or, if you have a different database where you uploaded the backup, updated the wp-config.php file so that it points to the other database?”
Can you please give an example of the above so that I can understand better?
On your wp-config.php file there should be a few lines that define the database table prefix of your WordPress installation:
/**
* WordPress database table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = 'wp_';
I grabbed these lines from the wp-config-sample.php file, but anyway if the table prefix set there is different from the one you have on the database backup you uploaded to the database itself, you should change that as well.
Now you’ll have to change your website URL, and since you’re on the database phpMyAdmin you should be able to go to wp_options and change the values on the siteurl and home fields replacing the subdomain you created on Pantheon to your owned domain and, if you don’t have a SSL certificate installed on your domain yet, https to http.
I updated the siteurl and home fields in wp_options, replaced the website url with my domain name. Now when I go to my domain, it’s showing nothing, just plain white screen.
As for the first one, I can’t help you that much because I never used Pantheon and didn’t know their theme won’t probably work anywhere else.
As for the second one, you’ll now have to use the details that you used while setting up your WordPress website on Pantheon. If you can’t remember them, the username is on the wp_users table in the user_login field, while the password can be reset by editing the fields and changing the user_pass field to the password you want using the MD5 function, then saving and trying to log in with the username and the new password you used.
I resetted my login and pass as you said. I can login to my dashboard now.
Now when I visit my website it says “The theme directory “astra” does not exist.”
Oh, then you probably have to reinstall that theme or move the theme folder from your website’s backup to htdocs/wp-content/themes/ and any plugins that are needed as well to htdocs/wp-content/plugins/.