• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Why is Plesk domain creation slow ?

Micro$oft

New Pleskian
Hi,
I wrote a bash script for cli.

Example;
Code:
#!/bin/bash
echo "Hesaplar oluşturuluyor."
plesk bin subscription --create domain2.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user2 -passwd "password"
plesk bin subscription --create domain3.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user3 -passwd "password"
plesk bin subscription --create domain4.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user4 -passwd "password"
plesk bin subscription --create domain5.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user5 -passwd "password"
plesk bin subscription --create domain6.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user6 -passwd "password"
plesk bin subscription --create domain7.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user7 -passwd "password"
plesk bin subscription --create domain8.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user8 -passwd "password"
plesk bin subscription --create domain9.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user9 -passwd "password"
plesk bin subscription --create domain10.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user10 -passwd "password"
plesk bin subscription --create domain11.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user11 -passwd "password"
plesk bin subscription --create domain12.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user12 -passwd "password"
plesk bin subscription --create domain13.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user13 -passwd "password"
plesk bin subscription --create domain14.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user14 -passwd "password"
plesk bin subscription --create domain15.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user15 -passwd "password"
plesk bin subscription --create domain16.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user16 -passwd "password"
plesk bin subscription --create domain17.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user17 -passwd "password"
plesk bin subscription --create domain18.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user18 -passwd "password"
plesk bin subscription --create domain19.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user19 -passwd "password"
plesk bin subscription --create domain20.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user20 -passwd "password"
plesk bin subscription --create domain21.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user21 -passwd "password"
plesk bin subscription --create domain22.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user22 -passwd "password"
plesk bin subscription --create domain23.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user23 -passwd "password"
plesk bin subscription --create domain24.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user24 -passwd "password"
plesk bin subscription --create domain25.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user25 -passwd "password"
plesk bin subscription --create domain26.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user26 -passwd "password"
plesk bin subscription --create domain27.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user27 -passwd "password"
plesk bin subscription --create domain28.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user28 -passwd "password"
plesk bin subscription --create domain29.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user29 -passwd "password"
plesk bin subscription --create domain30.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user30 -passwd "password"
plesk bin subscription --create domain31.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user31 -passwd "password"
plesk bin subscription --create domain32.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user32 -passwd "password"
plesk bin subscription --create domain33.tld -owner admin -service-plan "Unlimited" -ip 148.251.17.250 -login user33 -passwd "password"
echo "Hesaplar oluşturuldu."


why is it so slow in the Plesk when this process is so fast in the cPanel ?

It's been 30 minutes.it's been very slow.
 
Last edited:
After each addition of a subscription, the webserver is restarted which may take some time.
I suggest you add this to the beginning of your script:
Code:
plesk bin server_pref -u -restart-apache 1800
And at the end of your script you add:
Code:
plesk bin server_pref -u -restart-apache 0
(or whatever value you had before)

This will make your webserver restart only once, after all subscriptions have been created. Maybe you give it another try with that method?

Edit: Small correction: It will make your webserver restart after the addition of the first subscription but not after the addition of the rest.
So at the end of your script you should probably also add a webserver restart to make your changes become effective immediately.
 
Last edited:
After each addition of a subscription, the webserver is restarted which may take some time.
I suggest you add this to the beginning of your script:
Code:
plesk bin server_pref -u -restart-apache 1800
And at the end of your script you add:
Code:
plesk bin server_pref -u -restart-apache 0
(or whatever value you had before)

This will make your webserver restart only once, after all subscriptions have been created. Maybe you give it another try with that method?

Edit: Small correction: It will make your webserver restart after the addition of the first subscription but not after the addition of the rest.
So at the end of your script you should probably also add a webserver restart to make your changes become effective immediately.

Unfortunately, these commands did not work, and are still opening accounts slowly.
 
I just ran your script (with restart interval 1800) on a test server here (Plesk Onyx 17.8, CentOS 7.7) and it completed in 4 minutes, so reasonably fast.

How many subscriptions do you already have on your server? What are the specs of your server (OS, HW, Plesk version)? And do you see anything interesting in syslog?
 
Back
Top