Archive for December 2010

Show / Edit Reserved IPs not showing Reserverd IP’s in WHM

Sometimes, it happens that when you try to reserve  some  IP’s from WHM >>  Main >>  IP  Funtions  >> Show / Edit Reserved ips along with  the reason  for reserving a IP   does not add any IP in  the  Reserve list and also does not hold Reason for Reserving  a IP even when you try to Rebuild the IP Address Pool.

This happens because of the permissions on  these  two files :

1) /etc/reservedips

2) /etc/reservedipreasons


To fix this follow the below steps :

Check the permissions on both the files

[email protected][#] lsattr /etc/reservedips

it will show the output as :

-u–ia——- /etc/reservedips

[email protected][#] lsattr /etc/reservedipreasons

it will show the output as :

-u–ia——- /etc/reservedipreasons

To remove those permissions

[email protected][#]  chattr -aui /etc/reservedips

now check the permissions again for

/etc/reservedips

[email protected][#] lsattr /etc/reservedips

now it will  show the output as :

————- /etc/reservedips


same for /etc/reservedipreasons

[email protected][#] chattr -aui  /etc/reservedipreasons

now check the permissions again for /etc/reservedipreasons

[email protected][#] lsattr /etc/reservedipreasons

now it will show the output as :

————- /etc/reservedipreasons


That’s all you are done.

Native SSL support failed to pass the startup test.

If you are getting  above error then  it mean CPanel has been  updated to  the lasted version  and it also updates  the “Net::SSLeay”  version to  1.36 and that is why  you get  the error :


Native SSL support failed to pass the startup test.  stunnel was started instead.
The exact error was: [linktest=BinCheck ok
] [binary=/usr/local/cpanel/cpsrvd-ssl] [cpsrvd=Net::SSLeay object version 1.36 does not match $Net::SSLeay::VERSION 1.32.
]

In order to fix this follow the below steps :
1) Download the Net_SSLeay 1.30 or 1.32

[email protected][#] cd /usr/local/src
[email protected][#] wget http://mirror.yourconnect.com/CPAN/authors/id/F/FL/FLORA/Net_SSLeay.pm-1.30.tar.gz
or
[email protected][#] wget http://mirror.yourconnect.com/CPAN/authors/id/F/FL/FLORA/Net-SSLeay-1.32.tar.gz

2) Then extract the tar.gz file

[email protected][#] tar -zxf Net_SSLeay.pm-1.30.tar.gz

or

[email protected][#] tar -zxf Net-SSLeay-1.32.tar.gz

Then go to dir Net_SSLeay.pm-1.30 or Net-SSLeay-1.32

[email protected][#] cd Net_SSLeay.pm-1.30/

or

[email protected][#] cd Net-SSLeay-1.32/

and then execute Make file and then perform make install

[email protected][/usr/local/src]# ./Makefile.PL -t

[email protected][/usr/local/src]# make install

Now, finally you can check the installed module from WHM >> Main >> Software >> Install a Perl Module

That’s all you are done.

sshd has failed, please contact the sysadmin

On   a Cpanel server when you define any custom port in  the /etc/ssh/sshd_config file other than the default port that is 22 then CPanel doesn’t recognized that port  when  you restart the SSH service from WHM and that is why it through’s the error “sshd has failed, please contact the sysadmin” .

But that doesn’t mean that the SSH  service is not working on the server , you can  connect the server with  the custom SSH port  through  SSH .