ABHIONLINUX
Site useful for linux administration and web hosting

2012/10/20

Compiling nagios-plugins-1.4.16 throws an error


While compiling nagios plugins, you can get an error given below.

==========================
 check_http.c:312:9: error: ‘ssl_version’ undeclared (first use in this function)
....
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory `/usr/local/src/nagios-plugins-1.4.16/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/nagios-plugins-1.4.16'
make: *** [all] Error 2
========================

Fix :
yum install libssl-dev
yum install openssl*

Once this is installed , you will be able to compile the plugins without any issue.

View linux plesk admin password

You can view linux plesk admin password using


[root@server ~]#  /usr/local/psa/bin/admin --show-password
PasSwoRd



2012/10/18

PCNTL installation in cpanel

PCNTL is php funtion that can be use the control and manage process. It is similar to process creation, execution , termination in unix.

Following are the steps to install PCNTL funtion in cpanel server.

1. Create a file all_php5 in the folder /var/cpanel/easy/apache/rawopts
2. Add  '--enable-pcntl' in the file all_php5.
3. Rebuild apache using /scripts/easyapache

You can verify it using  php -m | grep pcntl