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 如何实现H5在QQ平台上的二次分享卡片效果?
  • ¥15 python爬取bilibili校园招聘网站
  • ¥30 求解达问题(有红包)
  • ¥15 请解包一个pak文件
  • ¥15 不同系统编译兼容问题
  • ¥100 三相直流充电模块对数字电源芯片在物理上它必须具备哪些功能和性能?
  • ¥30 数字电源对DSP芯片的具体要求
  • ¥20 antv g6 折线边如何变为钝角
  • ¥30 如何在Matlab或Python中 设置饼图的高度
  • ¥15 nginx中的CORS策略应该如何配置