Server Administration
Analyze Apache Access Logs From the Terminal
Analyze Apache access logs from the terminal with awk, sort, uniq and grep: top client IPs, most-requested URLs, status-code counts and 404 hunts —…
Server Administration
Analyze Apache access logs from the terminal with awk, sort, uniq and grep: top client IPs, most-requested URLs, status-code counts and 404 hunts —…
Server Administration
Set file and directory permissions with chmod, numerically and symbolically, and you control exactly who can read, write, or execute anything on a Linux…
Server Administration
Log in to a remote server without a password using SSH keys. Generate an ed25519 key pair, copy the public key to the server,…
Database Administration
Reset the MySQL root password from the terminal when you are locked out, using skip-grant-tables recovery mode and ALTER USER to set a new…
Programming
Keep a user logged in across page loads with PHP's built-in session functions. session_start() opens the session, the $_SESSION array holds the data, and…
Programming
Hash and verify passwords in PHP with password_hash() and password_verify(). Store a secure bcrypt hash, check logins against it, and upgrade old hashes automatically…