Repair/Optimize all cPanel/WHM databases

If you ever want to repair/optimize all databases on your cPanel server (this also works on non-cPanel servers by the way) all you have to do is run this: Repair all databases: mysqlcheck –all-databases -r Optimize all databases: mysqlcheck –all-databases...

Windows EC2 INACCESSIBLE BOOT DEVICE

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: [Preparations] Take...

Amazon EC2 add swap

If you want to add some swap to your Amazon EC2 instance, here’s the quick’n dirty: sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 sudo /sbin/mkswap /var/swap.1 sudo chmod 600 /var/swap.1 sudo /sbin/swapon /var/swap.1 To have the swap mounted on...

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....