One of the most common command line tricks in Linux is to chain multiple commands using the pipe symbol i.e. you feed the output of one command as the input of another. This is called standard input and standard output redirection. PHP is usually used to program for the web but it can also be used as a shell scripting language to automate tasks and like any good shell scripting language it is possible to read from standard input and write to standard output using PHP.
Log rotation in CentOS Linux
Lots of daemons running in CentOS Linux create their own log files. These log files contain helpful messages pertaining to the operation of those daemons. For example error messages that help in diagnosing problems with the system. Over time these log files have to be rotated so that they are easier to manage. Log rotation is the process of splitting large log files and archiving old log files for future reference. In CentOS a program called logrotate is responsible for rotating log files. In this post I look at how to customize the operation of logrotate.
LAMP stack dominates the web
LAMP is a stack of software that forms the basis of most websites on the Internet. It consists of a Linux distribution, Apache web server, MySQL database management system, and PHP server side scripting language.
Apache MaxClients
Apache web server has a configuration option called MaxClients. MaxClients determines the maximum number of concurrent connections that Apache will service.
Linux DNS server query tools
Linux has a few Domain Name System (DNS) server query tools that you can access via the command line. You can use these tools to test whether your domain name’s authoritative nameservers are responding correctly or not. Using them you can diagnose problems with DNS records.