How to fix FileZilla Certificate Expired error

If you are experiencing a “Certificate Expired” error in FileZilla when attempting to connect to an FTP server on your cPanel server.

openssl s_client -connect yourserver.com:21 -starttls ftp

Verification error: certificate has expired

Restarting the FTP server can sometimes resolve the issue.… Read the rest

How to add domain as parked/alias using cPanel API whmapi1 one line command?

You can add a domain as a parked/alias using the cPanel API whmapi1 in a single command line using the following syntax:

whmapi1 --output=json --user=USERNAME Park::addparkeddomain domain=DOMAINNAME

Replace USERNAME with your cPanel username and DOMAINNAME with the domain name you want to park/alias.… Read the rest

How to create database, database username and grant all rights on cPanel server via command line using UAPI

You can create a database, database user, and grant privileges using the cPanel User API (UAPI) command line interface.

Connect to your cPanel account using SSH.

Type the following command to create a new database:

uapi --user='cpanel_username' Mysql create_database name='database_name'

Replace ‘cpanel_username‘ with your cPanel account username and ‘database_name‘ with the name of the database you want to create.… Read the rest

How to check if nameserver is registered from command prompt

In order to check if a nameserver is registered, you can use the nslookup command on a command prompt. Here are the steps:

– Open a command prompt on your computer.
– Type the following command:

nslookup <nameserver>

Replace <nameserver> with the domain name of the nameserver that you want to check.… Read the rest

How to change master domain for an account on cPanel server from command line

To change the master domain for an account on a cPanel server from the command line, you can use the cPanel API WHMAPI1. Here are the steps:

– Connect to the server via SSH using your preferred terminal emulator.
– Use the following command to change the master domain for the account:

whmapi1 modifyacct user=USERNAME newdomain=newdomain.com
Read the rest

How to reset max defers limit on cPanel server

You may got:

2022-07-28 14:43:22 1oH9Pk-111Cld-8x ** [email protected] R=enforce_mail_permissions: Domain domain.com has exceeded the max defers and failures per hour (5/5 (100%)) allowed. Message discarded.

To reset:

/var/cpanel/email_send_limits/track/domain.com

If the limits too tiny on your server then adjust them per your needs:

sed -i -e 's/MAX_DEFER_FAIL_PERCENTAGE=.*/MAX_DEFER_FAIL_PERCENTAGE=125/g'
Read the rest