Apache Website not loading – DDoS

Apache web server

On a Fresh Cpanel Server, after pointing the domain name to the server, the website won’t load. Some times site loads after a very long wait. Apache was working fine and the server load was normal. On checking Apache status in WHM, I found all workers are in use 150 requests currently being processed, 0 … Read more

How to Open Port in Amazon EC2 instance

By default Amazon EC2 only allow port 22 (SSH) on Linux servers and port 3389 (RDP) on Windows Instances. All other ports are closed for security reasons. Depending on your use case, you may need to open ports on the security group to allow connection to applications you run on the EC2 instance. Log in … Read more

schema

Schema validator https://validator.schema.org/ Google Rich test https://search.google.com/test/rich-results

rsyslog Unsafe symlinks encountered in /var/log, refusing

Ubuntu

When updating packages on an Ubuntu server, I got the error “Unsafe symlinks encountered in /var/log, refusing.”. root@ip-172-31-45-33:/var# apt upgrade -y Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this … Read more

How to Split large CSV file into smaller files

To split a large CSV file into smaller parts, you can use the split command tail -n +2 access_log.csv | split -l 50000 – –filter=’sh -c “{ head -n1 access_log.csv; cat; } > $FILE”‘ The above command will split file access_log.csv into smaller parts, each part will have the header from the CSV file. split … Read more

Nginx ModSecurity Not able to open file

On an Nginx server after updating Nginx and ModSecurity, I got the following error [root@localhost ~]# nginx -t nginx: [emerg] “modsecurity_rules_file” directive Rules error. File: /etc/nginx/modsecurity.conf. Line: 275. Column: 51. “/etc/nginx/coreruleset-3.3.2/rules/*.conf”: Not able to open file. Looking at: ‘”/etc/nginx/coreruleset-3.3.2/rules/*.conf”‘, ‘”/etc/nginx/coreruleset-3.3.2/rules/*.conf”‘, ‘/etc/nginx/”/etc/nginx/coreruleset-3.3.2/rules/*.conf”‘, ‘/etc/nginx/”/etc/nginx/coreruleset-3.3.2/rules/*.conf”‘. in /etc/nginx/conf.d/default.conf:5 nginx: configuration file /etc/nginx/nginx.conf test failed [root@localhost ~]# To fix the … Read more

Linux Disk Quota

XFS quota not working RAID 1 To check disk quota for a Linux user, run quota -svu USERNAME_HERE Sample [root@shaft ~]# quota -svu informatiqc Disk quotas for user informatiqc (uid 1000): Filesystem space quota limit grace files quota limit grace /dev/md3 382M 0K 0K 9116 0 0 [root@shaft ~]#

DDoS Protection Service

DDoS Protection https://sucuri.net/website-firewall/ http://cloudflare.com https://ddos-guard.net – used by rt.com https://path.net/ DDoS Protected Hosting https://www.hyperfilter.com – DDoS protected hosting https://koddos.net Back to DDoS