Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2017 12:25:51 -0500
From:      "James B. Byrne" <byrnejb@harte-lyne.ca>
To:        freebsd-questions@freebsd.org
Subject:   Re: A question about php in a jail
Message-ID:  <f848175c41261664f640e220c14bc04a.squirrel@webmail.harte-lyne.ca>
In-Reply-To: <9759d7e21a401b7f89f9318c1656867e.squirrel@webmail.harte-lyne.ca>
References:  <9759d7e21a401b7f89f9318c1656867e.squirrel@webmail.harte-lyne.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, January 13, 2017 15:39, James B. Byrne 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?
>

The answer to this problem turned out to be as simple as:

# pkg install php56-openssl



-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f848175c41261664f640e220c14bc04a.squirrel>