Change a website domain in CyberPanel

I have a website with the Joomla CMS, which used the test.ribamar.net.br subdomain. So I decided to change to loja.ribamar.net.br. CyberPanel doesn't do this via the web interface and I don't know how, not even via the server terminal.

So I made a backup oftestes.ribamar.net.br and downloaded this backup to my desktop.
I unzipped it. It expands to multiple files and folders.
I accessed the public_html folder and compressed it as loja.zip.
I also got the .sql from the bank.

I went to CP and created a new website, now for loja.ribamar.net.br.
I also created the bank for him, loja_db.

List sites - loja.ribamar.net.br - File Manager.
I opened the loja.ribamar.net.br - public_html folder and uploaded the loja.zip and extracted it,
I went to phpmyadmin and imported the backup sql into the loja_db database.

I went back to the File Manager - I edited configuration.php and adjusted the database data and also $log_path and $tmp_path.

It worked.