How to install PHP-Json module on a Linux Plesk

To install/enable Json support for PHP on a Linux Plesk server, follow the below steps:

1. Install php-pear and gcc

# yum install php-pear gcc

2. Install json module

# pecl install json

3. Now, the file is created under the php lib directory i.e. /usr/lib64/php/modules/ and needs to be called in the json.ini so PHP configuration could read it.

# cd /etc/php.d
# echo “” >> json.ini

4. Once done, restart the httpd service

# /etc/init.d/httpd restart

How to recalculate statistics for a particular domain

Plesk Panel invokes the statistics utility (which resides in the ${PRODUCT_ROOT_D}/admin/bin directory) to calculate web page access statistics, traffic usage statistics, and disk space usage statistics, in the scope of daily maintenance activity.

The option–calculate-one of the statistics utility is used to initiate manual statistics recalculation for one domain only:

~# /usr/local/psa/admin/sbin/statistics –calculate-one –

More information about statistics utility usage is available from the –help option output:

~# /usr/local/psa/admin/sbin/statistics –help

Change default SSL certificates for SMTP, IMAP, and POP3

The certificate for SMTP over SSL is located in the following files:

For QMail MTA:


For Postfix MTA:


Note: Only QMail MTA is used in Parallels Plesk Panel version 8.x and earlier versions. Use instructions from this KB to define which MTA is used in Parallels Plesk Panel version 9.x and later versions.

For IMAP4 and POP3 over SSL, the following certificate files are used:


By default, these are self-signed certificates for “plesk” which are generated during Parallels Plesk installation. If you need to set up your own certificates, copy and paste your certificate and Private Key into the appropriate files and restart “qmail/postfix” and “courier-imap” services:

For version 8.6 and earlier versions:

~# /etc/init.d/xinetd restart
~# /etc/init.d/courier-imap restart

For version 9.x and later versions:

~# /usr/local/psa/admin/sbin/mailmng –restart-service

It is important that the client specifies the domain that the certificate is issued for in order to avoid a warning that the certificate name does not match that of the host you are connecting to. For example, if the certificate was issued for the “” domain, then you should specify “” as the connection string in your mail client preferences for SMTP/POP3/IMAP servers.

1 118 119 120 121 122 160