Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2017 13:35:18 +0800
From:      Ernie Luzar <luzar722@gmail.com>
To:        byrnejb@harte-lyne.ca
Cc:        freebsd-questions@freebsd.org
Subject:   Re: A question about php in a jail
Message-ID:  <587DAD16.1040407@gmail.com>
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
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.







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