On 2022/09/07 11:37:40 +0200, Mike Fischer <[email protected]> wrote:
> 
> > Am 07.09.2022 um 11:26 schrieb Landry Breuil <[email protected]>:
> > 
> > Le Wed, Sep 07, 2022 at 11:10:14AM +0200, Omar Polo a écrit :
> >> 
> >> I'm having an issue (that is 100% PEBCAK) with php-curl that seems to
> >> be unable to resolve hostnames, but this is not an issue with the port
> >> itself: even a simple php script like:
> >> 
> >>    $ch = curl_init("https://www.openbsd.org";);
> >>    var_dump(curl_exec($ch));
> >>    var_dump(curl_error($ch));
> >> 
> >> yields "Could not resolve host: www.openbsd.org".
> > 
> > i think you need etc/resolv.conf in the chroot, but not 100% sure.
> 
> Yes, and probably also a copy of /etc/ssl/cert.pem to be able to verify HTTPS 
> certificates.

That did the trick, thanks!  The readme for php was talking about
cert.pem, so it wasn't a big leap to think of resolv.conf too!

I've added a few feeds and can confirm that freshrss works behind
httpd(8) :)

Reply via email to