Error :MySQL server has gone away Solution: If you get MySQL server has gone away when using MySQL ODBC driver then you need to add the following variables into my.cnf file1 1) Open /etc/my.cnf file and add the following variable max_allowed_packet=...
Category: Uncategorized
Uncategorized
Commonly used LINUX command
How to display the 10th line of a file? head -10 filename | tail -1 How to remove the header from a file? sed -i '1 d' filename How to remove the footer from a file? sed -i '$ d'...
Uncategorized
restart Apache automatically when high load
Question: How to set Cron to restart Apache automatically ? Ans: You can add the following cron to restart Apache automatically when it was down for any reason or if the server load is 20. vi /var/spool/cron/root */2 * *...
cPanel, Uncategorized
reset ssh port through WHM
If you mess up with the SSH setting’s on your server and lock yourself out of ssh then you can reset the SSH configuration settings from WHM by following the below steps : Login to your WHM on a non...