尝试在this guide之后在Synology NAS上安装Nextcloud。
我停留在步骤9。当我点击“完成设置”时,出现以下错误:
尝试创建管理员用户时出错:无法连接到数据库:驱动程序中发生异常:SQLSTATE [HY000] [2002]连接被拒绝
MariaDB在端口3307上运行,我在“数据库主机”字段中使用127.0.0.1:3307。
我已经为MariaDB设置了root密码,并验证了它可以与phpMyAdmin一起使用。
Apache日志向我显示了此信息(不确定是否相关):
2020-02-07T09:06:52+01:00 Synology [Fri Feb 07 09:06:52.842797 2020] [core:alert] [pid 32462:tid 140624225343232] [client 192.168.1.50:34372] /var/services/web/nextcloud/data/.htaccess: Expected </IifModule> but saw </IfModule>
2020-02-07T09:07:06+01:00 Synology [Fri Feb 07 09:07:06.128359 2020] [core:alert] [pid 32462:tid 140624191772416] [client 192.168.1.50:34378] /var/services/web/nextcloud/data/.htaccess: Expected </IifModule> but saw </IfModule>
2020-02-07T09:07:20+01:00 Synology [Fri Feb 07 09:07:20.905597 2020] [core:alert] [pid 32462:tid 140624015525632] [client 192.168.1.50:34383] /var/services/web/nextcloud/data/.htaccess: Expected </IifModule> but saw </IfModule>
2020-02-07T09:08:49+01:00 Synology [Fri Feb 07 09:08:49.110084 2020] [core:alert] [pid 32462:tid 140624099452672] [client 192.168.1.50:34388] /var/services/web/nextcloud/data/.htaccess: Expected </IifModule> but saw </IfModule>
2020-02-07T09:11:12+01:00 Synology [Fri Feb 07 09:11:12.579977 2020] [core:alert] [pid 32462:tid 140624208557824] [client 192.168.1.50:34394] /var/services/web/nextcloud/data/.htaccess: Expected </IifModule> but saw </IfModule>
2020-02-07T09:12:10+01:00 Synology [Fri Feb 07 09:12:10.283186 2020] [core:alert] [pid 32462:tid 140624183379712] [client 192.168.1.50:34399] /var/services/web/nextcloud/data/.htaccess: Expected </IifModule> but saw </IfModule>
2020-02-07T09:20:09+01:00 Synology [Fri Feb 07 09:20:09.222903 2020] [core:alert] [pid 32462:tid 140624057489152] [client 192.168.1.50:34437] /var/services/web/nextcloud/data/.htaccess: Expected </IifModule> but saw </IfModule>
2020-02-07T09:22:44+01:00 Synology [Fri Feb 07 09:22:44.829287 2020] [core:alert] [pid 32462:tid 140624074274560] [client 192.168.1.50:34459] /var/services/web/nextcloud/data/.htaccess: Expected </IifModule> but saw </IfModule>
有人能指出我正确的方向吗?
答案 0 :(得分:0)
我遇到了类似的问题:
usr/local/mariadb10/bin/mysql –u myuser –p
工作正常QLSTATE[HY000] [2002] Connection refused
安装结果,我不得不在 MariaDB 10 数据包上勾选“启用 TCP/IP 连接”。我也将 127.0.0.1:3307 用于“数据库服务器”