Prestashop 1.7 /admin 错误 500

Prestashop 1.7 /admin error 500

我刚刚安装了 PrestaShop 1.7.2.0,当我尝试访问 /admin 时遇到错误 500。 我在 FTP 上的管理文件夹重命名为 admin[random_string](如何?为什么?)。前端似乎工作正常。

当我删除 /admin/.htaccess 我得到 404,当我把它放回去时,我得到 500。我确实改变了里面的任何东西。

可能是什么问题?

安装后,如果您没有重命名管理文件夹,PrestaShop 会为您重命名,出于安全原因。因此,在您的情况下,该文件夹已重命名为 admin[random string],如果您愿意,可以根据需要重命名它。

显然,现在要访问后台,您必须使用 'new' 路径,例如在您的情况下,http://www.myshop.com/admin[random string]/not http://www.myshop.com/admin/

如果你的服务器是运行 Windows,在admin[random_string]/.htaccess

下注释这两条规则
# If the URL is a legacy on index.php?controller=..., do not rewrite (let the legacy take it)
     RewriteCond  %{QUERY_STRING} (^|&)controller=|(^|&)tab=
     RewriteRule .* - [P]

需要在 php.ini

中将 memory_limit 增加到 512M,将 max_execution_time 增加到 300
    memory_limit=512M
    max_execution_time=300