not able to Create SSL for my server name domain

taker18

Verified User
Joined
Oct 18, 2021
Messages
141
Location
USA

the server name is missing the SSL certificate, and when I went to update, I found this message.​

"Could not execute your request​

Domain does not exist on the system. Unable to find mydomain.com in /etc/virtual/domainowners, and domain is not set as hostname (servername) in DirectAdmin configuration. Exiting...
no valid domain found - exiting"​


when I looked at the server name I found this in the snap shot

why does it say the domain does not exist?
 

Attachments

  • Screen Shot 2023-03-16 at 10.32.52 AM.png
    Screen Shot 2023-03-16 at 10.32.52 AM.png
    198.2 KB · Views: 137
On every new installation, yes.

What I always do, which works best is the following.
I go to admin settings and take the DNS Administration.

Then I create the hostname as a new domain name. So suppose your hostnaam is server.example.com then I would create a new domain in DNS Management called server.example.com and normally both nameservers need to be mentioned there too.

After I set the hostname and created this DNS entry for the hostname, I use SSH as root and do this:
Code:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request_single server.example.com 4096

and then all should be fine.

Normally you only have to do this procedure once when installing a new server or if you change the hostname.

P.S. Ofcourse change server.example.com by your own hostname.
 
On every new installation, yes.

What I always do, which works best is the following.
I go to admin settings and take the DNS Administration.

Then I create the hostname as a new domain name. So suppose your hostnaam is server.example.com then I would create a new domain in DNS Management called server.example.com and normally both nameservers need to be mentioned there too.

After I set the hostname and created this DNS entry for the hostname, I use SSH as root and do this:
Code:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request_single server.example.com 4096

and then all should be fine.

Normally you only have to do this procedure once when installing a new server or if you change the hostname.

P.S. Ofcourse change server.example.com by your own hostname.
Thank you @Richard G I am not sure if you remember but we have done this already together a while ago.
however, I went, and I did it again now. and it worked. but I think there is something needs to be investigated
Thank you for the help again
 
not sure if you remember but we have done this already together a while ago.
Yes I remembered your name, but unfortunately I did not remember anymore that we did this together already a while ago.
I do so many things, both here and on other forums (mostly hobby forums), that on my age (almost 60) and the lot of things I do, I start more often to forget what exactly I did for who. ;)
Anyway, glad to heard that you did it again and it worked now.

However, if this was on an existing system suddenly losing hostname settings, then it's indeed something odd which might needs investigating. Shouldn't happen.

As for my help, you're welcome ofcourse.
 
Back
Top