Outsource Support Blog
Mass changes to DNS zones on a cpanel server
Let’s say you have a DNS server change, and need to update the zone records on all your domains to use the new name server “NS” records. Rather then going through each and every one of them in the WHM, you can run these 2 simple commands. cd /var/named;grep -lR ns.oldnameserver.com *.db >> fixfiles.txt for …
Common DNS syntax errors
Your Internet Address has changed since the beginning of your Mail session
How to block wordpress logins and xmlrpc with no referer
If you are getting flooded with wordpress login attempts by a suspected hacker, you can add the following rule to mod security in /usr/local/apache/conf/modsec2.user.conf This rule will block any access to wp-login.php that does not contain a referer #block wp-lgoin.php with no referer <Locationmatch “/wp-login.php”> SecRule REQUEST_METHOD “POST” “deny,status:401,id:5000130,chain,msg:’wp-login request blocked, no referer’” SecRule &HTTP_REFERER …
Some common postfix commands
Mod_security and cPanel temp URL’s
If you have a customer that is getting ModSecurity errors when accessing parts of their site using a temp URL like this: http://host.servername.com/~theirusername You may want to whitelist the rule that is blocking the page, however you can not just whitelist this on the users account itself. You need to make sure the whitelist happens …
How to check if iptables blocked your IP address, and how to remove a block if it did
linux: rm command gives Argument list too long error
If you have a folder that has a huge amount of files in it, and you want to delete everything, rm -rf * from within that folder should delete everything. However, if there are too many files in the folder for this command to handle, you’ll get an error like this: /bin/rm: Argument list too …
- Apache (22)
- ASP (1)
- CGI-Perl (1)
- CloudFlare (2)
- Coldfusion (2)
- Cpanel (75)
- CPVLabs (1)
- Customer Service (11)
- DNS (9)
- Domains (1)
- DSM (2)
- Email (17)
- enom (1)
- Exim (13)
- FTP (8)
- Help Desk (2)
- Hosting (60)
- HSphere (7)
- Htaccess (11)
- Joomla (1)
- Linux (88)
- Miscellaneous (14)
- Miva (1)
- MySQL (15)
- Networking (1)
- OpenVZ (1)
- Outsourced Support (58)
- PHP (10)
- Plesk (13)
- Postfix (2)
- Recent News (37)
- Security (37)
- Sendmail (6)
- Spam (5)
- Thrive (1)
- VPS (7)
- Webmail (3)
- WHMCS (1)
- Windows Servers (9)
- Wordpress (7)