1. cmd进入DOS , cd 到 php.exe 的目录下

2. php -r "readfile('http://symfony.com/installer');" > symfony

3. 把symfony移动到projects(你自己的工作目录) move symfony c:\projects

4. c:\> cd projects/

c:\projects\> php symfony new my_project_name

5. php D:\amp\test\my_project_name\bin\console server:run

如果正常就开始创建,

一般会有这个错误:

[GuzzleHttp\Exception\RequestException]
cURL error 60: SSL certificate problem: unable to get local issuer certificate

[GuzzleHttp\Ring\Exception\RingException]
cURL error 60: SSL certificate problem: unable to get local issuer certificate

解决方案:

1.下载 cacert.pem :https://curl.haxx.se/ca/cacert.pem

2.在php.ini里面加上这个:

curl.cainfo = "[pathtothisfile]\cacert.pem" 如:curl.cainfo = "D:\phpStudy\php55n\cacert.pem"

3.重新symfony的步骤再走一遍

以上就是symfony window下安装时候出现问题的解决方法 的详细内容,更多请关注Work网其它相关文章!

09-12 02:10