Archive for the ‘Linux’ Category

Yum Update error of fastest mirror

========================================================
Error
========================================================
[root@servertechs.net ~]# yum update
Loaded plugins: fastestmirror
Determining fastest mirrors
Traceback (most recent call last):
File “/usr/bin/yum”, line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File “/usr/share/yum-cli/yummain.py”, line 309, in user_main
errcode = main(args)
File “/usr/share/yum-cli/yummain.py”, line 178, in main
result, resultmsgs = base.doCommands()
File “/usr/share/yum-cli/cli.py”, line 345, in doCommands
self._getTs(needTsRemove)
File “/usr/lib/python2.4/site-packages/yum/depsolve.py”, line 101, in _getTs
self._getTsInfo(remove_only)
File “/usr/lib/python2.4/site-packages/yum/depsolve.py”, line 112, in _getTsInfo
pkgSack = self.pkgSack
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 661, in
pkgSack = property(fget=lambda self: self._getSacks(),
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 501, in _getSacks
self.repos.populateSack(which=repos)
File “/usr/lib/python2.4/site-packages/yum/repos.py”, line 232, in populateSack
self.doSetup()
File “/usr/lib/python2.4/site-packages/yum/repos.py”, line 79, in doSetup
self.ayum.plugins.run(‘postreposetup’)
File “/usr/lib/python2.4/site-packages/yum/plugins.py”, line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File “/usr/lib/yum-plugins/fastestmirror.py”, line 181, in postreposetup_hook
all_urls = FastestMirror(all_urls).get_mirrorlist()
File “/usr/lib/yum-plugins/fastestmirror.py”, line 333, in get_mirrorlist
self._poll_mirrors()
File “/usr/lib/yum-plugins/fastestmirror.py”, line 376, in _poll_mirrors
pollThread.start()
File “/usr/lib64/python2.4/threading.py”, line 416, in start
_start_new_thread(self.__bootstrap, ())
thread.error: can’t start new thread

===============================================
FIX
===============================================

Edit the fastestmirror.conf file
nano /etc/yum/pluginconf.d/fastestmirror.conf

and change 1 to 0 “enable=0″
===============
main]
enabled=0
verbose=0
socket_timeout=3
hostfilepath=/var/cache/yum/timedhosts.txt
maxhostfileage=10
maxthreads=15
#exclude=.gov, facebook
===================

Please edit /etc/drweb/drweb_qmail.conf to stop receiving DrWeb notification messages…

Read the rest of this entry »

You can install ffmpeg through a script. http://sourceforge.net/projects/ffmpeginstall/

Servertechs#cd /usr/local/src

Servertechs#wget http://sourceforge.net/projects/ffmpeginstall/files/ffmpeginstall.3.x/ffmpeginstall.3.2.1/ffmpeginstall.3.2.1.tar.gz/download
Servertechs#tar -xvzf ffmpeginstall.3.2.1.tar.gz
Servertechs#cd ffmpeginstall.3.2.1
Servertechs#./install.sh

Hello,

It has been noticed that bandwidth suddenly shows double for sub-domains or on addon domain in cPanel. There seems to a bug in cPanel latest update with 11.25 release 43472 or fewer version.  cPanel has fixed it in the new realease which is release 43473. Just update cPanel with following command.

/scripts/upcp –force

There is also patch available if update does not fix it.

/scripts/autorepair repair_bwsummary

Whenever you compose email and click send, it just never sends the message. A circle keeps rotating at the top saying Sending.

Solution is:

Login to server with root user and made following changes.

vi /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php

and serach for following line

$rcmail_config[‘smtp_user’] = ‘%u';
Replace it with
$rcmail_config[‘smtp_user’] = ”;

Getting following error while sending email from rouncube.

===================================
SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/local/cpanel/base/3rdparty/roundcube/program/steps/mail/func.inc on line 1418
===================================

Cause:
It happens if you have CSF firewall installed and it is upgraded automatically or something like that.

Resolution:
Just make following changes in to firewall configuration and it will fix the issue.

nano /etc/csf/csf.conf
and search for
SMTP_ALLOWLOCAL = 1
Replace it with
SMTP_ALLOWLOCAL = 0

that’s it, restart the CSF firewall using this command:

#/etc/init.d/csf restart

After installing web calender from fantastico, you will get the following error.

Error

Cache error: Could not write file /tmp/d16090f5de830d7675276b6523ce3f59.dat.

Solution is:

Edit settings.php file which you will find under includes folder.

Search for
db_cachedir: /tmp
and replace it with following
db_cachedir: /home/user/public_html/tmp

Save the file then create tmp folder under public_html and assign 777 permission.

That is all

cheers.

After installing PHPList from fantastico, You will get Internal server Error while trying to get in to PhpList Admin.

You will get that error when you have SUEXEC server and it does not allow php parameters in .htaccess file. Normally during phplist installation, it does create .htaccess file with following line in it.

php_flag magic_quotes_gpc on

Just comment the above line and you will not receive internal server error.

Following are the steps to install xpdf , libXp and antiword on Linux (Centos or Redhat 32 Bit ) server

cd /usr/local/src/

Dowload following RPM’s files under the /usr/local/src/ directrory.

wget http://mit.edu/zacheiss/dev/rhlinux/redhat-7.1-updates/SRPMS/xpdf-0.92-4.71.0.src.rpm

wget ftp://ftp.univie.ac.at/systems/linux/fedora/core/6/i386/os/Fedora/RPMS/libXp-1.0.0-8.i386.rpm

wget http://dag.wieers.com/rpm/packages/antiword/antiword-0.37-3.el5.rf.i386.rpm

rpm -ivh antiword-0.37-3.el5.rf.i386.rpm

or

http://dag.wieers.com/rpm/packages/antiword/?N=A

Then

rpm -ivh xpdf-0.92-4.71.0.src.rpm

rpm -ivh libXp-1.0.0-8.i386.rpm

Then you can check it

root@server [/usr/local/src]# which xpdf
/usr/local/bin/xpdf
root@server [/usr/local/src]# which antiword
/usr/bin/antiword

Done

To install Mail::SPF , Just run following single command and it will instakll MAIL:: SPF

perl -MCPAN -e "get('Mail::SPF')" && cd /home/.cpan/sources/authors/id/J/JM/JMEHNLE/mail-spf && tar -xzvf Mail-SPF-v2.007.tar.gz && cd Mail-SPF-v2.007 && perl Build.PL && ./Build && ./Build test && ./Build install && /scripts/checkperlmodules --full

You can also run following commands. It is a break up of above command.

# perl -MCPAN -e "get('Mail::SPF')"
# cd /home/.cpan/sources/authors/id/J/JM/JMEHNLE/mail-spf
# tar -xzvf Mail-SPF-v2.007.tar.gz
# cd Mail-SPF-v2.007
# perl Build.PL
# ./Build
# ./Build test
# ./Build install
# /scripts/checkperlmodules --full