• Support
  • Deleted Domain Name Also Removed Website Entry

What is your website? Where do you plan to build? If it is a PHP Project interface, it can be created directly

aaP_fasuku

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

    aaP_fasuku

      I tried your suggestion but it says that the domain you try to add already exists.
      What I have to do to fix that.

      aaPanel_Kern

      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.

              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

              aaP_fasuku