在家中搭一个个人的eyoucms的测试环境,安装时,前边顺利的很,但到后边,一直报以下的这个错误,让人头疼不已。

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@example.com 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.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
百度了一下,发现大部分人把问题的原因,归结为服务器url rewrite问题,说是修改.htaccess就可以了。

具体就是把.htaccess修改为:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$ 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

但是我修改了以后,却问题依旧。

琢磨会不会是php版本的问题,根据官方的提示,php应该是支持5.4以上的所有版本啊,于是,从php7.4一直到php5.4全试了一下,还是不行。

后来怀疑是不是mysql的问题。官方说是mysql要求5.7+,我的是8.0版本。按说是在+的范围,但还是试一下得了,于是把mysql调到5.7版本,试了一下。安装正常通过。

绕了半天,竟然是mysql版本引起的问题。晕!

Logo

本社区面向用户介绍CSDN开发云部门内部产品使用和产品迭代功能,产品功能迭代和产品建议更透明和便捷

更多推荐