.htaccess
http://www.webweaver.nu/html-tips/web-redirection.shtml
http://www.htaccesstools.com/
http://www.webweaver.nu/html-tips/web-redirection.shtml
http://www.htaccesstools.com/
In Linux I prefer using smartctl smartctl -i /dev/sda or hdparm -I /dev/sda | grep Serial Megacli RAid card — megacli -PDList -aALL or hdparm -I /dev/sdX | grep -i ‘serial’ Adaptec —- /usr/StorMan/arcconf getconfig 1 ================================ For Windows https://whatsonmypc.wordpress.com/2011/09/01/wmic/ If you have many hard drives like me, use this instead to help you know…
You can set your SSH port through the command line by editing the ssh configuration file ( /etc/ssh/sshd_config ) with this command. Note: if you are runnning a firewall on the server you will want to open the desired port before proceeding. nano /etc/ssh/sshd_config You can now edit the configuration file. It will start something…
http://superuser.com/questions/170866/how-to-run-a-cron-job-as-a-specific-user crontab -u <username> -e 0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1 30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1 35 3 * * * /usr/local/cpanel/scripts/upcp –cron 0 1 * * * /usr/local/cpanel/scripts/cpbackup 0 2 * * * /usr/local/cpanel/bin/backup 35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check 45 */4 *…
Unfortunately due to the limited availability of IP addresses sometimes they are re-used from sources that have been black listed in the past. Generally blacklists are updated within 30 days of an IP not being reported for spam. However many services like Microsoft, Google, Yahoo and others, have taken to using their own systems…
http://www.wikihow.com/Find-a-File-in-Linux find / -type f -iname “libphp5.so” find / -type d -iname “ibdata1” find / -type f -iname “*arcconf” grep -R ‘AllowNoPassword’ / egrep ‘User’ /etc/apache2/apache2.conf grep DocumentRoot /etc/apache2/apache2.conf To find files larger than 100MB, use this command: find / -type f -size +100000k -exec du -h {} \; Search within files for specific text:…
https://www.lisenet.com/2014/measure-and-troubleshoot-linux-disk-io-resource-usage/ smartctl -a /dev/sda SMART attributes to watch out for: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000b 100 100 050 Pre-fail Always – 0 2 Throughput_Performance 0x0005 100 100 050 Pre-fail Offline – 0 3 Spin_Up_Time 0x0027 100 100 001 Pre-fail Always – 12029 4 Start_Stop_Count 0x0032…