Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好 例子跑不起来 php版本 7.2 #4

Open
lsamu opened this issue May 21, 2019 · 2 comments
Open

你好 例子跑不起来 php版本 7.2 #4

lsamu opened this issue May 21, 2019 · 2 comments

Comments

@lsamu
Copy link

lsamu commented May 21, 2019

No description provided.

@liuchaowen
Copy link

环境:
win10
wamp3.3.5(php7.4.33+apache+mysql)

部署:
composer install;
数据库初始化;
修改config文件;
public添加htaccess;
改vhost配置;

结果:
访问http://localhost/phpboot-oversea/public/books
问题:
{
"error": "Symfony\Component\HttpKernel\Exception\NotFoundHttpException",
"message": ""
}

访问http://localhost/phpboot-oversea/public/docs/swagger.json
问题:
{
"error": "Symfony\Component\HttpKernel\Exception\NotFoundHttpException",
"message": ""
}

好像不行

@leejinzhu
Copy link

我一开始遇到了和你一样的问题,你启动项目是直接php index.php,还是php -S -t? 这两个是行不通的。
你拉下来代码之后

  1. 先配置你的nginx可用站点的conf, 配置到你的目录,并开启站点代理,修改nginx用户到root或者是你当前登录用户,热加载配置或者重新拉起nginx服务
  2. 安装并启动你的php-fpm与php-cgi,安装完成检查该服务的状态,确认无误后,使用php-cgi -b {{host}}:{{port}}拉起php server服务并监听端口
    之后再发送有效请求即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants