From owner-freebsd-questions@freebsd.org Tue Jan 17 05:35:21 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0ECCFCB3D83 for ; Tue, 17 Jan 2017 05:35:21 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-pg0-x241.google.com (mail-pg0-x241.google.com [IPv6:2607:f8b0:400e:c05::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D4AFC1A54 for ; Tue, 17 Jan 2017 05:35:20 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-pg0-x241.google.com with SMTP id 204so7047611pge.2 for ; Mon, 16 Jan 2017 21:35:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=5y5AtXFsWvoSR9l0Pv4Vjm2zkmXNyjm6OCfloKKH4ZY=; b=W3LP7+Bi74HEpQhU6iq2QAAnQUJqn4UsceKYFfGl/nV9+wvlc5oprZusV0ak/nWDYw kWe199TXeU03e1llatfC/dboopQd7V2hp5f/gll+edRCYijm/2g6xmFoP6iTzrxS/kr4 KWStLwd1s10b0G9Z8YSsTOIqyrq00U/cdYIh/T7Xt3qWYgjfVtClBVmaYNYmWoaT0kc6 KdLqGe6f1R2OXnzbomkcDtpgEiNRAub16hBO+nnRMVhT96UStrqrvAp0Z5+rmINF3J9I 5N2BtbCi93n0bhNYwFHwLV6GaY8LZPtc3HszKkFvqf/jkX4HCTsEuy23YUjP6UV1IjFO +wdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=5y5AtXFsWvoSR9l0Pv4Vjm2zkmXNyjm6OCfloKKH4ZY=; b=lcnXBeNFsomANfiuUjV8Qqv61aQj14QspJqB7A+dAqrxa3a8fHSn5UCDB1pylUZPgN Tfezu7q04pAXLlYxEF/pyTTp881MaP2m+itbP56lagqV11KaXjYdnzEjdR48yOHoCAZv Vh8JFIeWp1ObtNDB3MH8Cv8RJ1py5X8dHxyQoMk3HSHc0sqr5lHWtEjmBH6v0G0LK9g/ 3YXKw34ld++JJzrZX2MnUZElI2+hg2SxSAdZak/Zj21m52S9c7/cUJBoFkzNCSY1bKgx GdvSNDAOG6S7gmgYlqRnijdDYrUsgQaplhaJIIIB3LGKpgGUzXnTU+5lGZcnIl8AAN/P 0PfQ== X-Gm-Message-State: AIkVDXLSvl54jWgC1OkoGD5/aUYKtsge6/DNBmogJRgRF4Tmw1TAW1VgRJ0AHpFBPcaRBg== X-Received: by 10.84.143.165 with SMTP id 34mr20935002plz.2.1484631320486; Mon, 16 Jan 2017 21:35:20 -0800 (PST) Received: from [192.168.1.103] ([120.29.76.161]) by smtp.googlemail.com with ESMTPSA id c2sm51618488pfl.61.2017.01.16.21.35.18 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Jan 2017 21:35:19 -0800 (PST) Message-ID: <587DAD16.1040407@gmail.com> Date: Tue, 17 Jan 2017 13:35:18 +0800 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: byrnejb@harte-lyne.ca CC: freebsd-questions@freebsd.org Subject: Re: A question about php in a jail References: <9759d7e21a401b7f89f9318c1656867e.squirrel@webmail.harte-lyne.ca> In-Reply-To: <9759d7e21a401b7f89f9318c1656867e.squirrel@webmail.harte-lyne.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2017 05:35:21 -0000 James B. Byrne via freebsd-questions wrote: > This past week I have been setting up a jail for a drupal7 website. I > am now at the point where I need to update the modules and I would > like to employ the drush cli utility. To install this on a Drupal7 > website it is suggested to run this command in the Drupal document > root: > > > php -r > "readfile('https://s3.amazonaws.com/files.drush.org/drush.phar');" > > drush > > However, when I run this inside the jail then I see this error, > > PHP Warning: readfile(): Unable to find the wrapper "https" - did you > forget to enable it when you configured PHP? in Command line code on > line 1 > PHP Warning: > readfile(https://s3.amazonaws.com/files.drush.org/drush.phar): failed > to open stream: No such file or directory in Command line code on line > 1. > > If I run the same command on the host system of the jail then I do not > get this error. What am I missing with respect to the jailed setup? > I have no idea what Drupal is and you provided no details about how you populated the jail with it. So just a shot in the dark. Sounds like your jail does not have public internet access. Is the jails IP address being NATed by your hosts firewall? Issuing "whois 9.9.9.9" from with in your running jail should return results if the jail/host firewall is configured correctly. You really need to post details about what steps you did before more people can help you.