Error message

Warning: unlink(/usr/local/share/drupal7/drupal-7.34/sites/drupal.txwikinger.me.uk/files/css/follow.css): Permission denied in drupal_unlink() (line 2282 of /usr/local/share/drupal7/drupal-7.34/includes/file.inc).

php5-mcrypt and php5-imap packages are now available for php5.2

I have finally managed to fix the problems with the installation of php5-mcrypt and php5-imap from my repository. However, it needs to be noted that the versions of those packages are 5.2.6, hence the pinning in the /etc/apt/preferences file must be done accordingly!

Location: 

Comments

Hello,

First THANK YOU for having these packages available as it saved my day when our server was upgraded to Ubuntu 10.04. The only issue I am having is the imap and mcrypt packages are not loading properly. I receive the following errors:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/mcrypt.so' - /usr/lib/php5/20060613/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/imap.so' - /usr/lib/php5/20060613/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0

I did notice that the two modules are available in a directory named 20090626 but not in the 20060613 directory. When I tried to copy them over to the 20060613 directory they still did not load properly and I received the following errors:

PHP Warning: PHP Startup: imap: Unable to initialize module
Module compiled with module API=20090626, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20090626, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0

Would you have any suggestions for how to resolve this issue? Again thank your for the PHP 5.2 packages.

I am running into the same problem as the above poster.. I tried making a symlink as well but to no avail. It seems that php is trying to load a specific version and the version that is installed does not have the correct build info.

Anyway to solve this?

The mcrypt and imap packages do install but they appear to have built against the wrong PHP API and so are installed into the wron directory and will not load anyway.

However, all is not lost if you really need to sort it.

For imap to work I needed to download two deb packages built for karmic and install them manually:

wget http://de.archive.ubuntu.com/ubuntu/pool/universe/u/uw-imap/libc-client2...
sudo dpkg -i libc-client2007b_2007b~dfsg-1.1build1_amd64.deb

wget http://security.ubuntu.com/ubuntu/pool/universe/p/php-imap/php5-imap_5.2...
sudo dpkg -i php5-imap_5.2.6-0ubuntu6.1_amd64.deb

There is a similar process for mcrypt too. It would be great if Ralph (or someone else who understands packaging) could re-build those two packages so they work but I guess there isn't that much demand anymore...

HTH

Al

Rebuilding the packages with the such that they work together is already on my list - Just did not get to it yet :)

Hi,
I'm just wondering if you have been able to work on this. I'm also having issues with php5-memcached and php-apc. Please see my post here http://2bits.com/drupal-planet/various-ways-running-php-52-ubuntu-1004-l....
Thanks.

Pages