logo
  • Contact Us |
  • Login
  • Login
  • RVsitebuilder
  • RVskin
  • RVssl
  • Support
  • Partner
    • RVsitebuilder NOC Partner
    • RVskin NOC Partner
    • SSL Reseller Program
  • Products
    • cPanel
    • CloudLinux
    • Softaculous
    • RVskin
    • RVsitebuilder
    • RVssl
    • Virtualizor
  • Installation
  • Why Us?
order
  • Support
  • Submit Ticket
  • Verify License
Knowledge Base RVsitebuilder 7 > Troubleshooting Install & Create Site Troubleshooting

Warning "Can't connect Database for {domainname.com}" while going to Edit website in cPanel

by RV Support
2025-11-18 08:05:34

The solution for the database warning when you go Edit your website in cPanel.

cannotcontDB.png

How to fix

Check Database in .env file

1. Copy .env file to a new one with .env.bak

cPanel -> File Manager -> /home// -> rvsitebuildercms -> Domain Name folder 

/home//rvsitebuildercms/

env.png

 

If you can't find it, you can simply enable it in Setting -> Show Hidden Files.

ShowHidden.png

 

2. Access .env for Database information

DB_HOST=
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=

If you found Database info, please continue to A.
If you could not find Database info, please go to B.

A. Restore database info in MySQL

Go to MySQL® Databases to check and make sure Database information is correct with .env file in number 2.

1. If the Database Name and Database User are in MySQL

1) Make sure the Database name has the Privilege User correct with .env file

2) Access to RVsitebuilder 7 to click Edit your website again. It should be working fine.

2. If you could not find the Database in MySQL, it's probably deleted by some actions. You can follow the solution below.

1) Download the Backup file (if any) in cPanel -> Backup.

2) Click upload file at Restore a MySQL Database Backup.

3) Check in MySQL again to make sure the Database Name and Privilege User are correct with .env file.

3. If you don't have the Backup file for the lost Database. 
Please go to cPanel -> RVsitebuilder 7, and click the Create New Site to start the new website for you domain name. It will create the new Database.

 

B. Restore .env backup file

1. Go to .env file

 cPanel -> File Manager -> /home// -> rvsitebuildercms -> Domain Name folder 

/home//rvsitebuildercms/

 You will see list of .env files such as:

.env

.env.backup1

.env.backup2

.env.backup3

2. **Make sure you did "1. Copy .env file to a new one with .env.bak" already.**
Then Rename .env.backup1 to .env

3. Access RVsitebuilder to Edit your website. It should work fine now.

=====================================

RVsitebuilder 7 error 500 when I clicked Edit Previous Access to RVsitebuilder 7 on cPanel, and It errors 404Next

Articals in this section

  • Create site error "Error: Please allow extension : 'mysqlnd','pdo','gd','curl','iconv', .......
    Updated on 2025-11-18 08:05:39
  • Create site error "Error: Please set max_execution_time more than 90"
    Updated on 2025-11-18 08:05:39
  • Create site error "Error: Please set memory_limit more than 64M."
    Updated on 2025-11-18 08:05:38
  • Edit website returns Admin Login instead of content editor
    Updated on 2025-11-18 09:17:55
  • Create site error "Error: Please allow function : 'posix_getpwuid', 'getmyuid', 'fileowner', 'stat', 'file_put_contents', 'parse_ini_file'"
    Updated on 2025-11-18 08:05:38
  • Create site error "Error: Please allow function : json"
    Updated on 2025-11-18 08:05:38
  • Create site error "Error: Please allow extension : json"
    Updated on 2025-11-18 08:05:38
  • Create site error Running tar command unzip failed
    Updated on 2025-11-18 08:05:38
  • Create site error "Not enough database"
    Updated on 2025-11-18 08:05:37
  • Repair website error Prepare Installer : HTTP/1.1 301 Moved Permanently
    Updated on 2025-11-18 08:05:37
Privacy Policy   |   Terms of Service   |   Business SLA

rvsitebuilder

facebook twitter linkedin googleplus

COMPANY

Support
Contact
Login
Register
Why Us

SSL CERTIFICATES

Symantec
Thawte
Geotrust
RapidSSL

PRODUCTS

cPanel
CloudLinux
Virtualizor
Softaculous

LINKS

RVssl
RVskin
RVsitebuilder
Blog
RVskin Reseller
RVsitebuilder Reseller

Follow us

© 2020 - 2025 Netway Communication Co.,Ltd. All Rights Reserved.

Contact Us

  • Your address
  • admin@admin.com
RVsitebuilder | RVskin | RVssl | Support | Partner
2025 Company Inc. All rights reserved.   Powered by RVsitebuilder
  • RVsitebuilder
  • RVskin
  • RVssl
  • Support
  • Partner
    • RVsitebuilder NOC Partner
    • RVskin NOC Partner
    • SSL Reseller Program