All posts by Suhesh K.S.

Plesk CLI Tools

Plesk CLI tools – email account mailbox size updation

Plesk cli tools are helpful for the system administrators to bulk updations in plesk using scripts and it will help to save lots of time. Here I am discussing the plesk cli tool for updating the mailbox quota for an email account.

If we need to update mailbox quota for a few accounts, we can easily do this from plesk front end. But if the count is high, we may need to script it via cli.  Following is the command to update mailbox quota for a single email account. 

plesk bin mail -u -mbox_quota 1G

If number of mail accounts are a large number, then we can take the email account list for all the mail account from all the domains from the following command. 

plesk bin mail  -l

Just filter the list with your domain, here it is “”

plesk bin mail  -l | grep

Using  a for loop to pass each email account from the above list to the quota update command. Here is the exact command for the same. 

for email in $(plesk bin mail  -l | grep ; do plesk bin mail -u $email  -mbox_quota 1G ; done 

Note : Take a backup for psa before doing this change. So that we can restore the settings, if anything goes wrong. 

Plesk cli tools needs to be done with the help of an experienced linux system administrator to avoid mistakes. You can get in touch with your hosting provider for support or get in touch with our plesk support services for assistance.


ntDNScheck version 1.0 released

A DNS report plugin to verify the dns reports for the domains easily.

ntDNScheck plugin will prepare a dns report for the domains in the server. It will help the administrator to check the domains with local and remote name servers, local and remote mail servers. Also, it will help to identify the remote domains. It also provides an option to list down the domains using Cloudflare name servers. 

The main use of the plugin is to analyze the dns report for the domains and correct the issues. Also it will help the administrators to idenify the domains status for migrating data and mails without data loss.

You can check more details about the plugin here. It costs $10 per year and the installation process is pretty simple and you will get instructions along with the order confirmation mail.

Features of ntDNScheck

[+] A full dns report of all the domains in the server
[+] Domains grouped based on local and remote NS and MX
[+] Report for single domain for detailed investigation.
[+] User friendly WHM interface for showing the reports.
[+] Cloudflare name servers are seperately grouped. 


Are you tired of handling remote domains? Use ntDNScheck

Are you facing issues with the migrations and handling the remote domains? If yes, it is good time to install the dns report plugin ntDNScheck. It will help you to organize the domains and correct the wrong entries. 

Working of ntDNScheck

ntDNScheck is a dns report plugin, which mainly collects the dns records and organizes these results for us to get a clear idea about the dns details of the domains in the server.  Using ntDNScheck report, we can easily detect the domains hosted in the remote server. Here we get a report of the local and remote domains, name servers and mail servers and by checking the report, we can easily identify the hosting account which needs attention. 

Features of ntDNScheck

  • DNS records in an organized way
  • Local and remote domains
  • Local and remote name servers 
  • Domains with Cloudflare name servers 
  • Local and remote mail servers
  • Detailed dns report of the domain from 

Benefits of ntDNScheck 

The report helps the system administrators to verify and correct the NS and MX of the domains. administrators to handle the migration of accounts based on the local and remote domains. By checking the reports, we can remove the domains from the server, which are not using any resources in the server. This report will help the system administrator to delete the mved domains.

Licensing and installation

We are launching this as a paid plugin and it will be available at $10 per year. The order confirmation mail from Nixtree will include all the information about the intallation and license activation.

$10 per year

You can check more about the plugin ntDNScheck from here and order it.

Support and Bug reporting

You can get in touch with for any type of support related to the plugins or you can check in our Community support for any support. If you noticed any bug or looking for any feature addition, you can get in touch with us using any of the mentioned methods.  


How to check Magento version

As a server administrator, we may need to find the version of the application running under the sites. Sometimes we need our search criteria limited to some specific version to find the exact fix. So it is very important to find the version of the application running.  Today I am discussing the ways to check Magento version.

Magento is an open-source e-Commerce platform in PHP.  You can download the latest magento version of Magento version from the following link. You will get the latest available version from this link.

  1. You can simply load the following link in the browser to get the version of the Magento installation. This will work until it is purposefully blocked by the administrator.
    Sample output
    Magento/2.2 (Community)
  3. Another option is login into the Magento admin backend. You can see the running version at the bottom right corner of the page. 
  4. You can check the version using command line too. 
  5. Go to your Magento root directory and run the following command

    php bin/magento --version
    Sample output. 
    Magento CLI version 2.2.5


How to change default PHP version in plesk

How to change default PHP version in plesk

In this article, I am referring to change default php version in plesk. In latest plesk versions are come with all the php versions installed ( we have the option to install all the php versions ). So no need to install a separate php in the server for setting the default PHP to the latest version. Creating symlink and some additional commands to bring the default handler to the required version.

Here is the environment in which the command worked.

Plesk Version : 17.5.3 CentOS 7

List the php handlers

/usr/local/psa/admin/bin/php_handlers_control --list

Verify the default php version.

php -v

Check the PHP version 5.6

/opt/plesk/php/5.6/bin/php -v

Find the default php binary

which php

Backup the php, php-cgi and php-fpm binaries.

mv /usr/bin/php /usr/bin/php.backup
mv /usr/bin/php-cgi /usr/bin/php-cgi.backup
mv /sbin/php-fpm /sbin/php-fpm.backup

Create symlink from php 5.6 binaries

ln -s /opt/plesk/php/5.6/bin/php /usr/bin/php
ln -s /opt/plesk/php/5.6/bin/php-cgi /usr/bin/php-cgi
ln -s /opt/plesk/php/5.6/sbin/php-fpm /sbin/php-fpm

You can set symlink from any other php version installed in the server. Following are the php bnaries for other versions, find the same for php-cgi and php-fpm too.


Once the symlink is created, the php version will show the new version we set. You can check it using the following command.

php -v

Next option is to update the plesk database with the changed versions. The reread option will update plesk database with the new versions.

/usr/local/psa/admin/bin/php_handlers_control --reread

After that reconfigure all the domains or the domains using the default php versions. And proceed with a service restart.

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
service httpd restart

Once this is completed, the sites will load with new php version.

Note: Make sure to do this by a qualified technician.

If you need us to do these changes for your server, please get it touch without support


ntPHPSelector version 4.2.0 released

New version of ntPHPselector with 7.2 support is released. It is added with email notification for any license check related errors. Server owner/administrator needs to update the contact email address via ntPHPselector WHM front end. Also added fix for the scanning of additional ini files for php 5.3

[+] Fixed the additional scanning of ini files.
[+] Alert for license error
[+] Added 7.2 support

Current users will get instructions for updating the plugin from the plugin support department. New users can order the service from the following page.

Web Server Security

Importance of Server Security in web hosting industry

Importance of Server Security in web hosting industry

Nowadays hacking is one of the main issue faced by the web hosting industry and due to this, the site’s reputation will go down. Also, it will affect the webserver IP’s reputation too. So web server security is very important. The server administrator will secure server to avoid losing the reputation.

After Effects of Hacks

Some hackers have hacked the site for fun and leave. But some others hacked the site and upload spamming scripts and send spam emails or upload vulnerable files and start making an attack to other sites. In effect, the provider who is affecting will raise a complaint against the web server, which is hacked and started the malicious activity. If we didn’t fix the vulnerability within the time, our provider will suspend or terminate the server based on their abuse policy. Also, it will bring down the reputation of the server IP, due to the spamming or other malicious activity and that will affect the other sites hosted in the same IP. Continue reading

Stop using custom php.ini in ntPHPselector.

I am writing this post to give an idea about how to use custom php.ini and stop using custom php.ini in ntPHPselector. Since we got some request form some of the customers about the same, so I am adding this as blog for others to check.

How to use custom php.ini

There are several instances that may require you to modify a setting in the php.ini file for your website, such as increasing the PHP upload limit. The customer need to copy the default php.ini ( collect it from the php info page ) and alter the values based on the site requirements.

Some of the disadvantages of using custom php.ini

You lose the ability to select the php version via the control panel, if the version is not specific to the respective php version, it may cause errors.

Any changes we made on the global php.ini will not be reflected on your site

Changes you made to php.ini will not be applied instantly

Some of the web hosts will not allow to use custom php.ini. Since allowing this feature will cause resource usage abuse, which include performance issue with the server too. So they forced to disable this feature.

In ntPHPselector, you can disable the custom php.ini by un commenting the following entries under the section “phprc_paths”. By default, there is no commented entry for 5.3 in the suphp.conf. You need add the following entry manually, since it is compiled by you using ntPHPSelector interface.


; entry related with PHP 5.3

Restart the httpd service and check whether it is loading or not.

If you need further customization to the plugin, you can contact our support and we will help you. Also you can inform us the feature requests or bug reports


Recompile PHP 5.3 in ntPHPselector version 4

ntPHPselector plugin allows user to select preferred PHP version per directory on the same domain. Our new ntPHPselector version 4  released for the cPanel servers with EasyApache 4 version, which support php versions 5.3, 5.4, 5.5, 5.6, 7.0 and 7.1. By default 5.3 is disabled. You need to recompile it after enabling it from “Settings” tab after the installation.

ntPHPselector manually recompile the php version 5.3, since it is removed from EasyApache 4. You need to recompile the php version 5.3 using from your end using the interface available inntPHPselector WHM module.  Continue reading


ntPHPSelector version 4.1.0 released

New version of ntPHPselector with 5.3 support is released. It is added with a WHM module for recompilation of 5.3 and listing the instances of custom php used.

[+] Added 5.3 Support.
[+] WHM Interface available for listing the instances of custom PHP used.
[+] 5.3 Recompilation option available via WHM interface.
[+] Recompilation logs can be view from the WHM interface
[+] Compatible with Centos 6 and Centos 7.

The php version 5.3 successfully recompiled with Centos 6 and Centos 7 operating systems.  Missing of some devel packages or any other custom environments in the server may cause the failure of php recompile.  And we suggest to do the troubleshoot in recompilation with the help of an experienced hand.  For recompilation and installation support, please open a ticket with our support.

Current users can upgrade to the new version, by contacting the support.