Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
PHP Security: Limit Resources Used By Script
To improve the security and stability of your PHP web applications, you can limit the amount of system resources that a script can consume. This can help prevent resource exhaustion attacks and other types of abuse. Here are some ways to limit the resources used by a PHP script: Limit CPU time: You
Iptables Limits Connections Per IP
You can use the iptables firewall tool to limit the number of connections that can be established to your server from a single IP address. This is useful for preventing denial-of-service attacks and other types of abuse. Here’s an example of how to use iptables to limit the number of connections per
Show Linux Partitions Command
To show Linux partitions on your system, you can use the lsblk command, which lists all available block devices (i.e., storage devices) in a tree-like format. Here's how to use the lsblk command: Open a terminal window on your Linux system. Type the following command: lsblk This will list all availa
How To Use cat Command In Linux / UNIX
The cat command in Linux/UNIX is used to concatenate and display files, as well as to create and edit files. Here are some basic examples of how to use the cat command: Display the contents of a file: To display the contents of a file, simply use the cat command followed by the file name. For exampl
Linux: How to Make a Directory Command
To make a directory (i.e., create a new directory) on a Linux system, you can use the mkdir command. Here's how to do it: Open a terminal window on your Linux system. Navigate to the location where you want to create the new directory using the cd command. For example: cd /home/yourusername This wil
LinuxACPI: I/O resource it87 [0x295-0x296] conflicts with ACPI region IP__ [0x295-0x296] Error and Solution
The error message "LinuxACPI: I/O resource it87 conflicts with ACPI region IP__ " indicates that there is a resource conflict between two devices in your system. This can cause problems with system stability and performance. Here's how to resolve this error: Open a terminal window on your Linux syst
Ubuntu Linux Display List of Ethernet Adapter
To display a list of Ethernet adapters on an Ubuntu Linux system, you can use the ifconfig command. Here’s how to do it: Open a terminal window by pressing Ctrl + Alt + T or by searching for “Terminal” in the application launcher. Type the following command and press Enter: ifconfig - a This will di
Start / Stop / Restart Apache Web Server Via SSH
To start, stop, or restart the Apache web server via SSH, you can use the systemctl command. Here's how to do it: Connect to your server using SSH. To start Apache, enter the following command: sudo systemctl start httpd This will start the Apache web server. To stop Apache, enter the following comm
Turn on SELinux in Redhat or CentOS Linux Over Remote SSH Session
You can turn on SELinux in Redhat or CentOS Linux over a remote SSH session by following these steps: Connect to your remote server using SSH. Open the /etc/selinux/config file using a text editor. You will need root privileges to edit this file. For example: sudo vi /etc/selinux/config Find the fol
Transfer Files From One UNIX Server To Another Server Using Windows / Linux Desktop
To transfer files from one UNIX server to another server using a Windows or Linux desktop, you can use several different methods. Here are a few common ways to do this: SCP (Secure Copy): SCP is a command-line tool that allows you to securely copy files between servers using the SSH protocol. To use
Linux/UNIX: Configure OpenSSH To Listen On an IPv6 Address
To configure OpenSSH to listen on an IPv6 address, you need to modify the sshd_config file. Here's how to do it: Open the sshd_config file: sudo vi /etc/ssh/sshd_config Find the line that begins with ListenAddress : If the line exists, you can skip this step. If not, add the following line: ListenAd
HowTo: Linux Rename Files
To rename files in Linux, you can use the mv command. Here are some examples of how to use mv to rename files: Rename a single file: To rename a single file, simply use the mv command followed by the current file name and the new file name. For example, to rename a file named "oldfile.txt" to "newfi
Regular expressions in grep ( regex ) with examples
grep is a powerful command-line tool that allows you to search for text patterns in files using regular expressions (regex). Regular expressions are a powerful way to describe patterns of text, allowing you to search for much more than just literal strings. Here are some examples of how to use regul
Linux tar Extract Files Command
To extract files from a compressed tar archive on Linux, you can use the tar command with the xvf options. The x option specifies that you want to extract files, the v option stands for "verbose" and will show you the names of the files being extracted, and the f option is used to specify the archiv
Grep Count Lines If a String / Word Matches on Linux or Unix System
To count the number of lines in a text file that contain a specific string or word on a Linux or Unix system, you can use the grep command with the -c option. The general syntax for the grep command is: grep PATTERN where: OPTIONS: Any options you want to use with the command (e.g., -c to count the
Truncate Large Text File in UNIX / Linux
To truncate a large text file in UNIX or Linux, you can use the “truncate” command. The general syntax for the “truncate” command is: truncate ... SIZE FILE... where: OPTION: Any options you want to use with the command (e.g., -s for specifying the size in bytes, -c for not creating the file if it d
Linux / UNIX : Move File Starting With A Dash
If you want to move a file that starts with a dash ( - ), you can use the following command: mv -- -filename destination The double dash -- tells the mv command that there are no more command line options, and that the remaining arguments are file names. For example, if you want to move a file named
CentOS / Redhat Linux: Install Keepalived To Provide IP Failover For Web Cluster
Keepalived is a daemon that provides simple and robust facilities for load balancing and high-availability to Linux based infrastructures. It uses the VRRP (Virtual Router Redundancy Protocol) protocol to provide a highly available IP address to be used as a default gateway by clients. If the primar
UNIX / Linux: Explains setuid File Permission
In UNIX and Linux, file permissions are defined by three sets of permissions for three types of users: the owner, the group, and others. These permissions are read (r), write (w), and execute (x). In addition to these basic permissions, there is a special type of file permission called setuid (short
CentOS / Redhat: Install nginx As Reverse Proxy Load Balancer
To install and configure Nginx as a reverse proxy and load balancer on CentOS or Red Hat, you can follow these steps: Install the EPEL repository if it is not already installed on your system. EPEL provides additional packages that are not available in the official CentOS or Red Hat repositories. Yo
2,685 guides published.
