Here are some things Sean and I have found useful. Please execute at your own risk, some of these commands are powerful, man. These are intended to be used in a Linux/cPanel environment.
Sometimes they don’t happen or break
/scripts/cpbackup –force
/usr/local/cpanel/bin/backup –force
/usr/local/cpanel/logs/cpbackup/
You can use these to do all sorts of things, or nothing.
RewriteCond %{HTTP_HOST} ^foxtrotmedia.com [NC]
RewriteRule (.*) https://www.foxtrotmedia.com/$1 [L,R=301]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.justmailto.com/$1 [R,L]
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
order deny,allow
deny from all
allow from 123.123.123.123
RewriteCond %{REQUEST_URI} !^/thatpage.php [NC]
RewriteRule ^(.*)$ /thatpage.php [R=301,L]
Where did I put my gun, oh yeah, I set it down when I got this cake.
find . -type f -name error_log -exec ls -la {} \;
find . -type f -name thefile.php -exec ls -la {} \;
grep -H -r ‘STRINGGOESHERE’ /home | cut -d: -f1
find . -type f -name “*backup-*.gz” -exec ls -la {} \;
find . -mtime -5 -exec ls -la {} \;
This may help you avoid getting you blacklisted someday.
exiqgrep -o 4 -i | xargs exim -Mrm
exiwhat
exim -bpc
tail -f /var/log/exim_rejectlog
tail -f /var/log/exim_mainlog
Looking for owls?
/usr/local/cpanel/3rdparty/bin/clamscan
/usr/local/cpanel/3rdparty/bin/clamscan -ir /home/ -l clamscanreport
clamscan -ir /home/username -l clamscanreport
clamscan -ir / -l clamscanreport
clamscan -i -r /home/robinsons
This is stuff I always forget.
http://www.sitename.com/component/user/reset.html
root@cammy [/home/USER/public_html/catalog/admin]# find . -type f -exec chmod 644 {} \;
root@cammy [/home/USER/public_html/catalog/admin]# find . -type d -exec chmod 755 {} \;
Verify its not running. Find the PID that it might be running under by doing the following:
cat /var/run/easyapache.pid
If the file doesn’t exist (or the pid isn’t an active process), then do the following:
rm -f /usr/local/apache/AN_EASYAPACHE_BUILD_IS_CURRENTLY_RUNNIN
copy file1.txt+file2.txt all.txt
copy * schoeps.txt