CURL in PHP chroot'ed environment

view full story

http://serverfault.com – How can I find out what files are needed by Curl when running in a chroot'ed PHP environment on Mac OSX? I recently secured my website by chrooting PHP but now every call to Amazon S3 through it's API is failing, with the error message: Resource id #43; cURL error: Couldn't resolve host 's3.amazonaws.com' The same code works fine when called from a non-chroot`ed command line so presumably it's some set of files that need to be opened by CURL that are failing to be opened. How do I figure out which files it's trying to open to be able to map them into the chroot'ed directoy? (HowTos)