Linux

Adding and Deleting route

Add Route======== Code: [Select] # route add default gw GATEWAY_IP eth0 Delete Route========== Code: [Select] # route del default gw GATEWAY_IP Check Routing Table=============== Code: [Select] # route -n Or Code: [Select] # netstat -r -n Sample Output : Kernel IP routing tableDestination     Gateway         Genmask          Flags  MSS […]

Apache * Php * WHM/Cpanel

Recompiling apache

Method 1: Recompilation from WHM===========================1. Login to the WHM of the server as user root.2. Go to Software >> EasyApache (Apache Update) 3. Select a profile to load and click “Start customizing based on profile”.4. Select the Apache version and click next step. 5. Select the Major PHP Version and click next step.6. Select the […]

Linux * MySQL

ERROR 1153 : Got a Packet Bigger Than ‘Max_allowed_packet’ Bytes”

You may have come across this error before while trying to restore mysql databases, it can be easily fixed by increasing max_allowed_packet value. Check the current value first. Get into mysql prompt and enter the following query :select @@max_allowed_packet;Then you can increase the value either by adding the variable in my.cnf file or executing the […]