Here is a small BASH script I wrote for root users to easily enable/disable MySQL general query logging. It will show status, create a log file, and replace the file
Category: Command-line
Linux command-line reference, examples, and help.
You can identify the directories and PHP settings which differ from the system PHP settings by running the following BASH one-liner: for i in $(find /home*/*/public_html/ -name php\.ini -type f);do
You can find a server hostname by the IP address using telnet to port 25 (exim): 1) Type: telnet <IP_ADDRESS> 25 2) Type: HELO [ENTER] Note: On some mail servers,
Go to the /etc/ssl/certs/ or /usr/share/ssl/certs/ directory and run: openssl genrsa -des3 -out ../private/DOMAIN.key 2048 openssl req -new -key ../private/DOMAIN.key -out DOMAIN.csr
uptime top sar -q sar -r service httpd status echo “show processlist;”|mysql MailFrom: for i in $(grep FROM_ADDRESS /var/log/exim_mainlog|grep “<=” | awk {‘print $3?}) ; do grep $i /var/log/exim_mainlog ;