Hello all,
I work for as a sysadmin at a University and am in the process of building a cPanel instance on CentOS 7 to host students' coursework.
Since setting up the system, I have noticed creating accounts is seemingly quite slow, and it looks like something is waiting for a response and timing out, but I'm not seeing any errors.. We've done this previously on CentOS 6 and had no issues..
I've tried via the JSON api, as well as the UI and at the cli - the script always pauses at 'Validating Username......Done' for approx 2 minutes.. This delay also happens when you park a domain for some reason, so I'm feeling like it could be DNS related. DNS is disabled on this server as we have DNS servers already and no need for accounts to manage their own zones.
Running the 'wwwacct' script directly behind 'time' shows the following:
Not a huge issue but it does slow down account creation when we provision new users..
Should also note that CSF is installed and configured, however disabling it complete makes no difference to these times, so I'm fairly sure it's not a misconfigured firewall.
Appreciate any tips/thoughts/etc. as I'd like to get that time down a bit if possible..
Cheers
Tom
I work for as a sysadmin at a University and am in the process of building a cPanel instance on CentOS 7 to host students' coursework.
Since setting up the system, I have noticed creating accounts is seemingly quite slow, and it looks like something is waiting for a response and timing out, but I'm not seeing any errors.. We've done this previously on CentOS 6 and had no issues..
I've tried via the JSON api, as well as the UI and at the cli - the script always pauses at 'Validating Username......Done' for approx 2 minutes.. This delay also happens when you park a domain for some reason, so I'm feeling like it could be DNS related. DNS is disabled on this server as we have DNS servers already and no need for accounts to manage their own zones.
Running the 'wwwacct' script directly behind 'time' shows the following:
Code:
# time ./wwwacct somesite.com someuser passwrd0101
+===================================+
| New Account Info |
+===================================+
| Domain: somesite.com
| UserName: someuser
| PassWord: passwrd0101
+===================================+
This ok? y
Checking input data...Validating Username......Done
***2m pause here***
Validating IP......Done
Validating Contact Email......Done
...Done
Validating system setup......Done
Checking for database conflicts......Done
WWWAcct 12.6.0 (c) 2018 cPanel, Inc.......Done
Running pre creation script (/usr/local/cpanel/scripts/prewwwacct)......Done
Adding User......Done
Adding Entries to userdata......Done
Setting up Mail & Local Domains......Done
Configuring DNS......Done
Verifying MX Records and Setting up Databases......Done
Setting up Proxy Subdomains......Done
Updating Authentication Databases......Done
Adding Entries to httpd.conf......Done
Setting passwords......Done
Updating the userdata cache......Done
Setting up Horde database in the background.......Done
Creating bandwidth datastore......Done
Updating the dedicated IP address usage cache......Done
Generating and installing DKIM keys......Done
Enabling Apache SpamAssassin™......Done
Sending Account Information......Done
Running post creation scripts (/usr/local/cpanel/scripts/legacypostwwwacct, /usr/local/cpanel/scripts/postwwwacct, /usr/local/cpanel/scripts/postwwwacctuser)......Done
Setting up Domain Pointers......Done
Setting Reseller Privs......Done
Account Creation Complete!!!......Done
Account Creation Ok
Dns Zone check is enabled.
+===================================+
| New Account Info |
+===================================+
| Domain: somesite.com
| Ip: xxx.xxx.xxx.xxx (n)
| HasCgi: y
| UserName: someuser
| PassWord: passwrd0101
| CpanelMod: paper_lantern
| HomeRoot: /cpanel-sites
| Quota: 0 bytes
| NameServer1: xxx.ac.uk
| NameServer2: xxx.ac.uk
| NameServer3:
| NameServer4:
| Contact Email:
| Package: default
| Feature List: default
| Language: en
+===================================+
Custom Account Data Provided: no
Adding Shell Access (y)
Successlocaldomains...valiases ...vdomainaliases ...vfilters ...Zone somesite.com has been successfully added
Reconfiguring Mail Routing:
LOCAL MAIL EXCHANGER: This server will serve as a primary mail exchanger for somesite.com's mail.:
This configuration has been manually selected.
nameserver: reload skipped on [serverhostname] (nameserver disabled)
wwwacct creation finished
Account Creation Ok
real 2m11.066s
user 0m0.504s
sys 0m0.162s
Should also note that CSF is installed and configured, however disabling it complete makes no difference to these times, so I'm fairly sure it's not a misconfigured firewall.
Appreciate any tips/thoughts/etc. as I'd like to get that time down a bit if possible..
Cheers
Tom