Migrate/clone WHM settings between cPanel/WHM servers

If you want to clone or migrate between cPanel/WHM servers, the cpconftool is available and should make life a little bit easier unless you automated configuring all the options through the cPanel/WHM api.

As far as usage goes, it’s fairly standard: check what modules are tracked

[[email protected] ~]# /usr/local/cpanel/bin/cpconftool –list-modules

Backup the modules and then restore them on the target server.

/usr/local/cpanel/bin/cpconftool [–restore=file|–backup|–list-modules|–query-module-info] –modules=MODULE,MODULE,MODULE [–prerestore_backup] [–verbose]
[[email protected] ~]# /usr/local/cpanel/bin/cpconftool –modules=cpanel::easy::apache,cpanel::smtp::exim,cpanel::system::backups,cpanel::system::mysql,cpanel::system::whmconf,cpanel::ui::themes –backup
Backup Successful

Restoration goes like this:

/usr/local/cpanel/bin/cpconftool –modules=cpanel::easy::apache,cpanel::smtp::exim,cpanel::system::backups,cpanel::system::mysql,cpanel::system::whmconf,cpanel::ui::themes –restore /home/whm-config-backup-cpanel__easy__apache-1.0.0_cpanel__smtp__exim-10.990000_cpanel__system__backups-

If you came to this page and you’re looking for someone to make all your server related problems go away, feel free to drop us a message and we’ll get back to you asap.


So i have a Windows 2016 Datacenter edition EC2 instance that was used for a SQL server and it’s killing me today with the INACCESSIBLE BOOT DEVICE blue screen.

Here’s me documenting what i tried to use to fix it and things that failed:


  • Take snapshot of the instance
  • Stop instance
  • Detach root volume
  • Create a secondary windows instance, which i’ll be using for restore purposes and log on via RDP to it.
  • Points 1 2 3  below are happening with the volume attached to the recovery instance, after which i detach it, and reattach it to the damaged instance, and boot it up, see if it works.
  • Between each failed point 1 2 3 etc, i am detaching the volume from the damaged instance, and attaching it back to the rescue instance to try the next thing. Make sure you attach it as “/dev/sda1”, as that’s the root mount.

[Things that have failed so far]

1 – Attach it to the recovery instance, run CMD in an elevated prompt and run the command below(didn’t boot):

bcdedit /store D:\boot\bcd /set {default} bootstatuspolicy ignoreallfailures

2 – Use DISM to figure out if it was an automated windows update that installed some patch that bricked it (wasn’t)

dism /Image:D:\ /Get-Packages

3 – Installed EC2 Recovery tools and tried using the offline mode both to “fix boot issues” and “restore last known registry config” (neither worked)

4 – Running a SFC scan to see if there’s any integrity issues (didn’t work):

sfc /scannow /offwindir=d:\windows /offbootdir=d:\

5 – Attempt to rewrite the boot records with bcdedit:

bootsect /nt60 D: /mbr
D:\windows\system32\bcdboot.exe D:\Windows /s D:
bcdedit /store D:\Boot\BCD /set {default} device partition=D:
bcdedit /store D:\Boot\BCD /set {default} osdevice partition=D:
bcdedit /store D:\Boot\BCD /set {bootmgr} device partition=D:

6 – Re-create the boot partition:

bcdboot C:\Windows /S D:

The system received an error from the “MySQL” database “mysql”: ER_PASSWORD_NO_MATCH (Can’t find any matching row in the user table)

One of my proactive management customers came up to me today with an issue he’s been having on one of his cPanel/WHM servers: he has been trying to add a user to a database he created and he received this error:

The system received an error from the “MySQL” database “mysql”: ER_PASSWORD_NO_MATCH (Can’t find any matching row in the user table)

Apparently commenting out skip-name-resolve in /etc/my.cnf fixed it.

then run a MySQL server restart with: /scripts/restartsrv_ mysql and you should be good to go.

How to fix -> npm ERR! cb() never called!

npm install
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>

I got this error today on a cPanel server where i am running a node.js app that’s reversed proxy to, by Nginx. The error happens when trying to run “npm install” on a large project where roughly 1200 modules should be installed. What happens is that not all of them got installed and some were missing the binaries.

After doing a ton of googling, i found that the ulimit might be an issue, so i went ahead and disabled “Shell and fork bomb protection” that limits the ulimit to 100.

Restart the shell and npm install worked without issues due to having ulimit set to 4096.

Good luck!

De prin 2013

Acum am stat si ma uitam la articolele din urma sa imi dau seama cam pe cand am oprit firul povestii. Geez, nu am mai scris nimic personal de prin 2012-2013. Oricum am devenit un pic mai senil ca nu mai imi aduc aminte bine de tot ce faceam pe atunci, asa ca o sa condensez un pic lucrurile intr-un sumar:

  • Cateva vacante interesante
  • Schimbat de vreo 2 ori job dar eventually am gravitat tot spre a lucra pt mine, freelancing and stuff
  • Am adunat mai multa experienta in materie de: network architecting, Security, DevOps, Docker, AWS, cloud infrastructure.
  • Am participat la un accelerator cu un start-up la care inca lucrez, si am facut demo in New York, am iesit pe locul 9 din vreo 5500 participanti. (au acceptat pe primii 8 – life sucks)
  • Am lucrat cam 1 an si jumatate sa fac un joc in VR dar l-am inchis dupa o vreme pt ca nu ne indreptam spre directia buna si era destul de inceata treaba, dar am invatat o tona de chestii faine. Poate cand o sa am timp/partenerii potriviti si fonduri o sa reiau lucrul la Sjoc dar momentan it’s on ice. Ce am lucrat se poate vedea aici: https://www.spinningboxvr.com/
  • Start-upul la care lucrez momentan – am reusit sa achizitionam primii 2 clienti si suntem in productie. Se pare ca o sa fie bine, dar mai trebuie efort.
  • Nu mai stau in chirie. Got own home now.
  • Got a baby boy!
  • Am cumparat prima mea masina noua.
  • Am cunoscut o tona de oameni interesanti.
  • Am devenit foarte implicat in crytocurrencies.
  • I became unlocked 🙂
  • Am slabit, m-am ingrasat, sunt in proces de slabire din nou.
  • Sper ca am devenit un pic mai destept si sper sa nu repet greselile din trecut.

Cam asta e sumarul la chestiile care s-au intamplat. Nu cred ca am stat degeaba si sper sa fac si mai multe in viitor. Trebuie doar sa imi modific programul bine si sa power through things.

Life is good.

Voi cum mai sunteti?

Ubuntu how to right click and scroll

I have not been using my Ubuntu laptop touchpad for ages, but recently i have been traveling and i am taking my laptop out every day, so i have to use the touchpad way more frequently.

A wrench got thrown in my thinking process when i saw i cannot right click or edge scroll but it looks like this behavior was just changed. If it’s simpler or not it’s for you to judge:

Right clicking in Ubuntu is now achieved by using 2 fingers to click on the touchpad.

Edge scroll seem to not be working anymore, however you can scroll by using 2 fingers instead of one, anywhere on the touchpad.

Happy Ubuntu-ing!

Ubuntu – close Discord but notifications still come

So i am using Discord a lot and i have encountered this problem more than once: you close Discord but the notifications still come even though the icon in the systray is not there. Pretty annoying right?

I found 2 cool things to deal with this:

1 – https://extensions.gnome.org/extension/1031/topicons/ – install topIcons Plus – this will show you the systray at the top and if you close any program from there, it really stays closed.

2 – press “control+q” while having Discord opened. – same result.


Atat de multe

Iar incep asa cum incepeam odata sa spun 🙂 S-au intamplat multe, atat de multe schimbari si atat de multe lucruri noi. O sa dureze ceva sa impartasesc tot.

Era un obicei fain sa scriu pe blog din chestiile interesante care mi se intampla. Cred ca ajuta un pic si sa revizitez actiunile din trecut, si sa constientizez mai bine si daca se poate, sa invat mai mult din experientele avute, fie ele bune sau rele. It’s all part of the game!

Nu stiu daca mai citeste cineva, dar as vrea sa fac asta in primul rand pentru mine. E un proces bun si imi pare rau ca am uitat sa il folosesc in viata de zi cu zi.

Am mai citit din postarile din trecut si am zambit. Multe chestii au fost distractive. Cred ca am evoluat, si cred ca mai sunt povesti care merita spuse, asa ca am inceput cu o mica curatenie, am schimbat tema sa fie foarte minimal si … nowhere to go but up.

In continuare o sa mai existe posturile in engleza despre tech si chestii care le pastrez in jurnal pentru ca sunt chestii de care ma lovesc sau am nevoie mai frecvent. Pe langa ele, o sa fie postari despre ultimii … ani in care a fost tacere.

A fost o aventura decenta si o sa incerc sa aduc incetisor totul la zi.

Daca mai e cineva care ma citeste – salutare si imi pare bine sa va revad. Daca nu – salutare viitorilor cititori 😉