Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2006
    Posts
    77

    Installing PHP RAR extension

    Hi,

    I wanted to install PHP RAR extension:

    http://pecl.php.net/package/rar

    to compress & decompress rar files. I installed it on the server & added the extension=rar.so to php.ini files.

    But still, when I run a rar function like rar_open(), I get an error :

    Fatal error: Call to undefined function rar_open()

    I tried installing the extension again through SSH, but it says "Nothing to Install". What am I doing wrong?

  2. #2
    Join Date
    May 2008
    Posts
    340
    Did you restart Apache daemon in the server after adding the module entry in php.ini ?

    If yes, then does phpinfo() show/list the rar module ?

  3. #3
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,771
    What does this result?

    php -i | grep rar

    Try installing a different version of rar.
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  4. #4
    Join Date
    Aug 2002
    Location
    Bharat
    Posts
    4,808
    Do you have all the requirements met as stated there:
    PHP Version: PHP 4.0.0 or newer
    PEAR Package: PEAR Installer 1.4.0b1 or newer
    Vinsar.Net - Quality Web Hosting at Economical Price on USA & European Servers
    Offering domains, shared, reseller & VPS hosting.
    Reliable Domain Reseller Account Resell Domains with Confidence

  5. #5
    Join Date
    Mar 2006
    Posts
    77
    Thanks for the replies.

    @eth1: I did. It doesn't show up on phpinfo though!

    @vinsar: I guess the requirements are met.

    Quote Originally Posted by david510 View Post
    What does this result?

    php -i | grep rar

    Try installing a different version of rar.
    I get this;

    PHP Warning: PHP Startup: Unable to load dynamic library './rar.so' - ./rar.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library './rar.so' - ./rar.so: cannot open shared object file: No such file or directory in Unknown on line 0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •