将PrestaShop网站从一个主机移动到另一个主机后出现后端错误

问题描述 投票:-1回答:1

我正在新的托管服务提供商中移动使用http://farmtrust.tn构建的网站PrestaShop。这是新的URL http://shop.farmtruster.com。现在,当我尝试访问管理员后端时,会显示FatalErrorException

this is what I got when I try to access the website

FatalErrorException
Compile Error: Symfony\Component\Debug\DebugClassLoader::loadClass(): Failed opening required '/var/www/html/vendor/composer/../symfony/symfony/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterCsrfTokenClearingLogoutHandlerPass.php' (include_path='/var/www/html/vendor/pear/pear_exception:/var/www/html/vendor/pear/console_getopt:/var/www/html/vendor/pear/pear-core-minimal/src:/var/www/html/vendor/pear/archive_tar:.:/usr/share/php')

in DebugClassLoader.php line 156

此外,该站点无法运行http://shop.farmtruster.com,它显示未找到。

在此服务器上找不到请求的URL。

[我试图在我先安装了xampp的EC2实例中托管于AWS中,但随后突然停止运行,因此我手动安装了PHP MySQL Apache ...

该网站文件位于var/www/html文件夹中,请注意,http://shop.farmtruster.com将我重定向到http://shop.farmtruster.com/fr/,所以我得出结论说,翻译工作正常。希望您能帮到我

prestashop
1个回答
0
投票

调试步骤:

  1. 检查该.php文件是否确实存在于该位置,如果没有,请从原始Prestashop归档文件中复制该文件。

  2. 完全删除var / cache,它将被重新创建。

  3. 检查文件和目录的所有权/权限。所有者应为apache用户,目录的权限为0755,文件的权限为0644。

© www.soinside.com 2019 - 2024. All rights reserved.