How to Use Cat Command on a Linux Server

Viewing Text File Content The cat command allows you to read /view the contents of the text files without editing them. The easiest method of reading a file is to use the cat command followed by the filename, as shown in the example below: cat logfile.txt Moving Through Long Text

Understanding Various runlevels in Linux OS

SysVinit is a system initialization program that runs when a Linux system boots up. It is responsible for starting and stopping various services and processes on the system. SysVinit uses a series of scripts called init scripts to control the behavior of different runlevels, which are modes of operation that

How to Check the Apache Version on a Linux Dedicated cPanel Server

Quick Checking Your Apache Version Number If you need to check the Apache version number installed on your server, you can do so in one of a couple ways. In the default configuration, Apache will be set to display its version information on most of you error pages. This means

How to Configure an MX Record

What is an MX Record? MX records, or mail exchange records, are special server settings that help control the way your email is routed. In terms of DNS, an MX record tells incoming mail which server can receive it, and then directs it to that server. In other words, if

How to resolve the blank page issue for awstats?

Awstats showing blank page but all other Stats applications running fine. No logs for any of the stats program logged in /usr/local/cpanel/logs/error_log Reason: The memory assigned for the cpanel scripts and applications is falling short. In that case, increase the memory. WHM >> Tweak Settings >> Max cPanel process memory

How to rectify the following Common squirrelmail problem?

Sometimes you receive the following error while browsing webmail: Warning: main(../config/config.php): failed to open stream: No such file or directory in /usr/local/cpanel/base/3rdparty/squirrelmail/functions/global.php on line 18 Fatal error: main(): Failed opening required ‘../config/config.php’ (include_path=’/usr/local/cpanel/3rdparty/lib/php/:.’) in /usr/local/cpanel/base/3rdparty/squirrelmail/functions/global.php on line 18 As a fix for this, please execute the below command: /scripts/fixwebmail During

How to Resolve ‘passwd: Authentication token manipulation error’ for cPanel

passwd: Authentication token manipulation error At times, a user may find themselves unable to update their password via cPanel. If your attempt to change the password fails, you should see a message that looks something like this: Error: Changing password for user status. Changing password for status (current) UNIX password:

How to update apache to the latest version?

Check the current version of apache by running httpd –v Then execute the following commands: cd /usr/local/directadmin/customapache ./build clean ./build update ./build apache_mod_ssl This should update both the configure options and the version of apache to the most recent version. Once the update is completed, restart apache: RedHat:/sbin/service httpd restart

Common Linux Log Files and Their Uses

List of Linux Log Files The following is a list of commonly found log files within Linux, alongside a short description of what kind of information each file contains. Typically, all log files on linux servers are located under the /var/log directory. Depending on the setup of your server though,

PHP as a CGI with Suexec

When PHP runs as a CGI with Suexec, PHP files work under your user/group. PHP files no longer require loose permissions to function, now they will require strict permissions. Setting your directories or PHP files to 777 will cause them to produce a 500 Internal Server Error, this happens to