Squirellmail Time-zone issues!

You might be noticed that Squirrelmail recently asks for the contact information when logged in for the first time and its quiet annoying as customer has to fill the information when they log in to the email for the first time. This is the feature of Squirrelmail’s recent version 1.5.2. You can easily fix it using the below steps:

1. Login into your server

2. Kindly try to search word ask_user_info under the below file by editing it:

$ask_user_info = true;

You need to set “ask_user_info” variable to “false” to remove the contact information page from Squirrelmail.

Thats it.

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 json.so 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 “extension=json.so” >> 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 –domain-name=yourdomain.com

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

~# /usr/local/psa/admin/sbin/statistics –help
1 117 118 119 120 121 160