Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.

Sometimes, when you compile custom PHP for a domain, you may encounter the following error when we call phpinfo page.

Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘America/New_York’ for ‘EDT/-4.0/DST’ instead in /home/public_html/admin/includes/languages/english/email_extras.php on line 40

Inorder to fix this, go to the corresponding php.ini file and add the following:. Please note that the time zone used depends on the error.

date.timezone = “America/New_York”

Caused by SystemException in API_Linux.cpp:444: execve() for program “/usr/local/php-5.3.8/bin/php-cgi” failed: No such file or directory

Upon compiling a custom PHP 5.3 for a single domain in the server, I encountered the above error while calling the domain after compiling the custom PHP. Turns out the file ‘/usr/local/php-5.3.8/bin/php-cgi’ was missing. Upon checking in detail, I narrowed down the error to the configure options used while compiling PHP 5.3.

./configure –disable-cgi –other options.

Always make sure to enable cgi while compiling PHP as suPHP. So, the final configure option would look like

./configure –enable-cgi

 

Purge/Delete button missing in Horde webmail client

In certain cases, the client complains that the ‘Purge Deleted’ button is not visible in horde email client . And when you login to his account you too see that the button is missing .

In that case, do the following :

# Click on ‘Options’ button from the top menu
# Under the section ‘Mail Management’ click on the button ‘Deleting and Moving Messages’
# Un-check the option –
“When deleting messages, move them to your Trash folder instead of marking them as deleted.”
Then click on ‘Save Options’ button below .
Now if you check back to your INBOX, you will find the ‘Purge Deleted’ button at the bottom right hand corner below the mail list .

 

How to backup and restore a single table from a database using mysqldump

We normally backup entire database using mysqldump utility but what if only one table gets corrupt and you  only want to  restore  that table from backup.

In that case you can  use the below simple steps to backup and restore a single mysql table using   mysqldump utility ::

mysqldump databasename tablename > tablename.sql

Restoration ::

 mysql databasename  <  tablename.sql

softaculous requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator

Sometimes, when you are trying to install softaculous in a cPanel server, you will see this error.

softaculous requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator

So, you will check Tweak Settings in cPanel/WHM and you can see Ioncube is enabled. Still, you may get the same error. In such cases, there is a simple fix. Just change PHP loader in Tweak Settings in WHM to none, and change it to Ioncube again and try again to install softaculous. It will work this time.

 

Errors while upgrading OpenSSH

Usually while upgrading OpenSSH, we encounter the following errors.

configure: error: *** zlib.h missing – please install first or check config.log ***
configure: error: *** OpenSSL headers missing – please install first or check config.log ***
configure: error: PAM headers not found

We can fix this by installing the following packages.
# yum install zlib-devel
# yum install openssl-devel
# yum install pam-devel