Archive for August 2011

Yum error : libbeecrypt.so.6: cannot open shared object file: No such file or directory

If you come across the above error while installing yum on centos 5.x then just follow the below steps :

[[email protected]]# cd /usr/lib

[[email protected] /usr/lib]# wget linuxspy.info/libbeecrypt.so.6.4.0

[[email protected] /usr/lib]# chmod 755 libbeecrypt.so.6.4.0

[[email protected] /usr/lib]# ln -s libbeecrypt.so.6.4.0 libbeecrypt.so.6

To test, if yum is working just try the command :

[[email protected]]# yum list httpd
 Loading "installonlyn" plugin
 Setting up repositories
 Reading repository metadata in from local files
 Installed Packages
 httpd.i386 2.2.3-43.el5.centos.3 installed
 Available Packages
 httpd.i386 2.2.3-45.el5.centos.1 updates

That’s all you are done.

HTMLDoc installation on Cpanel server

If you want to install HTMLDoc on a cPanel server or any other linux server then follow the below steps :

[email protected][~]# cd /usr/local/src/

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

wget http://ftp.easysw.com/pub/htmldoc/1.8.27/htmldoc-1.8.27-source.zip


[email protected][/usr/local/src/]# unzip htmldoc-1.8.27-source.zip


[email protected][/usr/local/src/]# cd htmldoc-1.8.27/


[email protected][/usr/local/src/htmldoc-1.8.27]# ./configure


[email protected][/usr/local/src/htmldoc-1.8.27]# make


[email protected][/usr/local/src/htmldoc-1.8.27]# make install


[email protected][/usr/local/src/htmldoc-1.8.27]# which htmldoc
/usr/bin/htmldoc

Note:You candownload the latest version of HTMLDocs from here :  http://www.htmldoc.org

That’s all you are done.

How to fix immutable_files error

If you are getting the above error while executing upcp on your server then just remove the immutable attribute for the file listed in the error.

Below is the command to remove the immutable attributes

chattr -V -i /path/to/file

To check for the immutable attributes on a file run the below command

[email protected][~]# /usr/local/cpanel/scripts/check_immutable_files

1 immutable files were found on the system, update cannot proceed.

Now just check the file name for which immutable attributes are placed


[email protected] [~]# cat /var/cpanel/immutable_files

 

/usr/local/cpanel/bin/ftpupdate
 

To remove the immutable attributes for the file “/usr/local/cpanel/bin/ftpupdate” run the below command


[email protected][~]# chattr -V -i /usr/local/cpanel/bin/ftpupdate
chattr 1.39 (29-May-2006)
Flags of /usr/local/cpanel/bin/ftpupdate set as -u—a-A–

 

Now, just again check for the immutable files


[email protected][~]# /usr/local/cpanel/scripts/check_immutable_files
OK: No immutable files were found on the system.

 

That’s all you are done.