-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix - Fail to serve with built-in server as instructed #430
Conversation
Error at line 25: ``` $ php -S 0.0.0.0:8080 -t public/ public/index.php ``` Error in logging output: ``` PHP 7.0.28-0ubuntu0.16.04.1 Development Server started at Mon Mar 26 09:42:37 2018 Listening on http://0.0.0.0:8080 Document root is /home/userj/My/repos/ZendFrameworkRibs/ZF3/helloworld/public Press Ctrl-C to quit. [Mon Mar 26 09:42:53 2018] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 [Mon Mar 26 09:42:53 2018] PHP Fatal error: Unknown: Failed opening required '/home/userj/My/repos/ZendFrameworkRibs/ZF3/helloworld/public/public/index.php' (include_path='.:/usr/share/php') in Unknown on line 0 ```
@peterleephp I think we should go just with |
…and format: 'php [options] -S <addr>:<port> [-t docroot] [router]'
@webimpress thanks for the reference, I have also updated the serve script in compser.json so
|
@peterleephp Believe me, we tried different version before and we have always issues with them on different systems or different PHP version, what I suggested above and linked is the latest version we agreed on, which is working on all OS and latest PHP versions as there described. |
…licit 'router' parameter for wider compatibility.
Ok, I believe you @webimpress, updated the pull request. My search does show trace of issues on this PHP command on different OS over the time: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Fix - Fail to serve with built-in server as instructed Conflicts: composer.json
Thanks, @peterleephp. Merged to develop for release with 3.1.0. |
Error at line 25:
Error in logging output: