Skip to content

CSS SOLUTIONS

IT SERVICES

Category: Command-line

Linux command-line reference, examples, and help.

MySQL General Query Logging Switch Utility

Posted on September 6, 2012 by Admin

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

Read More
Command-line

PHP Setting Conversion for non-suPHP Handlers (dso/mod_ruid2)

Posted on September 3, 2012 by Admin

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

Read More
Command-line

You can find a server hostname by the IP address using telnet to port 25 (exim)

Posted on May 21, 2011 by Admin

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,

Read More
Command-line exim, hostname, IP address, port 25, telnet

Create an SSL Certificate Signing Request at the command-line

Posted on February 5, 2011 by Admin

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

Command-line CSR, Signing Request, SSL Certificate

Common bash commands

Posted on February 5, 2011 by Admin

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 ;

Read More
Command-line BASH, Commands
Built with BoldGridPowered by WordPress
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok