The installation / removal of whmXtra is easy

To remove WHMXtra do the following from the console : 

# wget http://whmxtra.com/pro/remitall.sh;sh remitall.sh

To install WHMXtra do the following ,

# wget http://whmxtra.com/pro/pro.sh;sh pro.sh

Now logins to WHM -> Plugins and continue with the installation procedure

PhpMyAdmin not working

Posted: November 14, 2013 in cPanel
Tags:

Error: ” PHP Fatal error:  require_once() [<a href=’function.require’>function.require</a>]: Failed opening required ‘./libraries/logging.lib.php’ (include_path=’/usr/local/cpanel/3rdparty/php/53/lib64/php:/opt/cpanel/php/53:.’) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/dbi/mysqli.dbi.lib.php on line 13 ”

——————————————————————————————————————————————–

It is best to forcely update PHPMyAdmin using the following script. It will fix the issue in accessing PHPMyAdmin.

# /usr/local/cpanel/bin/updatephpmyadmin –force

While accessing an email using Horde, you may notice that Horde isn’t displaying the contents of the email rather it displays the following message

“there are no parts that can be displayed inline.

The reason is the “inline” setting of the HTML driver is set to false. To fix the issue, you need to enable i.e. change false to true for “imp/html/inline” attribute in the Horde’s mime_drivers.php file.

On a cPanel server, the file is located at /usr/local/cpanel/base/horde/imp/config/mime_drivers.php and the attribue it as:

$mime_drivers[‘imp’][‘html’] = array(

‘inline’ => false; To ‘inline’ => true;

On a Plesk server, the file is located at /etc/psa-horde/imp/mime_drivers.php and the attribute is as:

$mime_drivers[‘imp’][‘html’][‘inline’] = false;

Once you change the attribute to ‘true’, save the file and Horde will start displaying the contents of the email.

SMBIOS/DMI output is unreliable and sometimes wrong:
————————————————–
/etc/cron.hourly/mcelog.cron:

mcelog: Cannot find SMBIOS DMI tables
—————————————————

FIX ———>>
use –no-dmi option for mcelog like this:

/usr/sbin/mcelog –no-dmi –ignorenodev –filter >> /var/log/mcelog

mcelog decodes machine check events (hardware errors) on x86-64 machines running a 64-bit Linux kernel. Mcelog should be run regularly as a cron job on any x86-64 Linux system.

cPanel : disable IPv6 in Exim

Posted: October 5, 2013 in cPanel

This solution will cover cPanel Issues, Email Issues and tagged cPanel disable IPv6 in Exim, Disable IPv6 in Exim on cPanel server, IPV6 issue with exim on cPanel server.

Many times, it happens that  sending emails to Gmail or few other ISP’s are getting rejected when Ipv6 networking is enabled on the server.
This is basically because, exim attempts to deliver the emails using IPv6 network by default and some times it returns the message “Network is unreachable“, specially to Gmail addresses.

This can be easily fixed by forcing exim to deliver the emails using the IPv4 IP address instead of IPv6 address.

You can follow the below simple steps to disable IPv6 in exim configuration ::

Login to ” WHM < GoTo >    Home » Service Configuration » Exim Configuration Manager » Advanced Editor

Scroll down until you see “ Add additional configuration setting ” (it’s just above Select: “ BEGINACL “).

Then, select the following option from the drop-down menu above:

* Select >  disable_ipv6

and set the value to ” true

As : disable_ipv6 = true

————————————————————————————————————–

Login to the server via SSH

Run the following commands in ” screen ” . ( Keep Your Processes Running Despite A Dropped Connection )

# clamnscan  -i  -r  –log=/var/log/clamscanlog /*   –> It will help you to do an entire system scanning

For custom directories scanning ,

# clamscan -i -r  –log=/var/log/clamscanlog2  ” directory to scan” 

Example: #  clamscan -i -r –log=/var/log/clamscanlog3  /home/*

Options used in the above commands with its description :

-i  (–infected )        >>    Only print infected files

-r  (–recursive[=yes/no(*)])    >>     Scan subdirectories recursively

–log  (-l FILE )          >>         Save scan report to FILE

—————————————————————————————————————

Image  —  Posted: July 28, 2013 in cPanel

———————————————————————————————————————————————-

VirtFS provides a jailed shell environment for a user connected to a server via SSH. Unlike a normal shell environment, a jailed shell environment prevents access to data outside of the user’s home directory. A jailed shell helps increase security for a system administrator’s other users.

How to remove VirtFS

In 11.38, updates to the jailed shell system were created to improve security. As a result, it is not possible to completely remove VirtFS.

ALERT! Warning: The directions below do not necessarily remove a jailed shell.

Before you can safely remove the jailed shell environment, you must unmount all bind mounts under /home/virtfs/$user/.

To unmount a bind-mounted directory, use the umount command.

For example, to unmount /home/virtfs/username/usr/bin (replace username with the cPanel user’s name), run the following command:

# umount /home/virtfs/username/usr/bin

Once you have unmounted the bind mounts, you can remove the user’s directory under /home/virtfs. To see whether a directory is still bind-mounted, search for the appropriate username in /proc/mounts. You can do this with the following command (replace username with the cPanel user’s name):

# grep -i ‘username’ /proc/mounts

How to disable VirtFS

To disable VirtFS, you can disable jailed shell access via both the Tweak Settings and Manage Shell Access interfaces in WHM.

Note: If a system administrator disables jailed shell access for a user, the user’s shell will be set to /usr/local/cpanel/bin/noshell. The user will still have access to SFTP in a non-jailed environment.

Exim in a jailed shell or disabled shell

When a user’s shell is configured to jailshell or noshell, Exim runs any process created from alias or filter files inside of VirtFS. This action provides extra security because Exim commands will run in a jailed shell and not affect other users. Before 11.38, Exim did not run in a jailed shell. As a result, there was a higher probability that filters and pipes in a jailed shell or disabled shell would act the same.

! You can remove all bind mounts for a particular user with the following command (replace username with the cPanel user’s name):

# /usr/local/cpanel/3rdparty/bin/perl -MCpanel::Filesys::Virtfs -e ‘Cpanel::Filesys::Virtfs::clean_user_virtfs(“username”);’

With your blessing’s ……!!!! Let’s start our journey ..!!!!

Quote  —  Posted: July 28, 2013 in Uncategorized