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:rn rn Limit CPU ti
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. n Here’s an example of how to use iptables to limit the number of connect
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:rn rn Open a terminal window on your Linux system. rn Type the following command: rn rn rn rn lsblkrn
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:rn rn Display the contents of a file: rn rnTo display the contents of a file, simply use the cat command followed by the file name.
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:rn rn Open a terminal window on your Linux system. rn Navigate to the location where you want to create the new directory using the cd command. For example: rn rn rn rn cd /home/y
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:rn rn Open a terminal window on your Li
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: n n Open a terminal window by pressing Ctrl + Alt + T or by searching for “Terminal” in the application launcher. n Type the following command and press Enter: n
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:rn rn Connect to your server using SSH. rn To start Apache, enter the following command: rn rn rn rn sudo systemctl start httpdrn rn rnThis will start the Apache web server.rn rn To stop
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:rn rn Connect to your remote server using SSH. rn Open the /etc/selinux/config file using a text editor. You will need root privileges to edit this file. For example: rn rn rn rn sudo vi /etc/selinux
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:rn rn SCP (Secure Copy): rn rnSCP is a command-line tool that allows you to securely copy files between servers using the SSH protoc
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:rn rn Open the sshd_config file: rn rn rn rn sudo vi /etc/ssh/sshd_configrn rn rn rn Find the line that begins with ListenAddress : rn rnIf the line exists, you can skip this step. If not,
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:rn rn Rename a single file: rn rnTo 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"
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 re
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:rn rn rn grep PATTERN rn rn rnwhere:rn rn OPTIONS: Any options you want to use with the command
Truncate Large Text File in UNIX / Linux
To truncate a large text file in UNIX or Linux, you can use the “truncate” command. n The general syntax for the “truncate” command is: n n n truncate ... SIZE FILE... n n n where: n n OPTION: Any options you want to use with the command (e.g., -s for specifying the size in b
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:rn rn rn mv -- -filename destinationrn rn rnThe 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
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:rn rn 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 repositorie
2,685 guides published.
