I'm trying to import script installations from Fantastico using the CLI import utility at /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/import.cmd.php but it's dying after processing only 10 users or so.
It appears to be memory based as if I increase the memory limit it's able to process more users - a 400MB limit allowed an import of 19 accounts.
There are a few thousand users to import on this machine so it's not going to be possible to import them with the memory usage as it is.
I have also tried the Import feature on the WHM side but it's too slow for the number of users we have - I'd like to leave the CLI script running in screen and come back to it later.
If I run strace on the CLI script I can see that, for each user it processes, it's causing an lstat64() on all files in /var/cpanel/users - perhaps the results of this are being cached or just leaked?
Is there a way to run import.cmd.php and import one user at a time? We can cope with the high memory usage for each iteration and just run it in a loop.
There is a patch for this in the next release of Softaculous i.e. 4.0.6 which is due this week.
If you want we can apply the patch for you, just open a support ticket with the root details of your server.
----------------------- Creating Websites just keeps getting EASIER with Softaculous.
Join Softaculous :