Symfony 演示 - 无法登录 [英] Symfony Demo - unable to sign in
问题描述
我已将 Symfony 项目(基于 symfony-demo)上传到 github,但是由于这样做,我无法以演示用户或管理员身份登录演示应用程序 - 相反,我得到以下信息:
I have upload pushed a Symfony project (based on symfony-demo) to github, however since doing so, I am unable to log in to the demo application as either the demo user or admin - instead I get the the following:
由于系统问题,无法处理身份验证请求.
Authentication request could not be processed due to a system problem.
我已经尝试了以下代码,因为页面会提示用户是否工作:
I have tried the below code as the page advises if the users are not working:
php app/console doctrine:fixtures:load
但是,当我提交此文件时,出现以下错误:
However, when I submit this I get the following error:
[DoctrineDBALExceptionDriverException]
An exception occured in driver: could not find driver
[DoctrineDBALDriverPDOException]
could not find driver
然后我尝试提交以下内容,希望它能解决学说问题:
I then tried submitting the following in the hope it would fix the doctrine issue:
composer require doctrine/doctrine-fixtures-bundle
然而,这反馈了以下内容:
However this fed back the following:
Using version ^2.2 for doctrine/doctrine-fixtures-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-pdo_sqlite * is missing from your system.
Problem 2
- sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- Installation request for sensiolabs/security-checker == 2.0.5.0 -> satisfiable by sensiolabs/security-checker[v2.0.5].
Installation failed, reverting ./composer.json to its original content.
推荐答案
在终端中输入 php -m
.你看到curl
了吗?
Type into your terminal php -m
. Do you see curl
?
如果没有,则未安装.根据您的发行版,您可能会这样做:
If not, it's not installed. Depending on your distro you might do:
RHEL/Centos:
RHEL/Centos:
yum install php5_curl
Ubuntu/Debian:
Ubuntu/Debian:
apt-get install php5_curl
如果未找到,请尝试以下方法之一:php_curl
、php-curl
、php5_curl
或 php5-curl代码>.不太常见的是
56
而不是 5
.您可以通过搜索 curl
然后查看列表来简化.
If not found, try one of the following: php_curl
, php-curl
, php5_curl
or php5-curl
. Less frequently there is 56
instead of 5
. You could simplify by searching for curl
and then looking over the list.
不确定其他发行版,但应该是类似的.
Not sure about other distros, but it should be similar.
这篇关于Symfony 演示 - 无法登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!