Problem creating virtual server

SYSTEM INFORMATION
OS type and version AlmaLinux 9.5
Webmin version 2.303
Virtualmin version 7.30.8
Webserver version Apache 2.4.62

Few days ago, after installing updates I have a problem with creating Virtual server. The server is created, but not usable. log from creating new virtual server. Can you please help? I am using virtualmin for 2 months and it second time i have big problem las time i needed to recover from backup because of lost virtual servers settings suddenly after an update. (Top level of sub server is the same):
Saving server details …
… done

Creating home directory …
… done

Adding new DNS zone …
… failed to generate records :

Adding to email domains list …
… done

Adding new virtual website …
… done

Disabling CGI scripts support …
… done

Performing other Apache configuration …
… done

Creating SSL certificate and private key …
… done

Adding new SSL virtual website …
… could not find non-SSL virtual website to copy directives from!

Setting up log file rotation …
… no logging directive found in webserver configuration!

Setting up spam filtering …
… done

Setting up AWStats reporting …
… done

Setting up password protection for AWStats …
… done

Saving server details …
… done

Applying webserver configuration …
… done

Restarting PHP-FPM 8.3 server …
… done

Updating Webmin user …
… done

Setting up initial SSL certificate …
… keeping self-signed certificate

Creating initial website index page …
… done

Re-loading Webmin …
… done

Have you run Recheck Configuration?

Just look at the forum with simular error, what did you have in the template for Website for domain. (are you using the default templates?)

also check you features and plugins are ticked for web

Thank you very much for your answer. Pre problem is that my templates have been deleted - i do not know why. My “Website for domain” and “DNS for domain” are empty. What can cause the problem? I tried to find the templates, but i am not able to find them on google. Can you please provide the templates for me? Thank you.

Web directives.

ServerAlias www.${DOM}
ServerAlias mail.${DOM}
DocumentRoot ${HOME}/public_html
ErrorLog /var/log/virtualmin/${DOM}_error_log
CustomLog /var/log/virtualmin/${DOM}_access_log combined
ScriptAlias /cgi-bin/ ${HOME}/cgi-bin/
DirectoryIndex index.php index.htm index.html
<Directory ${HOME}/public_html>
    Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch 
    Require all granted
    AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
<Directory ${HOME}/cgi-bin>
    Require all granted
    AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>

DNS is just settings.

Does it look like this?

We were never able to reproduce this issue, and no one else reported it widely.

Did you initially install Virtualmin on the clean minimal version of AlmaLinux without any pre-configured software?

What does this mean? No website? The domain owner can’t login?

Yes, i have the installation on clean Almalinux. I use hostinger KVM4 virtual server. The issue was strange, in virtualmin, instead of domain names listed on select I had only numbers. The config files were present, but empty.

I was not able to turn php on.

Thanks, I had different settings. Now new server creation is OK.

Did you use a virtualmin template?

I want to chime in that you should not use the Hostinger image (with Webmin or Virtualmin). I don’t know how they screw it up, but they apparently have.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.