[英]installing and configuring symfony 3.2
I am trying to install Symfony 3.2 , I have tried to walk through the instructions here: 我正在尝试安装Symfony 3.2 ,我已经尝试在这里进行以下操作:
http://symfony.com/doc/current/setup.html . http://symfony.com/doc/current/setup.html 。
first when running the command: 首先在运行命令时:
php.exe symfony new SymfonyProject php.exe symfony新的SymfonyProject
I got the error: 我得到了错误:
cURL error 60: SSL certificate problem: unable to get local issuer certificate cURL错误60:SSL证书问题:无法获取本地颁发者证书
Which has a solution in here: 在这里有一个解决方案:
cURL error 60: SSL certificate: unable to get local issuer certificate cURL错误60:SSL证书:无法获取本地颁发者证书
Afterward, I have installed and created a Symfony project successfully , I got an error page while trying to access http://localhost:port/config.php of my apache server. 之后,我已经成功安装并创建了一个Symfony项目 ,尝试访问apache服务器的http:// localhost:port / config.php时出现错误页面。
so I headed to the apache configuration page: 所以我转到了apache配置页面:
http://symfony.com/doc/current/setup/web_server_configuration.html http://symfony.com/doc/current/setup/web_server_configuration.html
and changed the minimum requirement variables to meet my system (off course a restart for the apache service is required): 并更改了最低要求变量以适应我的系统 (当然,需要重新启动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>
I also changed Document root to "C:\\xampp\\htdocs\\SymfonyProject\\web" and tried also "C:\\xampp\\htdocs\\SymfonyProject" (just in case) to no avail. 我也将文档根目录更改为“ C:\\ xampp \\ htdocs \\ SymfonyProject \\ web”,还尝试了“ C:\\ xampp \\ htdocs \\ SymfonyProject”(以防万一),但无济于事。
But am still getting an error : 但是仍然出现错误 :
project_access.log and project_error.log are empty. project_access.log和project_error.log为空。
I tried another page besides http://localhost:port/config.php 我尝试了除http:// localhost:port / config.php之外的另一页
in here: http://symfony.com/doc/current/quick_tour/the_big_picture.html 在这里: http : //symfony.com/doc/current/quick_tour/the_big_picture.html
it is being suggested that going to http://localhost:port/app/example is also a valid page, but I still get an error. 有人建议转到http:// localhost:port / app / example也是有效的页面,但是仍然出现错误。
your help would be highly appreciated . 谢谢您的帮助 。
sorry, I have missed a step. 对不起,我错过了一步。
running, php bin/console server:run as described here: 正在运行,php bin /控制台服务器:按此处所述运行:
http://symfony.com/doc/current/setup.html http://symfony.com/doc/current/setup.html
allowed me accessing the config.php file. 允许我访问config.php文件。
Try this change: 尝试此更改:
...
NameVirtualHost *:80
...
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "C:\xampp\htdocs\SymfonyProject\web"
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
ErrorLog "C:\xampp\apache\logs\project_error.log"
CustomLog "C:\xampp\apache\logs\project_access.log" combined
</VirtualHost>
Make sure that NameVirtualHost
is uncommented. 确保未注释NameVirtualHost
。 Also, why are you trying to access: 另外,为什么要尝试访问:
http://localhost:port/config.php http:// localhost:port / config.php
I don't think you will be able to access the config.php file. 我认为您将无法访问config.php文件。 Try instead (for a default route): 试一试(默认路由):
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.