1.Shutdown the exim service. >>service exim stop or /etc/init.d/exim stop 2. Edit your exim configuration file. >>nano /etc/exim.conf 3. Go to “remote_smtp” section under “TRANSPORTS CONFIGURATION”. By default it would look like below: remote_smtp: driver = smtp interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}} helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_ho stname}} 4. Comment line containing “interface” and “helo_data” and add new “interface” to match with that of the new IP address. It should look like this: remote_smtp: driver = smtp interface = 208.99.113.240 # An available IP on this system. Code: chattr +aui …
Miscellaneous
Net::SSH::Perl installation is relatively straightforward. If CPAN shell is set up, you should just be able to do # perl -MCPAN -e ‘install Net::SSH::Perl’ If you don’t like that, you can download the distribution; the latest version on CPAN can be found at http://search.cpan.org/dist/Net-SSH-Perl/ Download it, unpack it, then build it as per the usual: % perl Makefile.PL % make && make test Then install it: % make install The only slightly complicated bit in the installation is that you’ll need to install Crypt:: modules depending on which ciphers you …
An access control list (ACL) is a list of permissions attached to a file/folder. ACL specifies which users or system processes are granted access to files/folders. Setfacl It is a command that allows you to set the ACL information for a file or directory. They are used to allow permissions to be set for individual groups and users and not just the owning user, owning group, and all other users $ setfacl -m u:<username>:r <filename> u- user r- read
This is a CPanel bug that prevents users from adding domains that begin with a digit, the users will get this javascript alert: Sorry, your domain must not begin with a digit. This can be fixed via ssh, and do this carefully: vi /usr/local/cpanel/base/frontend/x/addon/index.html The text you need should be around line 68 : var pattern = /(^[.]|[.]$)/; if (domainname.match(pattern) != null) { alert(Sorry, your domain name must not begin with a digit.); return false; } You should then comment that line out ! From now, CPanel should now work …
The Web / FTP Statistics area or the Logs area under the cPanel presents you with a wide variety of information about your web site, from the latest visitors to a detailed monthly summary of hits, as well as providing an error log. Using the Statistics tools we can keep track of what pages are being visited most often, and where they are being referred from. The various tools used for these purposes are:
ACK is a tool like grep, designed for programmers with large trees of heterogeneous source code. ACK is written purely in Perl, and takes advantage of the power of Perl’s regular expressions. How to install ACK It can be installed any number of ways: * Install the CPAN module App::Ack. If you are a Perl user already, this is the way to go. * Download the standalone version of ack that requires no modules beyond what’s in core Perl, and putting it in your path. If you don’t want to …
Sometimes administrators may notice that MySQL databases display 0MB disk usage in cPanel even though the databases contain data. This usually happens due to incorrect disk usage calculation settings in the cPanel configuration. This issue can be easily resolved by updating the cPanel configuration and rebuilding the database cache. Why Does MySQL Show 0MB Disk Usage? cPanel calculates account disk usage based on specific configuration parameters.If MySQL database disk usage tracking is disabled, cPanel will not include database size in the disk usage report, resulting in databases appearing as 0MB. …
Follow the below steps to install Directadmin yum update yum install gcc* yum install flex cd /usr/local/src wget http://www.directadmin.com/setup.sh chmod 755 setup.sh ./setup.sh ClientID: enter client id License ID: enter license id Is eth0 ? enter NO if you are installing DA on VPS and YES on dedicated servers. service directadmin restart Directadmin admin password will be shown on the screen after completing the installation. You can get the MySQL password in DirectAdmin in /usr/local/directadmin/scripts/setup.txt. DirectAdmin will be accessible at http://ip.address:2222 If you require help, contact SupportPRO Server Admin
DirectAdmin is a popular web hosting control panel used to manage servers, websites, emails, and other hosting services. Sometimes, users may forget the admin password or need to reset it due to security reasons. In such cases, resetting the DirectAdmin password through the shell is a quick and effective solution. In this guide, we will explain simple methods to reset the DirectAdmin admin password using SSH access. Method 1: Reset Using DirectAdmin Setup Script One of the easiest ways to reset the admin password is by using the DirectAdmin setup …
SuExec is an essential security feature used on web hosting servers to improve account isolation and protect websites from unauthorized access. Instead of running all scripts under the default web server user, SuExec allows scripts to execute under individual user accounts. This guide explains how to check if SuExec is enabled using SSH, WHM, or cPanel access. What Is SuExec? SuExec is a security mechanism commonly used on shared hosting environments. It ensures that each website runs with its own user permissions rather than sharing the same server identity. Why …