dongli2000 2019-01-04 08:45
浏览 82

如何在Ubuntu 18.04中的PHP内置服务器上运行Slim Framework应用程序?

PHP built-in server Run the following command in terminal to start localhost web server, assuming ./public/ is public-accessible directory with index.php file:

php -S localhost:8888 -t public public/index.php If you are not using index.php as your entry point then change appropriately.

This is the instructions from slimframework.com, but I couldn't assume what type of folder index.php should go in? Arguments in php command are not explained. I get blank page or Uncaught Error: Class Slim\Slim not found....

  • 写回答

1条回答 默认 最新

  • doutui6241 2019-01-04 08:51
    关注

    You can goto public folder and run command "php -S localhost:8888"

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog