gpt4 book ai didi

centos - 如何在 Centos 上安装 OctoberCMS?

转载 作者:行者123 更新时间:2023-12-04 19:40:18 35 4
gpt4 key购买 nike

我有一个现成的cms,是我在windows上开发的,通过OpenServer打开和 MAMP .在 Windows 上,一切都打开并且工作正常。当我将目录转移到centos(/var/www/cms)时,在Apache中设置根文件,转移mysql数据库,安装必要版本的php我开始遇到一些错误。在我看来,我可能设置了错误的配置,或者一般来说,它可能是什么?

[Wed Feb 10 09:10:24.886644 2021] [php7:error] [pid 29933] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Cms\\Classes\\Router::__construct() must be an instance of Cms\\Classes\\Theme, null given, called in /var/www/cms/modules/system/classes/ErrorHandler.php on line 62 and defined in /var/www/cms/modules/cms/classes/Router.php:67\nStack trace:\n#0 /var/www/cms/modules/system/classes/ErrorHandler.php(62): Cms\\Classes\\Router->__construct()\n#1 /var/www/cms/vendor/october/rain/src/Exception/ErrorHandler.php(56): System\\Classes\\ErrorHandler->handleCustomError()\n#2 /var/www/cms/modules/system/ServiceProvider.php(276): October\\Rain\\Exception\\ErrorHandler->handleException()\n#3 [internal function]: System\\ServiceProvider->System\\{closure}()\n#4 /var/www/cms/vendor/october/rain/src/Events/Dispatcher.php(233): call_user_func_array()\n#5 /var/www/cms/vendor/october/rain/src/Events/Dispatcher.php(197): October\\Rain\\Events\\Dispatcher->dispatch()\n#6 /var/www/cms/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): October\\Rain\\Events\\Dispatcher->fire()\n#7 /var/www/cms/vendo in /var/www/cms/modules/cms/classes/Router.php on line 67

最佳答案

问题是我忘了安装所有库,这个命令帮助了我(在 centos 7 上)yum -y install php70w php70w-mysql php70w-dom php70w-xml php70w-gd php70w-fileinfo php70w-curl php70w-mcrypt php70w-zip php70w-mbstring

关于centos - 如何在 Centos 上安装 OctoberCMS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66133369/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com