如何在 Centos 上安装 OctoberCMS?
How to install OctoberCMS on Centos?
我有一个现成的 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
我有一个现成的 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