Install ImageMagick on cPanel Server

ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PNG, Postscript, SVG, and TIFF. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various … Read more

Linux Shell Scripting – Functions

How do I create a shell script function using Bash under UNIX / Linux operating systems?

Functions are nothing but small subroutines or subscripts within a Bash shell script. You need to use to break up a complex script into separate tasks. This improves overall script readability and ease of use. However, shell function cannot return value. They return a status code.

All functions must be declared before they can be used.

function welcome(){
  Commands
}

OR

 
welcome(){
 Commands
 return $TRUE
}

You can call function by typing its name:

 
welcome

Read more

ntPHPselector : Bug fix #New Line entry error with AddHandler

Bug # New Line entry error with AddHandler

Description: If an htaccess file is not end with a new line the newly added “AddHandler” entry will be append to the end of the last line. The issue is occur with the .htaccess files eithout ending a newline (normally it ends with new line). The bug is fixed in the new version 2.0.4 by adding the AddHandler Entry as new Line. Since there is no major changes, no need to recompile, reinstall the ntphpselector plugin. The old users can fix this bug by running the following commands from root terminal.

Fix:

cd /usr/local/src
wget -N http://nixtree.com/download/free/ntphp/ntphp_patch204.sh
sh ntphp_patch204.sh

Read more

OpenSSL Heartbleed Bug

The Heartbleed Bug is a serious vulnerability in the popular OpenSSL cryptographic software library. This weakness allows stealing the information protected, under normal conditions, by the SSL/TLS encryption used to secure the Internet. SSL/TLS provides communication security and privacy over the Internet for applications such as web, email, instant messaging (IM) and some virtual private … Read more

Change the Max File Upload Size for PhpMyAdmin in Plesk

In some cases, we need to restore  big databases using phpmyadmin. In that cases, we need to increase the upload limit in phpmyadmin to accomplish this. Change the values (to the required value) “upload_max_filesize” & “post_max_size” in the file “/usr/local/psa/admin/conf/php.ini” And restart the apache, here plesk service providing the apache for phpmyadmin, so restart psa. /etc/init.d/psa stop … Read more

ntVersionCheck : New release v2.0.0

The new release is added with mailing function to send report to the admin.

  • Send report to the mentioned email address
  • We can modify the email address and frequency for sending the report.
  • Fixed the shbang error with the ntVersionCheck

You can update your plugin by clicking the “Update” button (which is in disabled state, and appear only if an update is available) appear on your home page of the plugin.

Read more

How to disable service alerts in DirectAdmin

Sometimes people would like to disable service warning alerts. There is an option in DirectAdmin at Home >> Administrator Settings >> ” Notify all admins whenever a service goes down using the messaging/ticket system”. But that will disable all alerts and if you want to disbale alerts for a specific server do the following steps … Read more