Owncloud ubuntu package: php5 dependency
I am using the ubuntu 14.04 package on my server and would like to upgrade to php7 (currently using php5.6 mod_apache). The owncloud-server package (version 8.2.1) however depends on php5. So it is currently not possible to upgrade to php7.
cc @jnweiger
:~$ apt-cache depends owncloud-server owncloud-server Dépend: php5 |Dépend: php5-mysqlnd Dépend: php5-mysql Dépend: php5-sqlite Dépend: php5-pgsql Dépend: php5-common Dépend: php5-gd Dépend: php-xml-parser Dépend: php5-intl Dépend: php5-mcrypt Dépend: php5-curl Dépend: php5-json Dépend: php5-ldap Dépend: php5-cli
You could add the redis mod
I have the same problem. One way to solve this could be: http://askubuntu.com/a/237354 But I have not tested that solution yet. If anyone does, please let me know how it went.
EDIT: Did not work.
sidenote: Redis is even difficult with php5: the ubuntu-14.04 php5-redis module is too old, they say: http://www.kiloroot.com/a-guide-to-owncloud-8-ubuntu-14-04-and-caching-apcu-redis-cache-and-file-locking-oh-my/
@jnweiger That's why you have to build it: https://www.techandme.se/how-to-configure-redis-cache-in-ubuntu-14-04-with-owncloud/
pecl install works and provides 2.2.7
I've started somewhat. Feel free to improve: https://github.com/owncloud/vm/commit/252ddbdf6a9768803ff54c54b4e82f6b7ac1aed6
@jnweiger If you want to install an old redis server version, that looks fine. :+1:
It's a production system. Compilers should run elsewhere.
@jnweiger What about the original issue ---^ ?
Please don't add a dependency on php-redis on owncloud-server, at most it should be an optional dependency, definitely not required or recommended
Yes. This is optional and only important for big installations.
Well, yes, i should have said "optional" or "recommended" only. I have Redis server v=3.0.5 here and it works like a charm with ownCloud.
FYI:
root@owncloud:/etc/redis# apt-mark hold owncloud owncloud-server owncloud-config-apache
owncloud set on hold.
owncloud-server set on hold.
owncloud-config-apache set on hold.
root@owncloud:/etc/redis# apt-get install php7.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
owncloud-server : Depends: php5 (>= 5.4.0) but it is not going to be installed
Depends: php5-mysqlnd but it is not going to be installed or
php5-mysql but it is not going to be installed
Depends: php5-sqlite but it is not going to be installed
Depends: php5-pgsql but it is not going to be installed
Depends: php5-common but it is not going to be installed
Depends: php5-gd but it is not going to be installed
Depends: php5-intl but it is not going to be installed
Depends: php5-mcrypt but it is not going to be installed
Depends: php5-curl but it is not going to be installed
Depends: php5-json but it is not going to be installed
Depends: php5-ldap but it is not going to be installed
Depends: php5-cli but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@owncloud:/etc/redis#
The correct solution is to have an owncloud package without any dependencies. this may be helpful with many other dependency issues too. I'll add an experimental package owncloud-base to https://download.owncloud.org/download/repositories/8.2:/testing/owncloud-base
If you decide to go that path it has to be clear in the docs which php modules that are needed to make ownCloud run properly. cc @carlaschroder
- Removed ownCloud (purged everything)
- Deleted ownCloud dir inlcuding the data folder
- Replaced owncloud.list with the new one.
- Installed php7.0*
Actual result
root@owncloud:/# apt-get install owncloud-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
owncloud-base : Depends: php5-cgi but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@owncloud:/#
EDIT Same error if I do a completely fresh install of a new OS and everything.
EDIT 2 It works if you install from archive and all the php-modules seperatly. I will fix a VM tomorrow with ownCloud 8.2.1 and PHP 7.
The VM is released, thought you would like to know: https://www.techandme.se/owncloud-8-2-1-php-7-redis-cache-lets-encrypt-webmin/
btw I just installed php 7 + all the needed php 7 modules on openSUSE 13.2. It overwrote a few files due to conflicts but otherwise, everything was smooth and worked after I removed apcu caching from the config.php. I still have php5 installed, will remove it once ownCloud-server won't also be removed ;-)
Well, so much for "PHP 7 Is Here And ownCloud Is Ready"... any news on the issue?
@MrGraversen ownCloud works with PHP 7, just download the VM and give it a try. ;) You could get it working with ownCloud with some hacking in Ubuntu.
EDIT Something like:
- Move your data and config to another location.
- Purge ownCloud
- Download the ownCloud zip or tar package, to avoid dependency issues
- Purge PHP 5
- Installl PHP 7 and needed dependencies:
sudo apt-get install php7.0 php7.0-mysql php7.0-sqlite3 php7.0-pgsql php7.0-gd php7.0-intl php7.0-mcrypt php7.0-curl php7.0-json php7.0-ldap php7.0-cli -y - Extract ownCloud and setup correct permissions
NOTE, NOT TESTED THIS METHOD. But it should work