我正在尝试学习 Symfony ...开始阅读教程,似乎最好的入门方法是使用 Symfony 安装程序中的构建。所以我在我的 USB 密钥驱动器上安装了 uwamp。它似乎工作正常,因为当我导航到 localhost 时会打开测试页面。
PHP 版本设置为 7.0.3,当我打开 Windows 控制台并键入 php -v 时,选择了正确的版本,因此我设置了正确的全局路径。
我检查了所有 PHP 和 Apache 模块,并确保我拥有所有必需的东西,包括 OpenSSL 和 curl 以及所有其他推荐的东西。实际上,所有这些都已经预先配置了 uwamp 安装(谢谢)
所以当我尝试使用 Symfony 命令时,我得到的是:
[GuzzleHttp\Exception\RequestException]
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when y
ou configured PHP?
[file] phar://J:/UwAmp/www/symfony/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php
[line] 406
[message] fopen(https://get.symfony.com/symfony.version): failed to open stream: Invalid argument
[file] phar://J:/UwAmp/www/symfony/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php
[line] 406
[message] Undefined variable: http_response_header
[file] phar://J:/UwAmp/www/symfony/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php
[line] 407
我不明白……我确实设置了正确的 OpenSSL……我还需要做什么?我什至手动检查了 ini 文件并确保删除了半列。