The logs at /var/log are not getting rotated with the result that the files are bloating in size and filling up the server. The command sudo logrotate -f /etc/logrotate.d/rsyslog shows the error error: skipping “/var/log/syslog” because parent directory has insecure permissions (It’s world writable or writable by group which is not “root”) Set “su” directive
Category: Optimizing Site
Check Folder/ Directory Size With SSH + Delete Folder/ Directory With SSH
I backup my files by creating a tar folder and transporting it to a remote location. I use the simple but effective technique documented here. Recently, I was shocked to find that the tar file had bloated to several GB in size. I looked in the public_html folder but could not find any suspicious file.
How To Force Download Files In Apache 2 | Ubuntu
To force the files to be downloaded and not open in the browser, the following commands have to be entered
Enable CSF Block Lists To Block Bots Malicious Traffic
CSF or Config Server Firewall is an essential firewall that every VPS should have in order to protect the server from being bombarded by thousands of malicious bots. The bots do various nefarious activities such as ‘port scanning’ (looking for which ports are open and vulnerable for intrusion), ‘Brute force login’ (guessing various combinations of username and password) etc
Nginx.conf rules for Wordfence Falcon Engine Caching when using Nginx and PHP5-FPM
Wordfence is a free WordPress plugin that provides security for your wordpress installation. It has a nice feature that scans your wordpress files and compares it with the original to see if they have been modified. However, the scan is not foolproof. It does not cover all the core wordpress files or the themes or
MicroAd Hijacks Browsers & Hides Google Adsense Ads
I have several websites where I have Google Adsense Ads running. Today, when I was browsing my websites, I was surprised to see some shady-looking ads showing. The ads appeared to be of companies called “Poster Gully”, “Styleever”, “fashion equation.com” etc. If you peer closely at the ads, you will find an icon towards the
php5-fpm process is consuming the CPU resources & RAM
Today morning, I posted something which drew a flock of people to my website. I had concurrent visitors of about 100 + according to Google analytics. They were downloading a 1 MB pdf file. My VPS is powered by easyengine (nginx + php-fpm). I also have WP Super Cache installed. At such situations (when there
VPS Used To Send Spam Email Messages
Today morning, I got a shocking message from servermania. “New support ticket was created Subject: Abuse – 23.236……. Hello, This message is to notify you that your server located at 23.236……. is now in violation of our Terms of Service located at http://www.servermania.com/tos.htm and is subject to account suspension leading up to termination without notice.
My Site VPS2.Me Is The Subject Of A DDOS Attack (!)
All of a sudden this site went offline even though other sites on the same VPS operating through different I. P. Addresses were in operation. I shot off a mail to ServerMania to ask what was going on. The reply surprised me: “Hello, Your machine has been the target of a DDoS attack, we have
My VPS Got Hacked And Was Used For A “100 Mbit Outbound DDOS Connection”
I have a VPS which is used only to send emails to about 30,000 subscribers. I have been doing so for several years. All the subscribers are double opt-in confirmed. The I. P. address is white-listed and everything works well. The VPS is used sparingly. All of a sudden, I received an email today from