【发布时间】:2017-01-07 20:08:03
【问题描述】:
我正在尝试安装 Symfony 3.2,我已尝试按照此处的说明进行操作:
http://symfony.com/doc/current/setup.html.
首先在运行命令时:
php.exe symfony new SymfonyProject
我得到了错误:
cURL 错误 60:SSL 证书问题:无法获取本地颁发者证书
这里有一个解决方案:
cURL error 60: SSL certificate: unable to get local issuer certificate
之后,我已经成功安装并创建了一个 Symfony 项目,尝试访问我的 apache 服务器的 http://localhost:port/config.php 时出现错误页面。
所以我前往 apache 配置页面:
http://symfony.com/doc/current/setup/web_server_configuration.html
并且更改了最低要求变量以满足我的系统(当然需要重新启动 apache 服务):
<VirtualHost *:port>
ServerName localhost
ServerAlias localhost
DocumentRoot "C:\xampp\htdocs\SymfonyProject\web"
<Directory "C:\xampp\htdocs\SymfonyProject\web">
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
ErrorLog "C:\xampp\apache\logs\project_error.log"
CustomLog "C:\xampp\apache\logs\project_access.log" combined
</VirtualHost>
我还将文档根目录更改为“C:\xampp\htdocs\SymfonyProject\web”并尝试了“C:\xampp\htdocs\SymfonyProject”(以防万一),但无济于事。
但我仍然收到错误:
project_access.log 和 project_error.log 为空。
我尝试了除http://localhost:port/config.php之外的另一个页面
在这里:http://symfony.com/doc/current/quick_tour/the_big_picture.html
有人建议去http://localhost:port/app/example也是一个有效的页面,但我仍然得到一个错误。
非常感谢您的帮助。
【问题讨论】:
-
在
-
是的,我使用的是实际端口,但根据我在运行时的回答: php bin/console server:run 在任何情况下它默认为 8000(而不是我的端口)谢谢你的建议.
标签: php apache symfony apache-config