I want to add 300-400 add on domains and wild card subdomains.
Every time I add an add on domain, cpanel does a graceful restart.
The result is the whole server is down for 5-10minutes.
If I did:
tail -f /usr/local/apache/logs/error_log [Sun Dec 30 23:11:18 2012] [notice] Graceful restart requested, doing restart [Sun Dec 30 23:18:01 2012] [notice] SSL FIPS mode disabled [Sun Dec 30 23:18:01 2012] [notice] Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/22.214.171.12435 configured -- resuming normal operations
If I do:
tail -f /usr/local/cpanel/logs/error_log [2012-12-30 23:11:17 -0600] info [parkadmin] Creating Addon domain 'massadult.com' on 'massadult.freemarketforever.com'. [2012-12-30 23:11:23 -0600] info [parkadmin] 'local' datastore in use (/var/cpanel/conf/apache/local) /usr/local/cpanel/bin/ftpadmin : Syncing Ftp Databases.... [2012-12-30 23:13:42 -0600] info [cpmysqladmin] Creating MySQL database freemark_massadult for user freemark
Sometimes, [2012-12-30 22:37:36 -0600]
info [ensure_vhost_includes] 'local' datastore in use (/var/cpanel/conf/apache/local) shows up in cpanel error_log which could be the problem of why it took so long to graceful restart httpd.
So basically I want to add tons of add on domains and then do apache restart once. I've heard we can modify a script slightly to prevent this from happening. But which script and how?