如何在 October CMS 中使用本地开发服务器
How to use local development server with October CMS
我想将本地开发服务器与 October CMS 一起使用(例如 php artisan serve
)。我用 APP_ENV=dev
创建了一个 .env
文件,否则它是按照 October 网站上的说明进行的默认安装。通过 Apache 访问该站点时可以正常工作。我没有在论坛或 SO 上找到任何关于使用开发服务器的信息。
这是我在启动开发服务器后以及第一次尝试在浏览器中访问页面时遇到的错误:
PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
PHP Fatal error: Unknown: Failed opening required '/var/www/october-cms/server.php' (include_path='.:/usr/share/php') in Unknown on line 0
PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
PHP Fatal error: Unknown: Failed opening required '/var/www/october-cms/server.php' (include_path='.:/usr/share/php') in Unknown on line 0
我刚开始使用该产品,还没有完全阅读文档。我不确定 server.php
文件是什么。
我问了this question on the October CMS forum after it went unanswered here for a few days. The problem was that I installed October via the GUI installer, instead of the command line. The missing file (server.php
) is here。
我想将本地开发服务器与 October CMS 一起使用(例如 php artisan serve
)。我用 APP_ENV=dev
创建了一个 .env
文件,否则它是按照 October 网站上的说明进行的默认安装。通过 Apache 访问该站点时可以正常工作。我没有在论坛或 SO 上找到任何关于使用开发服务器的信息。
这是我在启动开发服务器后以及第一次尝试在浏览器中访问页面时遇到的错误:
PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
PHP Fatal error: Unknown: Failed opening required '/var/www/october-cms/server.php' (include_path='.:/usr/share/php') in Unknown on line 0
PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
PHP Fatal error: Unknown: Failed opening required '/var/www/october-cms/server.php' (include_path='.:/usr/share/php') in Unknown on line 0
我刚开始使用该产品,还没有完全阅读文档。我不确定 server.php
文件是什么。
我问了this question on the October CMS forum after it went unanswered here for a few days. The problem was that I installed October via the GUI installer, instead of the command line. The missing file (server.php
) is here。