kjanko
kjanko

Reputation: 592

Enable PHP extension

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)

Upvotes: 0

Views: 372

Answers (2)

E M H
E M H

Reputation: 1

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.

Upvotes: 0

DeDee
DeDee

Reputation: 2002

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:

if(!function_exists('dl')){
    exit("Extension loading not available for this sapi (".php_sapi_name().").\n");
}

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

Upvotes: 1

Related Questions