How to send email using bash script

You may use “mail” command under Linux or UNIX bash shell to send an email. In order to send a mail to one or more people

You may use mail -s [email protected] then type text then Ctrl+D then Cc

However you may use bash script for sending that very simple:… Read the rest

How to fix locale in Ubuntu (questions marks)

I have faced this problem when moved my account from one Ubuntu PC to another, so I think problem has been appeared due to the version conflict

The first result when I have typed locale was

LANG=en_US
LANGUAGE=
LC_CTYPE="en_US
LC_NUMERIC="en_US
LC_TIME="en_US
LC_COLLATE="en_US
LC_MONETARY="en_US
LC_MESSAGES="en_US
LC_PAPER="en_US
LC_NAME="en_US
LC_ADDRESS="en_US
LC_TELEPHONE="en_US
LC_MEASUREMENT="en_US
LC_IDENTIFICATION="en_US
LC_ALL=en_US
Read the rest

Some important logs and config files location

The common logs files located here /usr/local/cpanel/logs directory.

cPanel access log for both cPanel and WHM
/usr/local/cpanel/logs/access_log

cPanel error log (This file contains all output from each upcp call. logs are stored with the timestamp from which the upcp process was executed)

Web server (Apache) log (This log file contains all the errors caused by http Apache server, standard errors due to domain's virtual configuration, mod_security, PHP Warning and other apache modules configurations)

/usr/local/cpanel/logs/error_log … Read the rest

How to flush/clear DNS on your PC

You can flush/clear your DNS cache as per the following:
1) For Windows
– Start -> Run -> type cmd
– in command prompt, type ipconfig /flushdns
– Done! You Window DNS cache has just been flush.
Read the rest