Comment 7 for bug 573591

Revision history for this message
Carlos Miranda Levy (carlos-civila) wrote : Re: Uploads greater than 64 kilobytes corrupted under PHP 5.3.2

Posted detailed instructions for downgrading on my blog at http://www.socinfo.com/ubuntu/php/fcgid/bug-fix-corrupt-files-upload

Short Summary here:

    * First, download a trusted version of libapache2-mod-fcgid to 1:2.2-1 from http://packages.ubuntu.com/karmic/libapache2-mod-fcgid . In my case, running Ubuntu 64bit being in Singapore now, the closest mirror was Korea, so I did:

      wget http://kr.archive.ubuntu.com/ubuntu/pool/universe/liba/libapache2-mod-fcgid/libapache2-mod-fcgid_2.2-1_amd64.deb

    * Then install it with:

      sudo dpkg -i libapache2-mod-fcgid_2.2-1_amd64.deb

    * Finally, you need to "hold" this version so that it is not upgraded later on any maintenance process or update you do:

      sudo -s
      echo libapache2-mod-fcgid hold | dpkg --set-selections

That's it. You can reload Apache and restart Apache:

sudo etc/init.d/apache2 reload
sudo apache2ctl graceful

You can see the actual version of libapache2-mod-fcgid installed by typing:

sudo dpkg -s libapache2-mod-fcgid

And you can test that it remains even do an upgrade and then test if the version remains. You will see a notice when doing the upgrade that this package will be ignored.

sudo apt-get update
sudo apt-get upgrade
sudo dpkg -s libapache2-mod-fcgid