我拥有一个小型家庭NAS/Server NSA310S。不幸的是,在官方包存储库中,只有5.0.8版本可用。去年我成功地安装了7.x。版本,使用以下方法:
(Connect to the NSA as root using telnet - you first need to enable
in the administrator's webpanel. Then you can run the commands.)
cd /usr/local/zy-pkgs/gui
wget http://download.owncloud.org/community/owncloud-latest.tar.bz2
tar xjvf owncloud-latest.tar.bz2
cp ownCloud/config/config.php owncloud/config/config.php
vi owncloud/config/config.php
(To set 'version' to the correct value for the downloaded one.)
cd /usr/local/zy-pkgs/gui/owncloud/lib/private
chmod 660 config.php
cd /usr/local/zy-pkgs/gui
mv ownCloud oldCloud
(Just to be safe, keeping the old original version at hand for now.)
mv owncloud ownCloud
(Putting the new version in place of the old one. Now only thing needed
is to log in as the admin to the web interface and follow the instruction
shown on screen - voila, new version installed and working.)不幸的是,此方法对当前版本的ownCloud根本不起作用。我不知道是什么改变了这种升级方法,也不知道哪个版本是最后一个能工作的版本。
有人试验过ZyXEL的国家安全局吗?或者知道ownCloud的哪个版本可以与此设备一起工作?
我使用最新版本的固件- 4.75。
发布于 2016-05-25 22:05:21
我做了一些实验,我发现我在最初的问题中提到的安装方法适用于8.0.10。或者至少--它部分地工作--应用程序只有在我执行之后才能工作。
chmod -R 777 /usr/local/zy-pkgs/gui/ownCloud作为最后一步。没有这个,我得到了一个空白页。当然,我强烈反对这样做,因为这样任何人都可以读取、运行或编辑目录中的任何文件,这是一个严重的安全漏洞。
目前,我正在试验ownCloud内置升级工具,看看它允许我升级多少应用程序,然后我将尝试手动安装最高的工作版本,并尝试找到在权限方面需要特别注意的文件。
更新: ownCloud成功地更新为8.0.13。现在,更新者建议升级到8.1.8。现在试一试。
更新2:版本8.1.8不起作用,试图在浏览器中打开它失败了--显示了一个空白页。把ownCloud局长调到777并没有改变任何事情。8.0.13可能是可以在这些设备上工作的最新版本,现在我将继续使用它。
更新3:使用此方法无法安装8.0.13版本(尽管chmod‘’ing整个目录为777)仍是空白页。启动和运行8.0.13的唯一可能方法似乎是安装8.0.10,然后使用内置工具进行升级。
更新4:在chown‘’ing目录到root:root和chmod‘’ing到og+rw之后,我设法使8.0.13版本从干净安装开始工作(我知道从安全的角度来看,它可能不是一个最佳的解决方案,但这仍然比777好得多)。然后,我使用内置更新程序成功地将其更新为8.0.13。在设备上安装新版本的整个过程如下:
(Connect to the NSA as root using telnet - you first need to enable
in the administrator's webpanel. Then you can run the commands.)
cd /usr/local/zy-pkgs/gui
wget https://download.owncloud.org/community/owncloud-8.0.13.tar.bz2
tar xjvf owncloud-8.0.13.tar.bz2
cp ownCloud/config/config.php owncloud/config/config.php
vi owncloud/config/config.php
(To set 'version' to the correct value for the downloaded one - 8.0.13 in this case)
mv ownCloud oldCloud
(Just to be safe, keeping the old original version at hand for now.)
mv owncloud ownCloud
(Putting the new version in place of the old one.)
chown -R root:root ownCloud
(Changing ownership to root:root, the way original ZyXEL apps are)
chmod -R uog+rw ownCloud
(Giving permission to read and write the files to the system users,
this is needed, because otherwise the app won't work - an empty
page will be shown.)
Next step is opening the app in browser, by visiting
http://nsa's_ip/pkg/ownCloud and following the instructions
displayed on screen. Feel free to remove the oldCloud directory if
everything worked fine. To do this run the command:
rm -rf oldCloud不要更新到8.1.X或更新,它将无法在这些设备上工作-空白页将显示。
更新5:我已经测试了当前版本(8.0.14) -- 8.0.13的更新和基于上述工作的清洁安装过程。应用程序运行干净可靠。不过,在8.1.x上还是没有运气。
发布于 2019-11-03 20:06:40
我很想对此发表评论,但我不能像我那样名声太低,但我想感谢Jakub的出色描述,并添加了一些可能对其他人有用的东西。
我拥有一个来自Zyxel的NSA325-v2,并且被OwnCloud 7.0.3卡住了。我使用了Jakubs很棒的教程,可以更新到8.0.13。对于任何寻找细粒度版本备份的人:下面是一个很好的链接FullVersion OwnCloud史
只是添加了一些内容(对于NSA325-v2):
在成功之后,我成功地升级到8.0.16 (使用完全相同的方法)。
之后,我成功地升级到8.1.12,但在登录之前,我必须将"'trusted_domains‘=>数组('nsa325-v2’)“添加到config.php中。
但是:当试图使用内部更新程序中的OwnCloud构建升级到8.2.11时,所有的更新似乎都能工作,但是当登录到OwnCloud开始抱怨缺少PHP模块CURL时,我还不能安装它。
https://serverfault.com/questions/770272
复制相似问题