owncloud7.0.2.1升级8.0.3

进入更新中心升级,会自动备份下载安装,安装完提示更新数据库,跳转页面后提示需要php5.4以上版本,检查当前环境为php5.3.3。服务器为CentOS6.4,使用yum更新最新版本即5.3.3。

 正在检查您的安装...

正在下载包...

正在创建备份...

备份:/***/owncloud/updater_backup/7.0.2.1-7ca5d8d8.zip

正在移动文件...

已全部完成。点击下方链接开始进行数据库更新。 

网上找到如下解决办法:

yum remove php  php-bcmath php-cli php-common  php-devel php-fpm    php-gd php-imap  php-ldap php-mbstring php-mcrypt php-mysql   php-odbc   php-pdo   php-pear  php-pecl-igbinary  php-xml php-xmlrpc

rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm

yum install php54w  php54w-bcmath php54w-cli php54w-common  php54w-devel php54w-fpm    php54w-gd php54w-imap  php54w-ldap php54w-mbstring php54w-mcrypt php54w-mysql   php54w-odbc   php54w-pdo   php54w-pear  php54w-pecl-igbinary  php54w-xml php54w-xmlrpc php54w-opcache php54w-intl php54w-pecl-memcache

在webtatic的源更新安装php5.4。数据库可以正常更新

 在继续之前,请确认数据库、配置文件夹和数据文件夹已经备份。

为避免更大的安装演示,你能在你的安装目录下面运行这些命令:

./occ upgrade 

 更新后发现部分插件已经被禁用,如bookmarks、bookmarks、bookmarks等,手贱,挨个点了“启用”。不记得点到第几个,提示失败,再回到首页HTTP Error 500。

错误日志为:

PHP Fatal error:  Class OCA\Contacts\Share\Addressbook contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCP\Share_Backend::isShareTypeAllowed) in /***/owncloud/apps/contacts/lib/share/addressbook.php on line 130

https://forum.owncloud.org/viewtopic.php?t=26987 上面解释为插件不兼容,需要恢复备份,嫌麻烦。

自己找了找数据库,在oc_appconfig表中找到了插件的配置,将contacts禁用后错误依旧,用同样的方式禁用calendar后可以打开登录页面。

网上还有另外的方法:

sudo -u apache php occ app:disable calendar
sudo -u apache php occ app:disable contacts

这个应该也能用,但是这个命令依赖posix。安装:

yum install php54w-process

15-07-02补充:

开启应用的时候已是“应用未提供 info.xml 文件”

日志错误是“Invalid OCS content returned for app 166052”

查资料说在lib/private/httphelper.php文件74行加入:

curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

完成后:

     71             if(defined('CURLOPT_PROTOCOLS')) {
     72                 curl_setopt($curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
     73             }
     74             curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
     75             if(defined('CURLOPT_REDIR_PROTOCOLS')) {
     76                 curl_setopt($curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
     77             }
原文地址:https://www.cnblogs.com/ShepherdIsland/p/owncloud_update_8_0_3.html