2015-08-26 23:02



I'm trying to enable a custom PHP extension (PHPShadow) but I'n having some issues.

Extension loading not available for this sapi (apache2handler).

I'm receiving this error. How do I fix it? (My OS is Debian LAMP)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答


  • dongmin1166 dongmin1166 6年前

    You must enable the dl() function, more at http://php.net/manual/en/function.dl.php

    Warning: This function was removed from most SAPIs in PHP 5.3.0

    Now, instead, INI file extension loading should be used, more at http://php.net/manual/en/ini.core.php#ini.extension

    Part of PHP Shadow code is:

        exit("Extension loading not available for this sapi (".php_sapi_name().").

    I guess you need to look for an updated PHP Shadow, if there is one.

    点赞 评论 复制链接分享
  • doufan9377 doufan9377 6年前

    Use the installer file to guide you - it's available from the PHPshadow Download page (http://phpshadow.com/download). It will explain where you need to copy the extension, and which php.ini file to edit and how.

    点赞 评论 复制链接分享