dongyu3967 2012-05-09 06:39
浏览 45
已采纳

在Localhost中测试LightOpenID

I am using LightOpenID to enable Google Authentication in my PHP web application.

However when I test the same in my local server I get the following error

( ! ) Fatal error: Uncaught exception 'ErrorException' with message 'You must have either https wrappers or curl enabled.' in C:\wamp\www\speakerdb\openid.php on line 94
( ! ) ErrorException: You must have either https wrappers or curl enabled. in C:\wamp\www\speakerdb\openid.php on line 94
Call Stack
#   Time    Memory  Function    Location
1   0.0006  366848  {main}( )   ..\index.php:0
2   0.0034  648640  LightOpenID->__construct( ) ..\index.php:4

This runs fine in my remote server. I am going to use LightOpenID in each page of my application to check if user have signed in or not. I am tried giving "localhost" as domain name but get the same error.

I enabled curl un my wamp server but but pages with LightOpenID does not run when curl is enabled.

  • 写回答

1条回答 默认 最新

  • douyi8760 2012-05-09 06:50
    关注

    Enable SSL modules on both, apache and PHP configurations and check if that works:

    php.ini:

    extension=php_openssl.dll

    apache.conf:

    LoadModule ssl_module modules/mod_ssl.so

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化