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.
Domains starting with numbers are causing problems.
Submitted by rjrsinc on Fri, 02/12/2010 - 09:06 Pro Licensee
Status:
Closed (fixed)
Comments
Submitted by andreychek on Fri, 02/12/2010 - 09:39 Comment #1
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?
Submitted by rjrsinc on Fri, 02/12/2010 - 10:11 Pro Licensee Comment #2
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
Submitted by JamieCameron on Fri, 02/12/2010 - 13:27 Comment #3
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
Submitted by rjrsinc on Mon, 02/15/2010 - 08:07 Pro Licensee Comment #4
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?
Submitted by JamieCameron on Mon, 02/15/2010 - 13:11 Comment #5
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.
Submitted by rjrsinc on Wed, 04/18/2012 - 11:24 Pro Licensee Comment #6