I did that but not but now I’m getting “error establishing database connection” error. There is change database username and change database password tab on the panel but I couldn’t find any tab to view username/password.
The database connection issue has been resolved (updated correct username, password in wpcofig file) but a new problem has arisen.
When I updated A record in the domain registar DNS settings, SSL lock disappeared and a message appeared after I click on “I accept the risk on browser”. – something like /uploads folder missing. Though I was able to browse the website but some pages we’re accessible. When I clicked on contact page, browser prompted, the page doesn’t exists.
I think the original folder and file structure / path has been changed.
Did you use the migration page to install the domain to Virtualmin. You seem you be having alot of issues.
For SSL, under Server Configuration – SSL Certificates you may need to request new certificates in the Lets Encrypt tab.
If you can switch back to you old hosting you can use this plugin to move your WP, plus its a good backup tool. If you do that, best to wipe the current WP database and files. Use the Script in VM to install a clean WP and install the all in one plugin to import it.
I tried the migration tool that you recommended, but It did not work out. I used the upload to server option. After I click on migrate now button, it keeps itself in processing mode and nothing happens for hours. Sometimes connection gets lost midway. Can I use FTP/SSH method on Cpanel shared hosting server?
Earlier the preview of the website a working on Vertualmin. Now, when I click on the preview website link in a new tab, nothing renders on screen (a blank window with just URL in the address bar).
Have you run Virtualmin → System Setting → Recheck Configuration after installing PHP 8.1 through the terminal (for which I assume you have followed the instructions here: Multiple PHP Versions – Virtualmin )