Open zhchaoxing opened 4 years ago
NextCloud不能运行,PHP版本太高
首次安装ONMP环境和NextCloud,待log说安装完毕后打开NC页面报错: This version of Nextcloud is not compatible with > PHP 7.2. You are currently running 7.4.1.
3.4.3.9-099_20-04-1 Newifi 3D2 512M 当前 opt 文件:【2020-4-3】,最新 opt 文件:【2020-4-3】 当前 script 文件:【2020-04-04】,最新 script 文件:【2020-04-04】 脚本自动下载了这个NC:https://download.nextcloud.com/server/releases/nextcloud-13.0.6.zip
Apr 21 18:39:17 【WebUI】: UI 开关遍历状态监测 Apr 21 18:39:22 【opt】: opt 挂载正常:/dev/sda1 Apr 21 18:39:28 [mysqld]: stop Apr 21 18:39:33 [php7-fpm]: stop Apr 21 18:39:33 [nginx]: stop Apr 21 18:39:33 [redis]: stop Apr 21 18:39:34 【LNMP】: /opt 剩余可用数据空间[M] 11986/14551 Apr 21 18:39:34 【LNMP】: /opt 剩余可用节点空间[Inodes] 939995/946560 Apr 21 18:39:34 【LNMP】: /opt 已用数据空间[M] 13%/100% Apr 21 18:39:34 【LNMP】: /opt 已用节点空间[Inodes] 1%/100% Apr 21 18:39:34 【LNMP】: 以上两个数据如出现占用100%时,则 opt 数据空间 或 Inodes节点 爆满,会影响 LNMP 运行,请重新正确格式化 U盘。 Apr 21 18:39:38 【LNMP】: 初始化onmp 环境,需时3分钟左右 Apr 21 18:39:41 [nginx]: stop Apr 21 18:39:41 [mysqld]: stop Apr 21 18:39:42 [mysqld]: stop Apr 21 18:39:42 [php7-fpm]: stop Apr 21 18:39:42 [nginx]: stop Apr 21 18:39:42 [redis]: stop Apr 21 18:39:43 【LNMP】: /opt 剩余可用数据空间[M] 11986/14551 Apr 21 18:39:43 【LNMP】: /opt 剩余可用节点空间[Inodes] 939990/946560 Apr 21 18:39:43 【LNMP】: /opt 已用数据空间[M] 13%/100% Apr 21 18:39:43 【LNMP】: /opt 已用节点空间[Inodes] 1%/100% Apr 21 18:39:43 【LNMP】: 以上两个数据如出现占用100%时,则 opt 数据空间 或 Inodes节点 爆满,会影响 LNMP 运行,请重新正确格式化 U盘。 Apr 21 18:39:43 【LNMP】: 重置 /opt/mysql 数据,需时2分钟左右 Apr 21 18:39:43 【LNMP】: 重置 mysql 默认账号:root, 默认密码:123456, 请手动修改密码 Apr 21 18:39:43 【ss_tproxy】: 检测2:找不到 SSTP 转发规则, 重新添加 Apr 21 18:39:43 [mysqld]: stop Apr 21 18:39:44 【sh_ss_tproxy.sh】: start_iptables Apr 21 18:40:01 【lnmp】: Could not find plugin directory. Apr 21 18:40:01 【lnmp】: Will continue with "/opt/lib/mariadb/plugin". Apr 21 18:40:01 【lnmp】: Installing MariaDB/MySQL system tables in /opt/var/mysql/ ... Apr 21 18:41:21 【lnmp】: OK Apr 21 18:41:21 【lnmp】: Apr 21 18:41:21 【lnmp】: To start mysqld at boot time you have to copy Apr 21 18:41:21 【lnmp】: support-files/mysql.server to the right place for your system Apr 21 18:41:21 【lnmp】: Apr 21 18:41:21 【lnmp】: Two all-privilege accounts were created. Apr 21 18:41:21 【lnmp】: One is root@localhost, it has no password, but you need to Apr 21 18:41:21 【lnmp】: be system root user to connect. Use, for example, sudo mysql Apr 21 18:41:21 【lnmp】: The second is admin@localhost, it has no password either, but Apr 21 18:41:21 【lnmp】: you need to be the system admin user to connect. Apr 21 18:41:21 【lnmp】: After connecting you can set the password, if you would need to be Apr 21 18:41:21 【lnmp】: able to connect as any of these users with a password and without sudo Apr 21 18:41:21 【lnmp】: Apr 21 18:41:21 【lnmp】: See the MariaDB Knowledgebase at http://mariadb.com/kb or the Apr 21 18:41:21 【lnmp】: MySQL manual for more instructions. Apr 21 18:41:21 【lnmp】: Apr 21 18:41:21 【lnmp】: You can start the MariaDB daemon with: Apr 21 18:41:21 【lnmp】: cd /opt ; /opt/bin/mysqld_safe --datadir=/opt/var/mysql/ Apr 21 18:41:21 【lnmp】: Apr 21 18:41:21 【lnmp】: You can test the MariaDB daemon with mysql-test-run.pl Apr 21 18:41:21 【lnmp】: cd /opt/mysql-test ; perl mysql-test-run.pl Apr 21 18:41:21 【lnmp】: Apr 21 18:41:21 【lnmp】: Please report any problems at http://mariadb.org/jira Apr 21 18:41:21 【lnmp】: Apr 21 18:41:21 【lnmp】: The latest information about MariaDB is available at http://mariadb.org/. Apr 21 18:41:21 【lnmp】: You can find additional information about the MySQL part at: Apr 21 18:41:21 【lnmp】: http://dev.mysql.com Apr 21 18:41:22 【lnmp】: https://mariadb.org/get-involved/ Apr 21 18:41:22 【lnmp】: Apr 21 18:41:22 【lnmp】: 正在初始化数据库,请稍等2分钟 Apr 21 18:41:52 [mysqld]: start Apr 21 18:43:02 【lnmp】: ^Gmysqladmin: connect to server at localhost failed Apr 21 18:43:02 【lnmp】: error: Access denied for user root@localhost Apr 21 18:43:02 【lnmp】: ^[[41;37m 数据库用户:root, 初始密码:123456 ^[[0m Apr 21 18:43:02 【lnmp】: ^[[41;37m 数据库用户:admin, 初始密码:123456 ^[[0m Apr 21 18:43:02 【ONMP】: 正在重启 Apr 21 18:43:02 【lnmp】: onmp正在重启 Apr 21 18:43:02 [mysqld]: stop Apr 21 18:43:02 [php7-fpm]: stop Apr 21 18:43:02 [nginx]: stop Apr 21 18:43:11 [mysqld]: start Apr 21 18:43:12 [php7-fpm]: start Apr 21 18:43:12 admin: Started php-fpm from . Apr 21 18:43:12 [nginx]: start Apr 21 18:43:15 【lnmp】: nginx 启动成功 Apr 21 18:43:15 【lnmp】: php-fpm 启动成功 Apr 21 18:43:15 【ONMP】: 已启动 Apr 21 18:43:15 【lnmp】: mysqld 启动成功 Apr 21 18:43:15 【ONMP】: 网站列表: Apr 21 18:43:15 【lnmp】: onmp已启动 Apr 21 18:43:15 【lnmp】: 网站列表: Apr 21 18:43:15 【ONMP】: 192.168.31.1: Apr 21 18:43:15 【lnmp】: 192.168.31.1: Apr 21 18:43:15 【lnmp】: 浏览器地址栏输入:192.168.31.1:81 查看php探针 Apr 21 18:43:16 [mysqld]: stop Apr 21 18:43:20 【LNMP】: 运行 nginx+php+mysql 环境 Apr 21 18:43:20 【lnmp】: ^[[H^[[J---------------------------------------- Apr 21 18:43:20 【lnmp】: |*********** WEB程序安装器 ***********| Apr 21 18:43:20 【lnmp】: ---------------------------------------- Apr 21 18:43:20 【lnmp】: 安装 Nextcloud: Apr 21 18:43:22 【lnmp】: 开始安装... Apr 21 18:43:22 【lnmp】: Will not apply HSTS. The HSTS database must be a regular and non-world-writable file. Apr 21 18:43:22 【lnmp】: ERROR: could not open HSTS store at /home/root/.wget-hsts. HSTS will be disabled. Apr 21 18:43:22 【lnmp】: --2020-04-21 18:43:22-- https://download.nextcloud.com/server/releases/nextcloud-13.0.6.zip Apr 21 18:43:22 【lnmp】: Resolving download.nextcloud.com... 95.217.64.181, 2a01:4f9:2a:3119::181 Apr 21 18:43:23 【lnmp】: Connecting to download.nextcloud.com|95.217.64.181|:443... connected. Apr 21 18:43:23 【lnmp】: HTTP request sent, awaiting response... 200 OK Apr 21 18:43:23 【lnmp】: Length: 61312765 (58M) [application/zip] Apr 21 18:43:24 【lnmp】: Saving to: /opt/tmp/Nextcloud.zip Apr 21 18:43:24 【lnmp】: Apr 21 18:43:24 【lnmp】: 0K .......... .......... .......... .......... .......... 0% 91.4K 10m55s ...... Apr 21 18:47:15 【lnmp】: 2020-04-21 18:47:15 (259 KB/s) - /opt/tmp/Nextcloud.zip saved [61312765/61312765] Apr 21 18:47:15 【lnmp】: Apr 21 18:47:15 【lnmp】: 正在解压... Apr 21 18:49:01 script_check: 检测到进程 PID【 8316】使用CPU 24% 进入防卡CPU检测序列 unzip /opt/wwwroot/Nextcloud.zip - Apr 21 18:50:12 【lnmp】: 解压完成... Apr 21 18:50:12 【lnmp】: 正在配置Nextcloud... Apr 21 18:50:15 【lnmp】: Nextcloud安装完成 Apr 21 18:50:15 【lnmp】: 浏览器地址栏输入:192.168.31.1:99 即可访问 Apr 21 18:50:15 【lnmp】: 首次打开会要配置用户和数据库信息 Apr 21 18:50:15 【lnmp】: 数据库地址默认 localhost 用户、密码默认是root 123456 或者 admin 123456 或者 你自己设置的 Apr 21 18:50:15 【lnmp】: 需要先在 web 界面配置完成后,才能使用 onmp open 的第 10 个选项开启 Redis Apr 21 18:50:15 [mysqld]: stop Apr 21 18:50:15 [php7-fpm]: stop Apr 21 18:50:18 [nginx]: stop Apr 21 18:50:21 [redis]: stop Apr 21 18:50:21 [mysqld]: start Apr 21 18:50:21 【lnmp】: mysqld is already running Apr 21 18:50:21 [php7-fpm]: start Apr 21 18:50:21 admin: Started php-fpm from . Apr 21 18:50:21 【lnmp】: ^[[1;37m Starting php-fpm... ^[[m ^[[1;32m done. ^[[m Apr 21 18:50:21 [nginx]: start Apr 21 18:50:24 【lnmp】: Nginx started. Apr 21 18:50:24 [redis]: start Apr 21 18:50:24 [redis]: stop Apr 21 18:50:24 【lnmp】: ^[[1;37m Checking redis-server... ^[[1;31m dead. ^[[m Apr 21 18:50:24 【LNMP】: /opt 剩余可用数据空间[M] 11618/14551 Apr 21 18:50:24 【LNMP】: /opt 剩余可用节点空间[Inodes] 924461/946560 Apr 21 18:50:24 【LNMP】: /opt 已用数据空间[M] 16%/100% Apr 21 18:50:24 【LNMP】: /opt 已用节点空间[Inodes] 2%/100% Apr 21 18:50:24 【LNMP】: 以上两个数据如出现占用100%时,则 opt 数据空间 或 Inodes节点 爆满,会影响 LNMP 运行,请重新正确格式化 U盘。 Apr 21 18:50:29 【LNMP】: mysqld启动失败, 注意检查端口是否有冲突,程序是否下载完整,10 秒后自动尝试重新启动 Apr 21 18:50:43 [mysqld]: stop Apr 21 18:50:43 [php7-fpm]: stop Apr 21 18:50:43 crond[9821]: crond (busybox 1.29.3) started, log level 8 Apr 21 18:50:44 [nginx]: stop Apr 21 18:50:49 [redis]: stop Apr 21 18:51:22 【LNMP】: /opt 剩余可用数据空间[M] 11623/14551 Apr 21 18:51:22 【LNMP】: /opt 剩余可用节点空间[Inodes] 924463/946560 Apr 21 18:51:22 【LNMP】: /opt 已用数据空间[M] 16%/100% Apr 21 18:51:22 【LNMP】: /opt 已用节点空间[Inodes] 2%/100% Apr 21 18:51:22 【LNMP】: 以上两个数据如出现占用100%时,则 opt 数据空间 或 Inodes节点 爆满,会影响 LNMP 运行,请重新正确格式化 U盘。 Apr 21 18:51:24 【LNMP】: 运行 nginx+php+mysql 环境 Apr 21 18:51:24 【lnmp】: ^[[H^[[J---------------------------------------- Apr 21 18:51:24 【lnmp】: |*********** WEB程序安装器 ***********| Apr 21 18:51:24 【lnmp】: ---------------------------------------- Apr 21 18:51:24 【lnmp】: 安装 Nextcloud: Apr 21 18:51:24 【lnmp】: 未删除 Apr 21 18:51:24 【lnmp】: 正在配置Nextcloud... Apr 21 18:51:28 【lnmp】: Nextcloud安装完成 Apr 21 18:51:28 【lnmp】: 浏览器地址栏输入:192.168.31.1:99 即可访问 Apr 21 18:51:28 【lnmp】: 首次打开会要配置用户和数据库信息 Apr 21 18:51:28 【lnmp】: 数据库地址默认 localhost 用户、密码默认是root 123456 或者 admin 123456 或者 你自己设置的 Apr 21 18:51:28 【lnmp】: 需要先在 web 界面配置完成后,才能使用 onmp open 的第 10 个选项开启 Redis Apr 21 18:51:28 [mysqld]: stop Apr 21 18:51:28 [php7-fpm]: stop Apr 21 18:51:28 [nginx]: stop Apr 21 18:51:28 [redis]: stop Apr 21 18:51:28 [mysqld]: start Apr 21 18:51:28 [php7-fpm]: start Apr 21 18:51:28 admin: Started php-fpm from . Apr 21 18:51:28 【lnmp】: ^[[1;37m Starting php-fpm... ^[[m ^[[1;32m done. ^[[m Apr 21 18:51:28 [nginx]: start Apr 21 18:51:28 【lnmp】: Nginx started. Apr 21 18:51:28 [redis]: start Apr 21 18:51:28 [redis]: stop Apr 21 18:51:28 【lnmp】: ^[[1;37m Checking redis-server... ^[[1;31m dead. ^[[m Apr 21 18:51:29 【LNMP】: /opt 剩余可用数据空间[M] 11623/14551 Apr 21 18:51:29 【LNMP】: /opt 剩余可用节点空间[Inodes] 924458/946560 Apr 21 18:51:29 【LNMP】: /opt 已用数据空间[M] 16%/100% Apr 21 18:51:29 【LNMP】: /opt 已用节点空间[Inodes] 2%/100% Apr 21 18:51:29 【LNMP】: 以上两个数据如出现占用100%时,则 opt 数据空间 或 Inodes节点 爆满,会影响 LNMP 运行,请重新正确格式化 U盘。 Apr 21 18:51:34 【LNMP】: nginx启动成功 Apr 21 18:51:34 【LNMP】: mysqld启动成功 Apr 21 18:51:34 【nextcloud】: 允许远程访问, 允许 99 端口通过防火墙 Apr 21 18:51:35 【LNMP】: 守护进程启动
19.0.13 可以在php7.4的环境上使用,但此版本对内存要求比较高,需要开启缓存。
NextCloud不能运行,PHP版本太高
首次安装ONMP环境和NextCloud,待log说安装完毕后打开NC页面报错: This version of Nextcloud is not compatible with > PHP 7.2. You are currently running 7.4.1.
3.4.3.9-099_20-04-1 Newifi 3D2 512M 当前 opt 文件:【2020-4-3】,最新 opt 文件:【2020-4-3】 当前 script 文件:【2020-04-04】,最新 script 文件:【2020-04-04】 脚本自动下载了这个NC:https://download.nextcloud.com/server/releases/nextcloud-13.0.6.zip