HowTo update Ubuntu 14.04 / php5-apcu to a owncloud supported version
This is a note to #14273 (Use APCu only if available in version 4.0.6 and higher)
As Ubuntu 14.04 ships currently the php5-apcu version 4.0.2, you get according the merged PR above the Warning in OwnCloud. Ubuntu 14.10 has already release 4.0.6.
Because it may take some time that the version is updated for 14.04 but admins may want to use a stable version of php5-apcu, I thought it is maybe worth to document the procedure how to manually install version 4.0.6 or 4.0.7.
Check the version
sudo dpkg -s php5-apcu
First we have to uninstall the current version:
sudo apt-get remove php5-apcu
Then we need to install the correct working version:
Do a listing of a version you want to install:
http://mirrors.kernel.org/ubuntu/pool/universe/p/php-apcu/
cd /tmp
sudo wget http://mirrors.kernel.org/ubuntu/pool/universe/p/php-apcu/php5-apcu_4.0.6-1_amd64.deb
sudo dpkg -i php5-apcu_4.0.6-1_amd64.deb
sudo rm php5-apcu_4.0.6-1_amd64.deb
Restart php
This issue can be closed when version 4.0.6+ is officially available to Ubuntu 14.04
cc @LukasReschke What to do here?
Nothing from my PoV – we will simply not use older APCu versions and people should complain to their distributor. I wouldn't advise users to use manually backported stuff.
Which means somebody has to do an SRU: https://bugs.launchpad.net/ubuntu/+source/php-apcu/+bug/1374892
I wouldn't advise users to use manually backported stuff.
Ack.
Then we should close this. @mmattel Can you add this to the release notes and link the above Launchpad ticket? Thanks - https://github.com/owncloud/documentation/blob/master/admin_manual/release_notes.rst
Will do, but it may take some days as I will be on vacation
@mmattel No problem :) Thanks
Thanks mmattel. Fixed my owncloud 8.02 problem on Ubuntu 14.04.2.
unfortunately there is no ARM based builds which i use for example :(
root@# uname -a Linux cubeserver 3.4.79 #7 SMP PREEMPT Tue Apr 1 22:43:53 CST 2014 armv7l armv7l armv7l GNU/Linux root@# cat /etc/os-release NAME="Ubuntu" VERSION="14.04.2 LTS, Trusty Tahr" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 14.04.2 LTS" VERSION_ID="14.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
As a side note people can go to the previously listed bug (https://bugs.launchpad.net/ubuntu/+source/php-apcu/+bug/1374892) and indicate that it effects you. The more Ubuntu users that register the higher the priority I find.
another sidenote: if this solution doesn´t work because of dependencies (phpapi-20131226), the following solution may work: http://xltoolbox.sourceforge.net/blog/2015/04/upgrading-php-apcu-on-ubuntu-14-dot-04-lts/
for ARM you can get the packages here: http://ports.ubuntu.com/pool/universe/p/php-apcu/
For ARM I succesfully did these steps:
First do: $ sudo apt-get remove php-apcu $ sudo apt-get install libpcre3-dev
Then follow the steps in the post below, you will most likely get some error-notification:
http://xltoolbox.sourceforge.net/blog/2015-04-02-upgrading-php-apcu-on-ubuntu-14-dot-04-lts.html
The first complain i got was that the apcu-package is in beta stage. I used $ sudo pecl install channel://pecl.php.net/apcu-4.0.7 to get it anyways but then it complained about the package not being able to get extracted. To resolve this go to (cd) /build/buildd/php5-5.5.9+dfsg/pear-build-download and then run: $ sudo gunzip ./apcu* now there should be a *.tar archive. then you run: $ sudo pear upgrade ./apcu-4.0.7.tar and it should work (atleast it did for me)!
You can ignore the warning about php.ini, it is written somewhere else. All you need to do is restart your webserver and owncloud will run and run and run...
The advertised procedure here seems to be to pull a 4.0.6 that was compiled for utopic and manually insert it into trusty. It probably works, because there is not much difference between the two. Hmmm. Still not a clean solution.
Upstream issue: https://bugs.launchpad.net/ubuntu/+source/php-apcu/+bug/1374892
On Ubuntu 14.04 for APCu 4.0.7
sudo apt-get install php5-dev sudo apt-get install libpcre3-dev sudo pecl channel-update pecl.php.net sudo pecl install apcu /etc/init.d/php5-fpm restart
I suppose this works fine.
@filippouni Thank you for that alternative. Yours (and also the ARM solutions discussed above) is a non-packaging solution, it installs a build environment and compiles from source.
I also get this error message: Failed to download pecl/apcu within preferred state "stable", latest release is version 4.0.7, stability "beta", use "channel://pecl.php.net/apcu-4.0.7" to install install failed
sudo pecl install channel://pecl.php.net/apcu-4.0.7 works as suggested.
@Bratzmeister Worked for me too... Just had to recreate the softlink in /etc/php5/fpm/conf.d/ to the apcu.ini
By the way, the correct link for the post you mentionned is : http://xltoolbox.sourceforge.net/blog/2015-04-02-upgrading-php-apcu-on-ubuntu-14-dot-04-lts.html
Thanx!
@Projekt-43
Oh, seems like that site had a rework. Thanks for pointing out. I fixed the link. nice that it works for you!
I could have sworn that 4.0.6 used to be an option, am I missing something? It is no longer available.
http://mirrors.kernel.org/ubuntu/pool/universe/p/php-apcu/
@jcmorales85 you can get the .deb package from my site ;)
http://code-engine.org/2015/10/17/owncloud-caching-with-ubuntu-14-04/
@Equilibri0
Thank you very much!!! Much appreciated.