using 'curl' inside a CHROOT

Discussion in 'Troubleshooting' started by kel, May 13, 2006.

  1. kel

    kel aMember Pro Customer

    Joined:
    May 20, 2004
    Messages:
    16
    I'm running aMember on Apache inside a CHROOT environment. Everything is working fine except for the curl dependency. All the libraries and so on that curl uses have been re-created inside the CHROOT (thanks to ldd) and should work fine. However when I try to add /usr/local/bin/curl to the configuration in aMember, I get the following error:

    Couldn't execute '/usr/local/bin/curl http://www.yahoo.com/'. Exit code: 6

    This is different from error code 127, when the file/directory doesn't exist. What exactly is exit code 6? I need to get curl working inside the CHROOT... taking the application out of a chroot isn't an option. Thanks,

    Kelly
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Of course, folder /usr/local/bin and its content is unavailable in chroot enviroment.

    It is better to just install cURL PHP extension (compile it into PHP).

Share This Page