rename session 540x304 - How to rename an existing screen session in Linux?

How to rename an existing screen session in Linux?

To create a named session use: screen -S testsession to list all session: # screen -ls There is a screen on: 19415.something (Detached) 1 Socket in /var/run/screen/S-root. to rename an active session use -X sessionname screen -S 19415.something -X...

compass 540x304 - How to enable remote access to MongoDB 🍃 in cPanel

How to enable remote access to MongoDB 🍃 in cPanel

Here is how to enable remote access to MongoDB in cPanel: Open port on the firewallEnable remote access in mongodb.confCreate a new admin user for mongodb Open default MongoDB port 27017 on firewall Default port for mongodb is 27017 so we need to...

df - du and df show different sizes

du and df show different sizes

ncdu / du and df show different sizes: du is reading information from the directory tree, it is more accurate than df but slower.df reads meta data of the file system therefore it is faster, but not that accurate because it works with blocks...

domains 540x304 - List all Subdomains, Addon domains and Aliases for a cPanel account

List all Subdomains, Addon domains and Aliases for a cPanel account

Here are 2 ways to list all domaind for a cPanel account, including: Subdomains, Addon domains, Aliases and Parked domains. From cPanel Login to the user cPanel and go to “Domains” 2. From the terminal For each cPanel account there is a...

csf 540x304 - CSF: Check if IP address is blocked on the firewall

CSF: Check if IP address is blocked on the firewall

Here are different methods to check if an IP address is blocked in Config Server Firewall (CSF). Check if an IP is blocked in CSF from the WHM WHM > Config Server Firewall > Search for IP 2. Check if an IP is blocked in CSF from the terminal:...

image 12 - Display the last modified file in directory in cPanel ☑️

Display the last modified file in directory in cPanel ☑️

From the terminal (SSH): grep -Ril "find /home/username/public_html/ -type f -mtime -2" From a .php file: <?php $last=shell_exec('grep -Ril "find /home/username/public_html/ -type f -mtime -2"'); echo "<pre>$last</pre>"; ?> The...

tmpwatch remove emails 540x304 - Delete all emails older than 6 months with Cronjob in cPanel

Delete all emails older than 6 months with Cronjob in cPanel

Here is how to delete all emails older than 6 months from cPanel using a cronjob. First, we need to know the exact location where emails are stored. On cPanel, emails are stored in 3 folders: new – incoming emails are received in this...

csp error 540x173 - Improve web applications security with the Content Security Policy

Improve web applications security with the Content Security Policy

Content Security Policy (CSP)  is a security layer that can help you detect and mitigate Cross Site Scripting (XSS) and data injection attacks. If your web application displays and stores custom HTML/CSS from user input, then you most...