CloudLinux

CloudLinux has 2 types of licenses, IP based and key based. You can check the type of license you have at https://cln.cloudlinux.com/console/check-license If you have IP based, run For key-based, run PHP Selector

Nginx Redirect

Redirect www domain to non-www If you use custom ports, use Redirect Naked Domain to www Redirect a site to HTTPS Here is a config with HTTP SSL verification Another way to redirect to HTTPS is by using To redirect a specific URL to another URL If you want to redirect a URL that matches … Read more

ufw

The Uncomplicated Firewall (ufw) is a user-friendly interface for managing netfilter, the standard firewall utility included with most Ubuntu and Debian-based Linux distributions. ufw simplifies firewall configuration by providing straightforward commands for enabling, disabling, and managing firewall rules without requiring extensive networking knowledge. To enable ufw to start automatically at boot: To start or stop … Read more

PowerDNS

Install PowerDNS Install PowerDNS on Ubuntu 20.04 PowerDNS Command line List all DNS Zones pdns_control list-zones pdns_control list-zones slave Delete a DNZ Zone pdnsutil delete-zone DOMAIN_NAME To notify slave DNS server pdns_control notify DOMAIN_NAME PowerDNS Admin Python Django application to manage PowerDNS servers. https://github.com/PowerDNS-Admin/PowerDNS-Admin powerdns cpanel

gcloud

Detach a disk from Google Compute Instance Install Google Cloud SDK Google Cloud apt signatures couldn’t be verified Google Cloud SSH using gcloud command line Google Cloud open a port in firewall Create Kubernetes cluser using gcloud Cloud SQL Connect to Google Cloud SQL gcloud components gcloud components list gcloud components install beta gcloud components … Read more

Detach a disk from Google Compute Instance

To remove a disk from Google Compute instance, run gcloud compute instances detach-disk INSTANCE_NAME –disk=DISK Example Here “indiameds” is name of the disk i want to detach from google compute instance with name “debug-instance”. Google Cloud only allow detaching secondary disks. Boot disks can’t be detached, only way to detach a boot disk and attach … Read more

varnish

How to change varnish port in Ubuntu To clear cache, run /usr/bin/varnishadm -S /etc/varnish/secret -T 127.0.0.1:6082 “ban req.http.host ~ .*” Get stats varnishstat See Varnish logs varnishlog To view logs for “Error 503 Service Unavailable” error. varnishlog -q ‘RespStatus == 503’ -g request mod_rpaf help with showing users real IP when site is behind a … Read more

proxy

Squid ShadowSocks Tor Reverse proxy proxychains Web Proxy debugging proxy Install mitmproxy proxy OWASP Zed Attack Proxy Project https://www.telerik.com/fiddler https://portswigger.net/burp Charles HTTP proxy

install sysstat on centos

To install sysstat/sar on CentOS, run yum install sysstat Enable and start sysstat systemctl enable sysstat systemctl start sysstat systemctl status sysstat Allow several minutes to collect data, then you will be able to see stats with sar ommand. See sar