The server path to date can very for different servers, you will need to run this command to find it: which date For most servers it is: /bin/date This is the same for perl and php
fsck -a Will automatically fix errors.
Kernal version uname -a Nic / Lan driver version dmesg | grep r8169 Internet controller lspci -nn | grep Ethernet Details on etho nic card sudo ethtool eth0 Module size lsmod | grep r8169 Module versions cat /proc/modules | grep Continue Reading
CPanel has added mod_bandwidth into the easy apache so you can just run this to limit bandwidth on an account: /scripts/setbwlimit –domain=your-main-domain.com –limit=8000000 I am leaving the old post just for reference below: I spent hours trying to get mod_bandwidth Continue Reading
You could also use find and sed, but I find that this little line of perl works nicely. perl -pi -w -e ‘s/search/replace/g;’ *.php -e means execute the following line of code. -i means edit in-place -w write warnings -p Continue Reading
The trick is to limit I/O bandwidth for rsync. The –bwlimit option limit I/O bandwidth. You need to set bandwidth using KBytes per second. For example, limit I/O bandwidth to 10000KB/s (9.7MB/s), enter: rsync –delete –numeric-ids –relative –delete-excluded –bwlimit=10000 /path/to/source Continue Reading
The default MYSQL port is: 3306
To see every process type: ps -A To see every process except what’s running from root type: ps -U root -u root -N
Simple when logged in with the user type: passwd Then enter the new password twice to save it. To change the root password on a Linux server you have to be logged in as root.
1. Restart the httpd service. This might free a little space some times. 2. Check for apache logs like error_log, access_log , suexec_log in /usr/local/apache/logs . These can either be cleared off or if you need the logs then you Continue Reading