dennis henry

ramblings of an IT professional

Follow me on TwitterRSS Feeds

  • Home
  • About
  • Linux Tutorials
  • Code
  • Docs
  • Gallery

exim: error while loading shared libraries: libperl.so: wrong ELF class: ELFCLASS32

Aug 28th

Posted by dennis in cPanel

No comments

So I ran into a very odd issue with a server today where exim would not start after a CentOS upgrade. The error message was such:

exim: error while loading shared libraries: libperl.so: wrong ELF class: ELFCLASS32

This error took awhile to google around for and I couldn’t find any relevant articles. The problem seemed to obviously be the libperl.so file but perl seemed fine and the file was identical to other server setups with the same version of perl, exim, cPanel, CentOS. I decided to try and rebuild exim with /scripts/eximup –force but that did nothing to help the situation. Eventually, I found the following command:

/scripts/eximup --source

To the best of my knowledge I gained from my research, this recompiles exim from source, converts to an rpm, then installs that. Sure enough, that fixed the issue and exim was running again with no issues. I figured I’d make this post due to the fact I couldn’t find one post with the information I needed.

centos, exim, libperl, perl, upgrade

Simple IPTables OpenVZ Setup

Aug 2nd

Posted by dennis in IPTables

1 comment

So after looking and failing to find a good article on how to describe the simple process to set up IPTables on an OpenVZ server, I figured I would write one here. The process is incredibly simple and can be broken down into 3 steps:

  1. Empty out the contents of /etc/sysconfig/iptables
    cat "" > /etc/sysconfig/iptables
  2. Use the following line in /etc/sysconfig/iptables-config:
    IPTABLES_MODULES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"
  3. Use the following line in /etc/vz/vz.conf:
    IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state"

After ensuring these three things, just stop both vz and iptables, start iptables, then start vz. You should then be able to use iptables within a virtualized container.

configuration, iptables, Linux, OpenVZ
« First...«34567»...Last »
    • Recent comments
    • Popular posts
    • Archives
    • Tags
    • Categories
    • Common Issues (7)
    • Linux (18)
      • Apache (1)
      • CentOS (4)
      • cPanel (9)
        • Easyapache (1)
      • Drives (1)
      • Exim (1)
      • IPTables (1)
      • MySQL (1)
      • Networking (2)
      • OpenSSH (1)
      • OpenVZ (4)
      • Subversion (1)
      • Xen (2)
    • PHP (2)
      • CakePHP (1)
      • GeSHI (1)
      • suPHP (1)
    3.4.3 5.x Apache assign ip addresses CakePHP centos Common Issues configuration connections cPanel cpuwatch demo Drives Easyapache exim ftp ftp accounts full GeSHI highlighting interface iptables ip usage libperl Linux memory usage mode MySQL network networking OpenVZ overwriting defaults password pcre perl preg_replace pure-ftpd resolv.conf subversion suPHP syntax upgrade venet0 xen yum
    • July 2011 (1)
    • June 2011 (1)
    • May 2011 (1)
    • March 2011 (1)
    • December 2010 (1)
    • November 2010 (2)
    • September 2010 (1)
    • August 2010 (2)
    • July 2010 (1)
    • April 2010 (2)
    • October 2009 (1)
    • June 2009 (1)
    • April 2009 (2)
    • March 2009 (3)
    • Install Xen 3.4.3 on CentOS 5.x (4)
    • CPUwatch (3)
    • Common Issues – Easyapache failing (2)
    • Total Memory on a Xen Node (2)
    • Common Issues – MySQL Connectivity Issues (1)
    • Simple IPTables OpenVZ Setup (1)
    • Common Issues – Hostname A Record (0)
    • Common Issues – Main Drive Full (Mounting Issues) (0)
    • Allocate x IPs to OpenVZ VEs (0)
    • Common Issues – Maxed out Apache Connections (0)
    • dennis: I'm glad to hear my script could help you! Xen's memory management is indeed odd but, overall, I...
    • Sam: I too was caught out by the Xen hypervisor's method of memory management. The Dom-0 machine is...
    • dennis: CPUWatch completely pauses processes until the load decreases, so its not ideal for services like...
    • victor: I've read several sites that talk about cpuwatch where they use the word Pause or throttled. ...
    • dennis: Hey Ben! Thanks for the comment. That's odd it didn't work for you. I've used this same method...
    • Ben: This did not work as per below: cpan> install Acme::Spork CPAN: Storable loaded ok...
    • dennis: Thanks Jimmy! Glad you enjoyed it.
    • jimmy: finally an upgrade guide that just "works" thanks
  • My latest tweets

    Loading tweets...
    Follow me on Twitter!
  • User Login






    • Lost your password?
RSS Feeds XHTML 1.1 Top