dtgsl60240
2015-03-24 17:18
浏览 59
已采纳

[symfony2] Wamp + sqlserver

I use symfony2 on Wamp which is connect on a SQL server DB. (yes, I cry )

When i start project with

php app/console server:run

it's all good, it's slow, but my website is ok on 127.0.0.1:8000, Doctrine2 connect to the sql-server DB without a problem.

my problem : when i go on localhost/MyProject/web/app_php.php (means that i use wamp and not 'server:run'). Symfony throw a exception : PDOException : could not find driver. I suffer for days to install those drivers on wamp/bin/php5.x.x/etc.

for more details, I install :

-basic wamp : Apache : 2.4.9 MySQL : 5.6.17 PHP : 5.5.12 PHPMyAdmin : 4.1.14 SqlBuddy : 1.3.3 XDebug : 2.2.5

-Symfony 2.6.5

-php_pdo_sqlsrv_55_ts.dll

-php_sqlsrv_55_ts.dll

-Change the php ini and add those dll to extension.

-install IIS and Microsoft ODBC Driver 11 as require microsoft here: http://www.microsoft.com/en-us/download/details.aspx?id=20098

I don't know what i miss. how can it work with server:run and not with Wamp...?

Windows will kill me soon.

图片转代码服务由CSDN问答提供 功能建议

我在Wamp上使用symfony2,它连接在SQL Server DB上。 (是的,我哭了)

当我用

  php app / console server启动项目时:运行
  <  / pre> 
 
 

一切都很好,速度很慢,但我的网站在127.0.0.1:8000上没问题,Doctrine2连接到sql-server DB没有问题。 < 我的问题:当我继续使用localhost / MyProject / web / app_php.php(意味着我使用wamp而不是'server:run')。 Symfony抛出异常:PDOException:找不到驱动程序。 我在wamp / bin / php5.xx /等上安装这些驱动程序已经好几天了。

了解更多详细信息,我安装:

-basic wamp:Apache:2.4.9 MySQL:5.6.17 PHP:5.5.12 PHPMyAdmin:4.1.14 SqlBuddy:1.3.3 XDebug:2.2.5

-Symfony 2.6.5

-php_pdo_sqlsrv_55_ts.dll

-php_sqlsrv_55_ts.dll

- 更改php ini并将这些dll添加到扩展名 。

- 在这里安装IIS和Microsoft ODBC驱动程序11作为微软: http://www.microsoft.com/en-us/download/details.aspx?id=20098

我不知道我想念的是什么 。 如何使用服务器:运行而不是使用Wamp ...?

Windows将很快杀死我。

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • duandingqi9442 2015-03-25 10:31
    已采纳

    Found it : I use 'server:run' with a 32bit wamp version while localhost was on 64bit wamp version...

    Well. Windows dll

    ->http://www.microsoft.com/en-us/download/details.aspx?id=20098

    work only for 32 BIT version or Wamp !!! Some people said on forum they managed to make it work on 64bit. I just failed and uninstall 64bit version of Wamp

    已采纳该答案
    打赏 评论

相关推荐 更多相似问题