我正试图在macOS上和MAMP一起发布一个macOS发行版:
[519] : php core/scripts/drupal -vvv --verbose quick-start
Select an installation profile [Install with commonly used features pre-configured.]:
[standard ] Install with commonly used features pre-configured.
[minimal ] Build a custom site without pre-configured functionality. Suitable for advanced users.
[demo_umami] Install an example site that shows off some of Drupal’s capabilities.
> demo_umami
Creating file: sites/default/settings.php
18/18 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓]
Congratulations, you installed Drupal!
Username: admin
Password: hIuWCqqnaD-TostT
Drupal development server started:
This server is not meant for production use.
One time login url:
Press Ctrl-C to quit the Drupal development server.
Browser command: open 'http://127.0.0.1:8888/user/reset/1/1560664888/oDldybNCOH_0nRc1n4YXZWm2NwEehXnN63rWHq_Isqo/login?destination=%2F'
Server command: '/Applications/MAMP/bin/php/php7.2.1/bin/php' '-S' '127.0.0.1:8888' '.ht.router.php'不幸的是,给定的URL返回HTTP错误代码500。此外,我还添加了-vvv和--verbose,没有其他的错误消息是可见的。
当我从MAMP改为OS标准PHP安装时,浏览器显示:
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required '.ht.router.php' (include_path='.:') in Unknown on line 0实际上,在我启动快速启动命令的地方没有.ht.router.php。
有什么想法吗?
发布于 2019-06-16 07:17:01
那可是个下流的案子。我按照指示下载并解压缩了最新的Drupal版本。然后用Finder复制了一份。不幸的是,这忽略了以.开头的所有文件。
在复制了comannd行上的文件之后,所有东西都以ecpected的方式工作。感谢@leymannx把我推向正确的方向。
https://drupal.stackexchange.com/questions/282354
复制相似问题