Domains starting with numbers are causing problems.

When I add a domain that starts with a number, apache will not start from a dead stop, like a server reboot. The first time, it allowed the reload on subserver creation in virtualmin, and then I get a call in the middle of the night that the web server is failing from a server reboot (not fun.) a2dissite allowed the webserver to restart. Subsequent testing showed a deteriorating situation; after deleting the subdomain, and trying to add it back under a different profile, it would not even create the server. The AWstats had not deleted. I manually deleted the AWstats files, and then tried to add the domain to virtualmin as a top level server with our most common profile. It seems to be failing on log file permissions and AWstats configuration. This must be a recent bug, as I have other domains that start with numbers.

Status: 
Closed (fixed)

Comments

Howdy -- yeah, I've used domains starting with numbers as well, without any problems.

When Apache has problems, it'll generate some errors in its error log regarding what the problem is.

What errors do you see in /var/log/apache/error_log when dealing with the problems you're describing above?

from adding it as a subdomain: (2)No such file or directory: apache2: could not open error log file /home/poconomarketing.com/domains/542prospectstreet.com/logs/er ror_log. Unable to open logs

from adding it as a primary domain: Warning: DocumentRoot [/home/542prospectstreet.com/public_html] does not exist

From those errors, it doesn't look like the use of a number is the cause. Rather, it looks like a domain wasn't created fully ..

What output do you get from the command virtualmin validate-domains --domain 542prospectstreet.com --all-features

virtualmin validate-domains --domain 542prospectstreet.com --all-features

542prospectstreet.com

All features OK

I stopped Apache, and then restarted. It restarted cleanly. This time the log files were created. Was that the result of running the validation script? Does virtualmin validate-domains do any changes?

No, the validation script doesn't do anything .. it just checks that the configs for apache, BIND and so on match up with that Virtualmin expects.