Results 1 to 5 of 5
Thread: Installing PHP RAR extension
-
06-26-2008, 02:40 PM #1Junior Guru Wannabe
- 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?
-
06-26-2008, 07:29 PM #2Web Hosting Guru
- 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 ?
-
06-27-2008, 02:38 AM #3Web Hosting Master
- 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
-
06-27-2008, 03:11 AM #4Always Learning...
- 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 newerVinsar.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
-
06-27-2008, 12:51 PM #5Junior Guru Wannabe
- 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.
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