Nextcloud 安装后遇到了一次 Internal Server Error

报错

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@php.cn to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.

今天整理服务器的时候把 Nextcloud 搞坏了,出现了服务器内部错误,代码 500。花了好几个小时,最后才发现是因为 php7-APCu 这个包出了问题。

各种折腾就不说了。用 curl 检查的时候有这样的错误提示。

.........
> user-agent: curl/7.69.1
> accept: */*
> 
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
< HTTP/2 500 
< date: Sat, 18 Apr 2020 06:54:45 GMT
< server: Apache
< strict-transport-security: max-age=15768000; includeSubDomains; preload
< referrer-policy: no-referrer
< x-content-type-options: nosniff
< x-download-options: noopen
< x-frame-options: SAMEORIGIN
< x-permitted-cross-domain-policies: none
< x-robots-tag: none
< x-xss-protection: 1; mode=block
< vary: Accept-Encoding,User-Agent
< content-type: text/plain; charset=utf-8
< 
Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
.........

但是服务器的运行记录里并没有什么提示,除了也显示 500 错误之外。后来几乎是重装了,安装了 php7-APCu 这个扩展包之后就好了。后来就在 help.nextcloud.com 上发现有人遇到了一个类似的错误。

本文由 8源码吧 作者:liaolong 发表,其版权均为 8源码吧 所有,文章内容系作者个人观点,不代表 8源码吧 对观点赞同或支持。如需转载,请注明文章来源。

发表评论