AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[owncloud](server)

Martin Hope
bolino
Asked: 2020-05-27 09:00:33 +0800 CST

OwnCloud 服务器无法加载外部存储文件夹内容

  • 1

我在运行 PHP 7.3、Apache 2.4.38 和 MariaDB 10.3 的 Debian 10 服务器上安装了 ownCloud 10.4。OwnCloud 似乎运行良好,至少从它的 Web UI 来看是这样。

我的服务器上安装了一个硬盘驱动器/mnt/data/,我需要将其用作 ownCloud 服务器存储空间。

(我一直在考虑(并尝试)使用 to 的符号链接/var/www/owncloud/data/user/files/symlink,/mnt/data/但它不起作用。)

我已经添加'files_external_allow_create_new_local' => 'true',到 ownCloud 配置文件config.php中,所以我现在可以成功地使用 ownCloud Web UI 添加本地存储。我已经更改了 的权限,/mnt/data/现在所有内容www-data都由 ownCloud 使用的 Debian HTTP 用户递归拥有。

在ownCloud web UI管理设置的“storage”部分下,我可以添加一个配置为的文件夹/mnt/data/(它显示一个绿色圆圈),然后它会出现在用户的web UI上,但说里面没有文件,是否有我使用 ownCloudphp occ files:scan --all命令重新扫描。

此外,当我添加一个配置为外部磁盘上现有子文件夹的子文件夹时/mnt/data/subfolder,它不会添加它,在 Web UI 的设置中显示一个红色方块作为错误。它还在ownCloud Web UI顶部显示“某些已配置的外部挂载点未连接。请单击红色行以获取更多信息”。

我在这里想念什么?谢谢!

linux debian owncloud
  • 1 个回答
  • 814 Views
Martin Hope
Germano Massullo
Asked: 2017-03-07 16:35:31 +0800 CST

nextcloud - 服务器配置拒绝客户端:/usr/share/nextcloud

  • 0

我习惯在 Fedora 上安装 owncloud 服务器,但这次我在 CentOS 7 上安装了 nextcloud。我按照程序

# yum install nextcloud
# yum install crypto-utils mod_ssl openssl
# genkey hostname

edit

/etc/httpd/conf.d/ssl.conf

adding

SSLCertificateFile /etc/pki/tls/certs/hostname.crt
SSLCertificateKeyFile /etc/pki/tls/private/hostname.key

let's prepare the database

# yum install mariadb-server
# systemctl enable --now mariadb
$ mysql_secure_installation

$ mysql -u root -p
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE IF NOT EXISTS nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
quit

then

# sudo -u apache php occ maintenance:install --data-dir /var/lib/nextcloud/data/ --database "mysql" --database-name "nextcloud"  --database-user "nextcloud" --database-pass "password" --admin-user "admin" --admin-pass "password"

then edit

/etc/owncloud/config.php

and add machine ip address under 'trusted_domains'

# firewall-cmd --permanent --zone=public --add-service=http
# firewall-cmd --permanent --zone=public --add-service=https
# firewall-cmd --reload

不幸的是,这次 nextcloud 不起作用,实际上是通过尝试打开

https://machine_ip/nextcloud

我明白了

Forbidden. You don't have permission to access /nextcloud on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

几行# cat /var/log/httpd/ssl_error_log

[Tue Mar 07 00:51:39.331935 2017] [authz_core:error] [pid 2456] [client removed_by_me:51184] AH01630: client denied by server configuration: /usr/share/nextcloud
[Tue Mar 07 00:51:39.331988 2017] [authz_core:error] [pid 2456] [client removed_by_me:51184] AH01630: client denied by server configuration: /usr/share/nextcloud/core/templates/403.php
[Tue Mar 07 00:59:19.968622 2017] [ssl:warn] [pid 2498] AH01909: RSA certificate configured for fe80::removed_by_me:443 does NOT include an ID which matches the server name
[Tue Mar 07 00:59:20.006434 2017] [ssl:warn] [pid 2498] AH01909: RSA certificate configured for fe80::removed_by_me:443 does NOT include an ID which matches the server name
[Tue Mar 07 00:59:30.267154 2017] [authz_core:error] [pid 2503] [client removed_by_me:51450] AH01630: client denied by server configuration: /usr/share/nextcloud
[Tue Mar 07 00:59:30.267226 2017] [authz_core:error] [pid 2503] [client removed_by_me:51450] AH01630: client denied by server configuration: /usr/share/nextcloud/core/templates/403.php
[Tue Mar 07 01:00:20.574679 2017] [authz_core:error] [pid 2505] [client removed_by_me:51488] AH01630: client denied by server configuration: /usr/share/nextcloud
[Tue Mar 07 01:00:20.574931 2017] [authz_core:error] [pid 2505] [client removed_by_me:51488] AH01630: client denied by server configuration: /usr/share/nextcloud/core/templates/403.php
[Tue Mar 07 01:00:49.528960 2017] [ssl:emerg] [pid 2537] AH02204: Init: Pass phrase incorrect for key of fe80::removed_by_me:443
[Tue Mar 07 01:00:49.529005 2017] [ssl:emerg] [pid 2537] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Tue Mar 07 01:00:49.529021 2017] [ssl:emerg] [pid 2537] SSL Library Error: error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error
[Tue Mar 07 01:00:49.529032 2017] [ssl:emerg] [pid 2537] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Tue Mar 07 01:00:49.529044 2017] [ssl:emerg] [pid 2537] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=RSA)
[Tue Mar 07 01:00:49.529066 2017] [ssl:emerg] [pid 2537] SSL Library Error: error:04093004:rsa routines:OLD_RSA_PRIV_DECODE:RSA lib
[Tue Mar 07 01:00:49.529077 2017] [ssl:emerg] [pid 2537] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Tue Mar 07 01:00:49.529087 2017] [ssl:emerg] [pid 2537] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO)
[Tue Mar 07 01:01:12.593572 2017] [ssl:warn] [pid 2568] AH01909: RSA certificate configured for fe80::removed_by_me:443 does NOT include an ID which matches the server name
[Tue Mar 07 01:01:12.669001 2017] [ssl:warn] [pid 2568] AH01909: RSA certificate configured for fe80::removed_by_me:443 does NOT include an ID which matches the server name
[Tue Mar 07 01:19:01.904878 2017] [authz_core:error] [pid 2573] [client removed_by_me:55170] AH01630: client denied by server configuration: /usr/share/nextcloud
[Tue Mar 07 01:19:01.905130 2017] [authz_core:error] [pid 2573] [client removed_by_me:55170] AH01630: client denied by server configuration: /usr/share/nextcloud/core/templates/403.php
You don't have permission to access /nextcloud on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

# cat /etc/httpd/conf.d/nextcloud.conf

# cat /etc/httpd/conf/httpd.conf

# cat /etc/httpd/conf.d/ssl.conf

# ls -latr /etc/httpd/conf.d/
total 64
-rw-r--r--. 1 root root  691  6 nov 01.32 php.conf
-rw-r--r--. 1 root root 1252 14 nov 17.53 userdir.conf
-rw-r--r--. 1 root root 2926 14 nov 19.04 autoindex.conf
-rw-r--r--. 1 root root  366 14 nov 19.05 README
-rw-r--r--. 1 root root 2407  1 mar 02.39 nextcloud-defaults.inc
-rw-r--r--. 1 root root 1893  1 mar 02.39 nextcloud.conf
-rw-r--r--. 1 root root  263  1 mar 02.39 nextcloud-auth-none.inc
-rw-r--r--. 1 root root  313  1 mar 02.39 nextcloud-auth-local.inc
-rw-r--r--. 1 root root  278  1 mar 02.39 nextcloud-auth-any.inc
-rw-r--r--. 1 root root  994  1 mar 02.39 nextcloud-access.conf.avail
drwxr-xr-x. 5 root root 4096  6 mar 13.59 ..
drwxr-xr-x. 2 root root 4096  6 mar 17.30 .
-rw-r--r--. 1 root root 9432  6 mar 17.33 ssl.conf
-rw-r--r--. 1 root root  837  7 mar 00.25 welcome.conf


# ls -latr /etc/httpd/conf.modules.d/
total 44
-rw-r--r--. 1 root root  216  6 nov 01.32 10-php.conf
-rw-r--r--. 1 root root  451 14 nov 17.53 01-cgi.conf
-rw-r--r--. 1 root root   88 14 nov 17.53 00-systemd.conf
-rw-r--r--. 1 root root   41 14 nov 17.53 00-ssl.conf
-rw-r--r--. 1 root root  957 14 nov 17.53 00-proxy.conf
-rw-r--r--. 1 root root  742 14 nov 17.53 00-mpm.conf
-rw-r--r--. 1 root root   41 14 nov 17.53 00-lua.conf
-rw-r--r--. 1 root root  139 14 nov 17.53 00-dav.conf
-rw-r--r--. 1 root root 3739 14 nov 17.53 00-base.conf
drwxr-xr-x. 5 root root 4096  6 mar 13.59 ..
drwxr-xr-x. 2 root root 4096  6 mar 17.30 .

如果您需要任何其他日志,请告诉我

centos redhat nextcloud owncloud
  • 1 个回答
  • 4236 Views
Martin Hope
CodeBreaker
Asked: 2017-01-20 23:34:40 +0800 CST

使用域名访问本地owncloud安装

  • 1

我在位于企业孵化器的办公室的本地服务器上安装了owncloud,并在远程服务器上安装了一个带有域名的网站。

当前安装:

  • 域:example.com 指向我的远程服务器
  • 使用本地静态 ip 192.168.17.98:80 安装 owncloud
  • 孵化器的ip/port 123.123.456.789:1234 转发到owncloud的本地ip/port

我可以使用 incubarot 的 ip/port 123.123.456.789:1234 和本地 ip 192.168.17.98:80 访问 owncloud 安装

我的目标是能够使用子域 owncloud.example.com/ 访问owncloud

这种配置可行吗?

port-forwarding domain local-area-network owncloud
  • 1 个回答
  • 512 Views
Martin Hope
DEVPROCB
Asked: 2016-10-25 06:04:45 +0800 CST

在不丢失数据的情况下重新安装owncloud freenas

  • 0

我们最近发生了一次重大停电,导致我们的 freenas 服务器启动(电池备份用完了)。重新启动服务器时,owncloud 无法重新启动并引发 php 错误。它似乎与权限问题有关。我们有一段时间没有在 freenas 服务器上升级 owncloud,所以我们认为我们只是运行更新,它会解决权限问题(我知道懒惰)。好吧,升级在freenas方面没有问题,但是当访问owncloud界面时,它现在要求升级到9.1。当我们按下这个按钮时,它会说:

Exception: Updates between multiple major versions and downgrades are unsupported.

有没有办法重新安装owncloud而不会丢失freenas监狱中的所有当前数据?我们不能从头开始,因为他们的用户数据价值超过 300GB。

data-recovery truenas owncloud reinstall
  • 2 个回答
  • 853 Views
Martin Hope
Jakub
Asked: 2016-04-15 02:03:34 +0800 CST

ZyXEL NSA310S - 可以运行的最新 ownCloud 版本

  • 2

我拥有一个小型家用 NAS/服务器 - Zyxel 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。我不知道是什么改变破坏了这种升级方法,也不知道哪个版本是最后一个工作的版本。

有没有人尝试过合勤 NSA 的?或者知道哪个版本的 ownCloud 可以与这个设备一起使用?

我使用最新版本的固件 - 4.75。

network-attached-storage zyxel owncloud
  • 2 个回答
  • 2113 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve