I have a website with multiple domain names associated with it. Yesterday, I deleted a domain name from the certificate holder tab within the SSL section, and the entire website entry was removed from the Website menu in aaPanel. This was something I didn’t expect. Despite this, the site is still functioning normally, and the website’s folder and database still exist.
How can I restore the website entry in the Websites menu dialog so that I can edit it again? Please advise.
Deleted Domain Name Also Removed Website Entry
Hello, did you delete the website instead of the certificate? You can check the panel operation log in the log interface.
You can try to add a website using this domain name. It is recommended to back up the server before proceeding.
- Edited
No I just deleted the domain name which was one of many that the website had.
I tested deleting the certificate which only deletes the certificate and does not delete the website
Here is the log
Can I create a new website with an existing folder and database? And How?
Will it work?
What is your website? Where do you plan to build? If it is a PHP Project interface, it can be created directly
I have a public PHP WordPress site. If I create a new website using the same active domain, folder path, and database credentials, will it recognize the existing site and work properly, or will it overwrite and potentially destroy the current website?
Hello, could you please tell us how you would create it? If created this way, there is no need to create a database. Because you did not delete the database
This operation only adds the domain name and web configuration files. However, it is still recommended that you take a server snapshot backup
I tried your suggestion but it says that the domain you try to add already exists.
What I have to do to fix that.
Hello, I suggest you check whether all websites have this domain name added?
Where did you add it?
I just tried to create a new website from the dialog you suggested with the domain name of the site. As I told you eariler the site works but the configuration of the site is missing. Therefore when i try to add it once more it finds it there and it does not add it again. How can I overcome that?
aaP_fasuku
Hello, it is recommended to check whether there is a relevant domain name in each site, or use the command to find grep -r "xxx.com" /www/server/panel/vhost/ngin/*
If it is determined that there is no database that can download the panel: /www/server/panel/data/default.db Then use the SQLiteStudio tool to check whether there is a relevant domain name in the sites table. If so, please delete the row of the relevant domain name, and finally upload the file to the same location Restart aapanel again. Be careful to back up the files first to avoid other errors
aaPanel_Kern
inside the /www/server/panel/vhost/nginx/ folder there is .conf file with the domain name i deleted. Let me explain more.
I create a website with domain name xxx.xyz, Then I added two more domains on it xxx.com, and xxx.eu. then after a while I wanted to remove the domain xxx.xyz that I initially created the site with. I deleted the ssl as I explained above and the website entry of the initiall create website was deleted.
inside the /www/server/panel/vhost/nginx/ I can see the xxx.xyz.conf file where all the domains are listed. What can I do to make it appear again.
aaP_fasuku
Hello, execute the following command to back up the directory, then use the domain name to create a website, configure SSL and add other domain names.
cp -arpf /www/server/panel/vhost/nginx /www/server/panel/vhost/nginx_bak
I backed up the configuration file and I tried to create the site once more with the create website method. It still says that the domain name already exists. I suppose there is not way to fix that.
Is there a way to remove the domain configurations completely from the system and then re create it from scratch? What I need to do to make the domain disappear completerly. Please guide me.
- Best Answerset by aaP_fasuku
aaPanel_Kern /www/server/panel/data/default.db Then use the SQLiteStudio tool to check whether there is a relevant domain name in the sites table. If so, please delete the row of the relevant domain name, and finally upload the file to the same location Restart aapanel again. Be careful to back up the files first to avoid other errors