Closed (fixed)
Project:
CDN2 Video
Version:
6.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2009 at 21:03 UTC
Updated:
6 Apr 2009 at 00:17 UTC
Hi,
I installed pear an the package crypt/HMAC. Now I get this error:
warning: include_once(Crypt/HMAC.php) [function.include-once]: failed to open stream: No such file or directory in /is/htdocs/xxxxxxxx/www/cms/acquia/sites/all/modules/cdn2/cdn2.module on line 943.
warning: include_once() [function.include]: Failed opening 'Crypt/HMAC.php' for inclusion (include_path='.:/usr/share/pear/php5') in /is/htdocs/xxxxxxxxxx/www/cms/acquia/sites/all/modules/cdn2/cdn2.module on line 943.
PEAR Package Crypt_HMAC is not installed.
Where did the module grap this path? Have I to change something in the pear config?
Thanks for your advice.. Can someone help me?
Cheers Apfel007
Comments
Comment #1
Coyote commentedFirst, I would ssh in and double-check that your pear installation actually contains the crypt/HMAC files or that pear is actually installed in your include path at /usr/share/pear/php5.
You should be able to log in and type:
locate pear/Crypt/HMAC.phpIf your pear files are installed, but your php.ini file is looking in the wrong place for them, you'll have to find and edit your php.ini file, to add the actual pear paths to the include_path directive (remember to seperate possible paths with a colon).
If that's not the problem, you might try checking the pear config, to see if _it_ knows where your php.ini file is.
you can check pear's config file by typing:
pear config-showCheck the "php.ini location" setting. If it's blank, or doesn't point to your php.ini file, you may have to fix it, which you can do by typing:
pear pear-config php_ini path/to/php.ini(Where path/to/php.ini, obviously is the correct location of that file.)
What a pain, huh? Normally pear installs are pretty painless, but I had to go through all the above to get it working on my home system.
Comment #2
kylebrowning commentedTwo weeks of no activity.
Comment #3
shaundychkoHello, I'm getting the same error message described above, and I tried the advice in the posting, but with no luck. I'm using shared hosting with hostmonster.com if that makes a difference (I don't have permissions to use SSH commands like "locate" and the "pear pear-config..." command seemed to execute fine, but the changes didn't stick since "pear config-show" still returns
php.ini location php_ini /usr/local/lib/php.ini)
Is there any way to get this working on shared hosting? I have installed the Crypt_HMAC using the cPanel.
Thanks for your help, anyone with expert knowledge.
Comment #4
Apfel007 commentedHi,
I solve it like that...
1. Check the pear in php.info
2. Install the pear package www.pear.com?? -
3. include pear in the settings.php -> ini_set('include_path',ini_get('include_path').':/is/htdocs/xxxxxx/www/_pear/PEAR');
That work for me.
Cheers
Comment #5
shaundychkoI had to update the include_path in php.ini (and also configure php through cPanel to use the "single php.ini" option). I'm now on to the next error message that I'll write a separate post about.