How To Run Basic Shell Commands From PHP

Today I will be showing you how to run basic shell commands from a PHP script. While you can’t interact with these commands (for example top will not output or update, you can still use them to somewhat interact with your web server. Note that most shared web hosting providers block these functions in their php.ini settings for security reasons. After showing how this works, I will also show you how to block these functions on your own web server.

How To Use The Shred Command In Linux

While you can use the dd command to overwrite your files, you can also use shred. Shred by default will overwrite your files 3 times and is designed to make it very hard to recover those files. There are several options you can use such as how many times you wish to overwrite the specified file or files, how many bytes, etc. Here are the available options below.

How To Check For Dropped Packets In Linux

Today I will be showing you how to check your Linux servers for dropped packets. Dropped packets can occur for a number of reasons including but not limited to, actual network issues, NIC card issues, firmware issues, settings, and more. This will not be a guide on diagnosing why your packets are being dropped, but rather just finding out if it’s even occurring at all.