Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Issue with PHP Extensions

  • 13-08-2010 03:06PM
    #1
    Closed Accounts Posts: 522 ✭✭✭


    I'm trying to use a php extension php_yaz.dll

    I've added it to the php.ini, it's in the extensions directory, the extensions directory is set correctly.

    but i keep getting the following error when i do a phpinfo();

    PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP5\ext\php_yaz.dll' - The specified module could not be found. in Unknown on line 0

    To confuse matters I'm using PHP 5.2.6 on a PLESK set up.

    any ideas how to get over this?

    thanks


Comments

  • Registered Users, Registered Users 2 Posts: 68,173 ✭✭✭✭seamus


    Windows, yes?

    Presuming that the file 'C:\PHP5\ext\php_yaz.dll' does exist, then it's most likely a permissions issue.

    If this is an IIS server, try giving the user IUSR_<HOSTNAME> read/execute access to the above file/folder, where <HOSTNAME> is the name of the server.

    Don't know much about PLESK - there might be custom users and the like set up. Basically, your server runs as a particular user. This user needs read/execute access to the extension.


  • Closed Accounts Posts: 522 ✭✭✭comer_97


    It is Windows, it is IIS. I reset the permissions and there was no change.

    It's a PECL extension, is there a special way to "install" those extensions for use?


  • Registered Users, Registered Users 2 Posts: 19,067 ✭✭✭✭murphaph


    This may sound stupid but I had a hard time enabling SSL because of a really stupid mistake I was making: PHP (at least the one I downloaded and installed) has TWO .ini files, one production and one development. Make sure you are editing the right one ;)


  • Closed Accounts Posts: 522 ✭✭✭comer_97


    i'm definitely editing the right one. I uncomment the php_yaz extension and the error appears, uncomment it and it's gone again.


  • Registered Users, Registered Users 2 Posts: 19,067 ✭✭✭✭murphaph


    Can you post your ini. file here.


  • Advertisement
  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    There are two possible causes
    1) PHP 5 includes an old version of php_yaz

    Apparently an updated version is here : http://ftp.indexdata.dk/pub/yaz/win32/

    Disclaimer : I haven't downloaded, virus-checked or verified the above link

    2) Secondly, there's a dependency on yaz.dll, which would need to be in the available path
    You must use YAZ.DLL with version 2.0.13 or later.

    The YAZ.DLL version that is shipped with
    php-5.0.5-win32.zip is version 1.9.1 and does not work.

    YAZ.DLL is part of
    http://ftp.indexdata.dk/pub/yaz/win32/
    .. when installed copy yaz.dll from yaz\bin to a location in your path
    (\winnt\system32 or similar).


  • Closed Accounts Posts: 522 ✭✭✭comer_97


    I've updated the php_yaz and the yaz.dll is installed and seems to be working,

    here is an extract from my php.ini (for security reasons)
    ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Paths and Directories ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ; UNIX: "/path1:/path2"
    ;include_path = ".:/php/includes"
    ;
    ; Windows: "\path1;\path2"
    ;include_path = ".;c:\php\includes"
    include_path = ".;c:\program files (x86)\yaz"
    
    
    extension_dir ="C:\SWSoft\Plesk\Additional\PleskPHP5\ext"
    
    extension=php_yaz.dll
    


  • Registered Users, Registered Users 2 Posts: 19,067 ✭✭✭✭murphaph


    My extension_dir has the slashes the other way round (windows):
    extension_dir = "C:/server/php/ext"
    

    Also, are you sure the .dll is actually in
    C:\SWSoft\Plesk\Additional\PleskPHP5\ext

    And I don't understand why your include path points to programmes? Mine points to PHP packages, which are (in my case) in my PEAR directory.


  • Closed Accounts Posts: 522 ✭✭✭comer_97


    I had the include going to the program files because i was clutching at straws.

    The file is definitely there and i've changed the direction of the slashes and it still doesn't work.

    It's a 64Bit server but I'm not sure that is the issue.


Advertisement