Parallels H-Sphere Forum
> Parallels H-Sphere > Troubleshooting  
Weirdness in php error logs  
  

Weirdness in php error logs

03-28-09, 15:38
#1  

stinkfoot
Registered User


Join: Feb 2003
Posts: 91
Weirdness in php error logs
I'm getting this in the php error logs
PHP Warning: PHP Startup: Unable to load dynamic library '/hsphere/shared/apache/libexec/php5ext/curl.so' - libcurl.so.4: cannot open shared object file: No such file or directory in Unknown on line 0


The curl.so file is there.. Any help with this is appreciated..
03-28-09, 15:48
#2  
yurtesen's Avatar

yurtesen
Registered User


Join: Nov 2004
Posts: 8,097
Try to see if you have .custom files for php.ini, you might have some wrong information laying around perhaps.

__________________
FinWiz --- The Professional H-Sphere Support Company
Evren Yurtesen --- Unix System Administrator
Contact Info: support [ a t ] finwiz.net / +358-40-5073940
05-29-09, 14:51
#3  

vibe
Registered User


Join: Jul 2002
Posts: 245
I am having a similar problem. I see the following in the error logs:

Code:
PHP Warning:  Unknown(): Unable to load dynamic library '/hsphere/shared/php4/lib/php/extensions/no-debug-non-zts-20020429/curl.so' - libcurl.so.4: cannot open shared object file: No such file or directory in Unknown on line 0
curl does not show in the phpinfo() output as being loaded. This happened after upgrading to 3.3. Any ideas?

This is causing all e-commerce sites that use curl to fail.

Thank you.

__________________
-- Pablo
05-29-09, 15:51
#4  

vibe
Registered User


Join: Jul 2002
Posts: 245
I am seeing this over and over again in the apache error_log:

PHP Warning: Unknown(): Unable to load dynamic library '/hsphere/shared/php4/lib/php/extensions/no-debug-non-zts-20020429/curl.so' - libcurl.so.4: cannot open shared object file: No such file or directory in Unknown on line 0

I cannot figure out what the problem is. I check the file path, and the curl.so file is exactly where it's supposed to be. Please help!

__________________
-- Pablo
06-03-09, 14:41
#5  

stinkfoot
Registered User


Join: Feb 2003
Posts: 91
Anyone solve this..

Same thing after upgrade to 3.3
06-03-09, 23:20
#6  

ladylinux
Registered User


Join: Jul 2003
Posts: 9,788
Hi,

I had reported something like this a while ago. This is not a sure fix but try it anyhow if you want.


"LINUX ONLY"

Quote:
cp /hsphere/shared/lib/libcurl.so.4 /hsphere/shared/lib/libcurl.so.4.bck
rm -f /hsphere/shared/lib/libcurl.so.4
ln -s /hsphere/shared/lib/libcurl.so /hsphere/shared/lib/libcurl.so.4
ldconfig /hsphere/shared/lib
service httpd restart
Brutal but it works.

Francesca

__________________
"No Problems Only Solutions"
We Provide Server Management, Security Hardening And Patch Management.
Also Dedicated Servers, Colocation, VPS Servers And Hsphere Licenses.
06-04-09, 16:16
#7  

stinkfoot
Registered User


Join: Feb 2003
Posts: 91
cp /hsphere/shared/lib/libcurl.so.4 /hsphere/shared/lib/libcurl.so.4.bck
cp: cannot stat `/hsphere/shared/lib/libcurl.so.4': No such file or directory


It doesnt exist
06-04-09, 16:19
#8  
yurtesen's Avatar

yurtesen
Registered User


Join: Nov 2004
Posts: 8,097
Thats the problem probably, continue with the last 3 lines of the instructions that Francesca gave.

__________________
FinWiz --- The Professional H-Sphere Support Company
Evren Yurtesen --- Unix System Administrator
Contact Info: support [ a t ] finwiz.net / +358-40-5073940
06-04-09, 16:23
#9  

ladylinux
Registered User


Join: Jul 2003
Posts: 9,788
Hi,

As Evren said is correct. I just put that line in there to backup the original just in case.

Francesca

PS: If this fixes the issue you will be the second person that has seen this. I will input a bug report if so.

__________________
"No Problems Only Solutions"
We Provide Server Management, Security Hardening And Patch Management.
Also Dedicated Servers, Colocation, VPS Servers And Hsphere Licenses.
06-04-09, 16:23
#10  

stinkfoot
Registered User


Join: Feb 2003
Posts: 91
it exists in

/hsphere/shared/lib/php4addlibs/libcurl.so.4
/hsphere/shared/lib/php4addlibs/libcurl.so.4.1.1
/hsphere/shared/lib/php5addlibs/libcurl.so.4
/hsphere/shared/lib/php5addlibs/libcurl.so.4.1.1
06-04-09, 16:32
#11  

stinkfoot
Registered User


Join: Feb 2003
Posts: 91
Thanks guys..

Look like that was the solution..
12-07-09, 13:11
#12  

davide
Registered User


Join: Dec 2003
Posts: 527
I have not well understood what is the right thing to do:

I do:

Quote:
# cp /hsphere/shared/lib/php5addlibs/libcurl.so /hsphere/shared/lib/libcurl.so (I overwrite the old one)
# ln -s /hsphere/shared/lib/libcurl.so /hsphere/shared/lib/libcurl.so.4
# ldconfig /hsphere/shared/lib
# service httpd restart
And this resolve the problem for one of my server.

My question is:

/hsphere/shared/lib/php5addlibs contains:

Quote:
libaspell.so
libaspell.so.15
libaspell.so.15.1.4
libcurl.so
libcurl.so.4
libcurl.so.4.1.1
libpspell.so
libpspell.so.15
libpspell.so.15.1.4
I had to copy also libaspell.so and libpspell.so in /hsphere/shared/lib? Why hsphere installation program (3.3p1) don't copy this libraires itself? Maybe we have to point in some (??) configuration file to /hsphere/shared/lib/php5addlibs to definitively resolve the question? (I have 8 linux servers and I wish to resolve the problem for all the servers a time for all :-))

Any conseil will be appreciated.

__________________
Davide.


Thread tools Rating Display modes
Excellent
Good
Average
Bad
Terrible
Linear Mode


Parallels is a worldwide leader in virtualization and automation software that optimizes computing for consumers, businesses, and service providers across all major hardware, operating system, and virtualization platforms. Founded in 1999, Parallels is a fast-growing company with 900 employees in North America, Europe, and Asia.