Musings of a *IX guy

All things Unixy and not Unixy
  • rss
  • About
  • Tuqix front page
  • Blog

Yum hangs when checking updates with epel repo

Dave | May 20, 2010

Redhat 5

In /var/log/mesages lots of :-

May 20 09:50:01 Server1 : error getting update info: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again

If I run yum -d 9 check-update it hangs at Setting up Package Sacks

Found out that another admin had added epel.repo in /etc/yum.repos.d

As we use a proxy to connect to Redhat it appears there is a feature that if you add repos then you need to update /etc/yum.conf  yum will not pick up the proxy settings from /etc/sysconfig/rhn/up2date

Adding proxy=http://proxy.mydomain.co.uk:8080  to /etc/yum.conf soleved the problem.

Comments
No Comments »
Categories
Linux
Comments rss Comments rss
Trackback Trackback

Stop Spam in Wordpress Comments – Install CAPTCHA

Dave | May 2, 2010

This Wordpress blog has been targeted by Spam bots since it started but recently it has got a lot worse and it is getting tedious to go through all the pending comments and delete the Spam ones.

I’ve seen CAPTCHA used on other sites as a means to distinguish between humans and Spam bots so a quick Google for Wordpress CAPTCHA plugins found a few. I wanted one that is updated regularly so it will still work when a new Wordpress update is available. The plugin I chose was SI CAPTCHA . This seems to be regularly updated , looks very good, has audio and it works fine – I have had no Spam bot comments since installing. The plugin is free but if you find it useful and want to fund further development then there is a Paypal link – if you think how much time this plugin will save you a donation is highly recommended.

The link on the Wordpress plugins site has all the information needed to install. ( Note for Centos check you have php-gd installed – see below ).  Basically you unzip it into wp-contents/plugins directory then go to your Admin page , select plugins ,  then activate the SI Captcha plugin.

There is a nice Captcha support test link to check all is well – my setup failed first time – I got :-

ERROR: GD image support not detected in PHP

ERROR: imagepng function not detected in PHP

This was resolved by installing php-gd RPM. For Centos you would do

yum install php-gd

service httpd restart

Now if anyone wants to add a comment they have to pass the CAPTCHA test which Spam bots are no good at.

Note by default it won’t add the CAPTCHA box to users who are logged in so ensure you have logged out if you want to test it for yourself.

You should see the CAPTCHA at the bottom of this entry.

Comments
2 Comments »
Categories
Uncategorized
Comments rss Comments rss
Trackback Trackback

Navigation

  • AIX
  • Applications to install on a personal web site
  • Centos
  • Email
  • Hi-Fi
  • Linux
  • Linux desktop
  • TSM
  • Uncategorized
  • VPS server
  • Websphere
  • Wordpress

Search

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox