The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP: libcurl.so.4 missing in jailshell

Discussion in 'General Discussion' started by Patiek, Oct 26, 2007.

  1. Patiek

    Patiek Active Member

    Joined:
    May 23, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    After recently upgrading PHP to 5.24 and Apache to 2.2, I am experiencing a problem when attempting to call PHP from a jailshell:
    The jailshell does not appear to include /opt/curlssl/libcurl.so.4 shared library link that PHP is compiled with ('--with-curl=/opt/curlssl/').

    Now, I believe I can fix this for the current users, but I would like to ensure that new accounts will also have access. How can I go about repairing this problem permanently (or is this a cpanel bug that needs to be looked at)?
     
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,281
    Likes Received:
    37
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    I never noticed that to be a problem - but for curiosity's sake I did this from a shell:

    /usr/local/bin/php test.php
    /usr/local/bin/php: error while loading shared libraries: libmcrypt.so.4: cannot open shared object file: No such file or directory

    /usr/bin/php test.php
    /usr/bin/php: error while loading shared libraries: libmcrypt.so.4: cannot open shared object file: No such file or directory

    My libcurl is in /usr/lib and my mcrypt is in /opt/libmcrypt/lib. So I'm guessing it doesn't see anything in /opt. I'm not sure it makes any difference - even though I get those errors, mcrypt shows up in phpinfo on my site.

    Mike
     
  3. Patiek

    Patiek Active Member

    Joined:
    May 23, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    That would quite likely be my next error that would be spit up. This seems to be an oversight by cPanel as they have definitely left out these folders from the jailshell environment.

    Bug: http://bugzilla.cpanel.net/show_bug.cgi?id=6043
     
    #3 Patiek, Oct 27, 2007
    Last edited: Oct 27, 2007
  4. bamm

    bamm Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    any solution for this?

    can you explain how you fixed it for your current accounts?

    Thanks a bunches for any advice.
     
  5. ManXP

    ManXP Well-Known Member

    Joined:
    Feb 3, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Anby update on this? Our servers have same problem too, so php scripts could not be launched from command line anymore
     
  6. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Me toooo.

    Pls anyone can help.
     
  7. Patiek

    Patiek Active Member

    Joined:
    May 23, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    cPanel really needs a fix for this as it breaks all PHP command line (that includes cron, etc) that MANY, MANY scripts rely on.

    You can fix a particular site:
    mkdir /home/virtfs/username/opt
    mount -o bind,ro /opt /home/virtfs/username/opt

    ...replacing username with site's username. Changes will revert on reboot.
     
  8. barwin

    barwin Active Member

    Joined:
    Jan 5, 2004
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Manhattan
    Bug already submitted to cPanel

    Looks like someone has indeed filed a bug with bugzilla.cpanel.net. As i write this the status is still 'NEW'

    Here's the bug URL: http://bugzilla.cpanel.net/show_bug.cgi?id=6043

    Everyone go 'vote' for the bug so they treat it with high priority!

    Cheers,
    -Ben Arwin
     
  9. ToddShipway

    ToddShipway Well-Known Member

    Joined:
    Nov 13, 2006
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    As barwin stated, if you are in need of a fix for this, please vote for the bug at http://bugzilla.cpanel.net/show_bug.cgi?id=6043

    You can also add your email to the bug in order to receive any updates to the bug if needed. Currently, there isn't much activity on the bug and the more you vote for it or show a need for this to be fixed the more attention the develoeprs will give to that particular bug.
     
  10. ToddShipway

    ToddShipway Well-Known Member

    Joined:
    Nov 13, 2006
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    No need to vote for the bug, it has been resolved in builds 18165+
     
  11. barwin

    barwin Active Member

    Joined:
    Jan 5, 2004
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Manhattan
    Well that was quick. Thanks guys :)
     
Loading...

Share This Page