Resources, Articles, Tricks, and Solutions in connection to Plesk

Linux Whereis Command examples

This article covers the whereis command which is useful for Locating the binaries and manual pages for various commands. Sometimes, while working on the command line, we just need to quickly find out the location of the binary file for a command.  


Linux whereis command syntax

The whereis command lets users locate binary, source, and manual page files for a command. Following is its syntax:

$ whereis [options] [-BMS directory... -f] name...

Read More


Install s3cmd in Linux and Manage Amazon s3 Buckets

This article covers an overview of the s3cmd command-line tool and how you can use it to manage your Amazon S3 storage feature. S3cmd is an Open Source tool that is free for both commercial and private use, but you need to pay only for Amazon resources. so most of the users are using this tool for managing AWS S3 Buckets. S3cmd is a free command-line tool written in Python


How to use the s3cmd command line to manage the Amazon s3 bucket in Linux ?

To use s3cmd command to list s3 bucket, run the command:

# s3cmd ls

This command will list s3bucket from Amazon S3, If you are unable to get the list of the bucket then there will be the following reasons:

  • There is no bucket created in Amazon s3.
  • As you have used IAM user Access Key and Secret Key while configuring the s3cmd tool, please verify IAM user has required permission to access the s3 bucket.
  • If you are using an IAM role then check whether the s3 bucket policy is attached to the EC2 instance or not.

Read More


List Users in Linux - Best method

This article covers how to list users in Linux system and also differentiate difference between normal user and system user. Linux OS is unique because of its multi-user characteristic allowing multiple users on one system, at the same time. However, tracking all users is essential. The /etc/passwd file contains one line for each Linux user account, with seven fields delimited by colons. This is a text file. You can easily list users under Linux using the cat command or other commands such as grep command / egrep command and more. With this same approach, you can use the Linux commands to list all users on all Linux operating system, including Ubuntu, Debian, RHEL, Arch, Fedora, CentOS, and other distros.


To list all users on Linux, use the cat command as follows:

$ cat /etc/passwd

Read More


Most Useful Nginx Commands in Linux System

This article covers most used Nginx commands. You can learn more about Nginx command line at Nginx documentation.

Nginx is one of the most popular web servers in the world. So whether you're currently using it or not, chances are, if you're a web developer chances are you'll likely come in contact with it at some point. 

Also, Nginx is well known for its simple configuration, and low resource consumption due to its high performance, it is being used to power several high-traffic sites on the web, such as GitHub, SoundCloud, Dropbox, Netflix, WordPress and many others.


To start the Nginx service, run the following command. Note that this process may fail if the configuration syntax is not OK:

$ sudo systemctl start nginx #systemd

OR

$ sudo service nginx start   #sysvinit


To enable Nginx auto-start at boot time, run the following command:

$ sudo systemctl enable nginx #systemd

OR

$ sudo service nginx enable   #sysv init


How to Show Nginx Command Help ?

To get an easy reference guide of all Nginx commands and options, use following command.

$ systemctl -h nginx

Read More


Important Cat Command Examples in Linux

This article covers how to use the Linux cat command. Cat(concatenate) command is very frequently used in Linux. It reads data from the file and gives their content as output. It helps us to create, view, concatenate files.

If you want to add a bit of new text to an existing text file, you use the cat command to do it directly from the command line (instead of opening it in a text editor).

Type the cat command followed by the double output redirection symbol ( >> ) and the name of the file you want to add text to.

Read More


Use the Dig Command in Linux - Doing it right ?

This article covers how to query various DNS records. The dig command in Linux is used to gather DNS information. It stands for Domain Information Groper, and it collects data about Domain Name Servers. The dig command is helpful for diagnosing DNS problems, but is also used to display DNS information.

By default, dig sends the DNS query to name servers listed in the resolver(/etc/resolv.conf) unless it is asked to query a specific name server.


How to Install Dig on Linux ?

1. On Debian and Ubuntu, run:

$ apt-get install dnsutils

2. On CentOS 7, run the command:

$ yum install bind-utils

3. Once installed, check the version, to make sure the setup was completed successfully:

$ dig -v


Dig Syntax

In its simplest form, the syntax of the dig utility will look like this:

dig [server] [name] [type]


i. [server] – the IP address or hostname of the name server to query.

If the server argument is the hostname then dig will resolve the hostname before proceeding with querying the name server.

It is optional and if you don't provide a server argument then dig uses the name server listed in /etc/resolv.conf.

ii. [name] – the name of the resource record that is to be looked up.

iii. [type] – the type of query requested by dig. For example, it can be an A record, MX record, SOA record or any other types.

By default dig performs a lookup for an A record if no type argument is specified.

Read More


Extend file system after resizing disk volume in Linux

This article will guide you on the different #command line options to extend #disk space storage in #Linux thereby allowing you to add #storage capacity to your #VM. If your filesystem has the resize capability, that capability is what you use. 1. Check if disk is available: #dmesg | grep sdb. 2. Check if disk is mounted: df -h | grep sdb. 3. Ensure there are no other partitions on disk: fdisk -l /dev/sdb. 4. Verify the #disk: fsck /dev/sdb. 5. Resize the #filesystem: resize2fs /dev/sdb.

Read More


Install and Configure VNC on Ubuntu 20.04 - Steps to do it.

This article will guide you on the steps to set up a secured VNC server up and running on your Ubuntu 20.04 server. This will help you to manage your files, software, and settings with a user-friendly graphical interface, and you will be able to run graphical software like web browsers remotely.

Read More


Different methods of creating a symbolic links on your Linux Server

In this article, you will learn how to create a symbolic link in Linux using the ln command by passing the -s option.

Read More


How to Check if your Linux Memory usage is running out

It is vital for you to check if your Linux memory is running low to help your server to stay optimized.

Read More


System logs not populating in Plesk Server - How to fix this error ?

This article covers the best method to resolve System logs not populating on a Plesk Server.

Read More


Failed to start migrated KVM VPS in SolusVM - What to do?

This article covers how to migrate and fix KVM failed to start error in SolusVM. In fact, this error happens when the iso mounted to VPS on the source server does not exist on the destination server.

Read More


Reinstall OS in SolusVM - Step by step guide ?

This article covers how to reinstall OS in SolusVM. In fact, this fix will help you to reinstall OS on SolusVM.

Read More


SolusVM cPanel Installation unable to complete - Step by step fix ?

This article covers SolusVM cPanel Installation unable to complete error. In fact, this error happens when we do not disable SELinux in our Server. 

Read More


Cannot boot a new VPS on XenHVM node - How to resolve this error in SolusVM ?

This article covers how to resolve Cannot boot a new VPS on XenHVM node if the VMID greater than 10000. In fact, follow the guide here to resolve boot error on VPS.

Read More


Configure Postfix on Plesk server on Google Cloud - Using SendGrid

This article covers how to configure Postfix on the Plesk server on Google Cloud.

Note: any customization made in Postfix configuration can be overwritten by Plesk update (for example, in case of bug fix, when configuration files are updated), Plesk upgrade or by mchk utility, which resets default mail server configuration.

Read More


Plesk SASL authentication failure error - How to fix it ?

This article covers tips to fix Plesk SASL authentication failure error. In fact, the SASL authentication failed messages are from the remote server. It's saying that there's a process somewhere on, or behind, your IP address that is pounding that server trying to guess passwords, in order to send spam.

Read More


Plesk update error on CentOS 7 GCP - How to fix it ?

This article covers steps to fix Plesk update error on centos 7 GCP. 

1. In CLI, run the below command:

$ plesk installer update

# run (micro) updates for plesk itself, this successfully updated my setup from #60 to #61

2. Also run the command:

plesk repair all -y

# tries to repair all errors found in the system

3. Finally, in GUI, execute:

Execute "Update All"

Read More


Plesk Installer access error in EC2 and GCP - How to fix it ?

This article covers how to resolve Plesk Installer access error. In fact, you will be Unable to access Plesk Installer web interface on Amazon EC2 or Google Cloud instance without root password.

Read More


Acronis cyber backup extension error in Plesk - How to fix it ?

This article covers steps to fix Acronis backup extension errors in Plesk. In fact, This happens because of a token used for communication with Acronis cloud was marked as 'expired' and then revoked on the cloud side. This happened because there were no calls from the extension UI to the cloud for a week.

Read More


Passive FTP Mode on a Plesk Amazon EC2 Instance – How to configure ?

This article covers the process of Configuring the Passive FTP Mode on an Amazon EC2 Instance. In fact, Whenever a new Plesk instance is deployed from an AWS Marketplace AMI, Amazon EC2 automatically generates and assigns a security group to the instance. This security group contains preconfigured firewall rules necessary for Plesk to operate, including a rule allowing connections to the passive FTP port range.

Read More


Passive FTP Mode on a Plesk Google Cloud Instance

This article covers how to configure Passive FTP Mode on a Plesk Google Cloud Instance. In fact, If your Plesk server only allows active FTP connections, customers may find it difficult or impossible to connect to the server via FTP. We recommend enabling passive FTP.

Read More


Plesk Change IP address – Follow this guide

This article covers the best method to Change IP addresses in Plesk. In fact, To change the IP address hosting a live site on your server, you'll first want to update your DNS information. In some cases, you will need to update your zone file with your new IP manually with the DNS host.

Read More


Plesk error pool seems busy - Fix it Now ?

This article covers methods to resolve Plesk error pool seems busy. This error happens when the PHP-FPM pm.max_children has been reached by the website(s). 


To Increasing pm.max_children for one domain via a command-line interface:

1. Create a php.ini file in domain's system directory /var/www/vhosts/system/example.com/conf/:

$ touch /var/www/vhosts/system/example.com/conf/php.ini

2. Open the php.ini file in any text editor (for example, vi editor) and add the following records:

[php-fpm-pool-settings]
pm.max_children = 20

3. Save the changes and close the file.

4. Run the following command to apply the changes:

/usr/local/psa/bin/php_settings -u

Read More


Plesk error "Local Docker node is missing" - Fix it Now ?

This article covers methods to resolve the Plesk error, "Local Docker node is missing". Generally, you will encounter this error while processing docker-engine. 

Read More


Plesk error AH01075: Error dispatching request to - Fix it Now ?

This article covers methods to resolve 504 Gateway Time-out Plesk error which happens when there is an Execution of the PHP code of the website which takes longer than the specified timeout.

Read More


Postfix address already in use Plesk error - Fix it Now ?

This article covers methods to resolve Postfix address already in use error in Plesk. To fix this error, simply Edit file /etc/postfix/master.cf and comment out all duplicate lines in the configuration, for example:

203.0.113.2- unix - n n - - smtp -o smtp_bind_address=203.0.113.2 -o
smtp_bind_address6= -o smtp_address_preference=ipv4

Note: The line with the IP address should exist only once in the /etc/postfix/master.cf configuration file.

Read More


Roundcube SMTP Error (454) Authentication Failed - Fix it Now ?

This article covers how to fix Roundcube 'SMTP error (454) authentication failed' issue for our customers. 

To fix this SMTP error:

via Command Line Interface (CLI):

1. Connect to the server via SSH;

2. Execute the following commands:

plesk installer --select-release-current --install-component qmail
# plesk installer --select-release-current --install-component postfix

Read More


WHMCS error code 1013 - Fix it Now ?

This article covers WHMCS error code 1013. Basically, this error happens when the external_id entry is missing in psa.clients MySQL table. If the issue appears on WHMCS integrated with Plesk Multi Server, this database update should be done on the management node side.

Read More


Database import hangs in Plesk - Fix it Now ?

This article covers methods to resolve Database importing hangs in Plesk with error reading communication packets. Generally, the database import task in Plesk fails due to non-optimized client databases.

The solution to this Plesk error is to simply optimize the databases.

Read More


Plesk error FPM initialization failed - Fix it Now ?

This article covers methods to fix Plesk error, FPM initialization failed.

Basically, the error "FPM initialization failed" triggers in Plesk mainly in different formats. The is as a result of Incorrect PHP configuration file was generated during subdomain creation via XML API.


To fix this Plesk error:

i. Log in to Plesk server via SSH.

ii. Remove the excessive configuration file:

rm -f  /etc/php-fpm.d/subdomain.example.com.conf

Read More


The plesk-php7x-fpm service crashes during the reload after domain name change - Fix it Now ?

This article covers how to resolve Plesk error, The plesk-php7x-fpm service crashes during the reload after domain name change. 


To fix this error, you need to update Plesk via a command-line interface:

1. Connect to a Plesk server via SSH (Linux) / RDP (Windows Server).

2. Run Plesk Installer Update (on Windows Server, start a command prompt as an Administrator):

plesk installer update

Read More


Plesk error Unable to import the dump - Fix it Now ?

This article covers methods to fix database error in Plesk. 


To fix this Plesk database issue:

1. Start by Checking the version of your SQL server with:

# plesk db -Ne "select version()"

2. Make sure that collation mentioned in the error message is not available in MySQL server:

# plesk db -e "show collation" | grep uft8_general_ci

3. So you have to upgrade MariaDB to version 10.1 or 10.2 on the destination server.


How to upgrade Plesk MySQL 5.5 to 5.6/5.7 or MariaDB 5.5 to 10.X on Linux?

By default, Ubuntu 20.04 is shipped with MariaDB 10.3.

1. For security reasons, create a database dump of all databases with the following command:

MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin --verbose --all-databases --routines --triggers > /tmp/all-databases.sql

2. Stop MariaDB:

$ service mariadb stop

3. Install repositories from Setting up MariaDB Repositories page:

# apt-get install software-properties-common
# apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'
# add-apt-repository 'deb [arch=amd64,arm64,ppc64el] https://mirror.truenetwork.ru/mariadb/repo/10.4/ubuntu focal main'

4. Create a backup of all MySQL data:

$ cp -v -a /var/lib/mysql/ /var/lib/mysql_backup

5. Start an upgrade with the following command. Leave all fields empty when asked for a 'root' user password:

$ apt-get update
$ apt-get install mariadb-server

6. Start the MariaDB service:

# service mariadb start

7. Upgrade MySQL databases:

MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql_upgrade -uadmin

8. Restart mysql service:

$ service mariadb restart

9. Execute the following commands to update package version inside Plesk:

# plesk bin service_node --update local
# plesk sbin packagemng -sdf

Read More


Internal error Account getPassword cannot decrypt password to be plain - Fix this Plesk error Now

This article covers how to resolve Plesk error, 'Internal error: [Account :: getPassword] cannot decrypt password to be plain'. It happens when A database user whose password is encrypted can now import and export the domain database after providing the database password.

However this issue is resolved in Plesk Obsidian.


To fix this Plesk error:

1. Updating Plesk via the Plesk interface

Make sure that port 8447 is opened in a firewall. If it is closed and cannot be opened for some reason, use the command-line instructions.

i. In Plesk, go to Tools & Settings and click Updates and Upgrades.

ii. On the Updates and Upgrades page, click Update Components.

iii. Click Continue to begin the update procedure.

2. Updating Plesk via a command-line interface

i. Connect to a Plesk server via SSH (Linux) / RDP (Windows Server).

ii. Run Plesk Installer Update (on Windows Server, start a command prompt as an Administrator):

plesk installer update


By default, Plesk installs updates automatically by means of the Plesk daily task (executed every night), if the option Automatically install Plesk updates is enabled at Tools & Settings > Update Settings.

During the update process:

1. Plesk may go offline for several minutes, if updates require a Plesk restart

2. Websites will stay online

Note: If a service component is going to be updated, its service will be restarted.


To find out what Plesk update is currently installed on the system, go to the Home page > System Overview.

Alternatively, execute the following command in a command-line interface:

plesk version

Read More


mchk plesk How to use it

This article will guide you on mchk utility in #Plesk and how to use it to fix errors. It helps to repair malfunctioning Plesk services.

By using Plesk Reconfigurator, you can check and #repair Plesk installation that is malfunctioning due to misconfiguration of one or more of its components.

The following problems can be identified and corrected by using the Repair Plesk Installation option:

1. problems with mail delivery caused by user-made changes in DNS server addresses.

2. misconfigurations of system user accounts or groups used by Plesk to access system objects.

3. malfunction of Plesk's services.

4. misconfigurations in user access permissions for files and folders on server disks and hosting folders.

5. miscalculations of disk space usage by individual domains and subdomains.

Read More


Plesk error Unable to update Web Statistics

This guide will help you to resolve #Plesk #error Unable to update #Web #Statistics. We can update web statistics urgently without even waiting for 24 hours by executing a command in the #command prompt.

The web-statistics calculation in Plesk does not work: The values at #Tools & #Settings > Traffic Usage by Domains (under Statistics) are not updated.

When manually recalculating the statistics for a domain, the operation fails with the following error message:

/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=example.com

WARNING during statistics_collector execution: : statistics_collector: Unable to parse pending domains traffic line: ?:: 2014-10-2 smtp 0

System error 11: Resource temporarily unavailable 

Read More


Plesk DNN install Service Unavailable error

This article will guide you on how to install DNN for our customers. In order to fix the Service Unavailable Error we should check whether the Dedicated application pool option is enabled in Plesk before DNN install.

A 503 Service Unavailable Error is an HTTP response status code indicating that a server is temporarily unable to handle the request. This may be due to the server being overloaded or down for maintenance.

Read More


Plesk Domain forwarding Setting it up

This article will guide you on the process to configure #Domain #forwarding in #Plesk which allows forwarding one domain to another domain and helps website owners who want to move their websites without losing traffic. We also discussed Plesk domain forwarding related #errors.

Read More


solve Plesk Error Failed to retrieve directory listing

Plesk Failed to retrieve directory listing error is usually trigerred when ProFTPd passive mode is not configured on the server.  We found a solution for you.

Read More