httpd chroot outbound

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

httpd chroot outbound

Elias M. Mariani
Hi.
Does anybody knows what is needed to allow php to retrieve files while
under httpd chrooted ?
I recall the need of /etc/resolv.conf on the jail but that didn't work.

Cheers.
Elias.

Reply | Threaded
Open this post in threaded view
|

Re: httpd chroot outbound

Scott Vanderbilt-2
On 6/25/2018 9:37 AM, Elias M. Mariani wrote:

> Does anybody knows what is needed to allow php to retrieve files while
> under httpd chrooted ?
> I recall the need of /etc/resolv.conf on the jail but that didn't work.

See /usr/local/share/doc/pkg-readmes/php-*

Reply | Threaded
Open this post in threaded view
|

Re: httpd chroot outbound

Tom Smyth
In reply to this post by Elias M. Mariani
what are you trying to do ?
if you want to make a file visible to the webserver
just copy the file into the chrooted folder  ie from
cp /path-to-file    /var/www/path-to-file

if you want to make some files in a directory  accessible
to the web service (be careful with this (naturally) )

you can create a symlink in the manner as suggested  in the following
thread
http://openbsd-archive.7691.n7.nabble.com/httpd-chroot-security-and-user-homepage-td299565.html

I hope this helps



On 25 June 2018 at 17:37, Elias M. Mariani <[hidden email]> wrote:
> Hi.
> Does anybody knows what is needed to allow php to retrieve files while
> under httpd chrooted ?
> I recall the need of /etc/resolv.conf on the jail but that didn't work.
>
> Cheers.
> Elias.
>



--
Kindest regards,
Tom Smyth

Mobile: +353 87 6193172
The information contained in this E-mail is intended only for the
confidential use of the named recipient. If the reader of this message
is not the intended recipient or the person responsible for
delivering it to the recipient, you are hereby notified that you have
received this communication in error and that any review,
dissemination or copying of this communication is strictly prohibited.
If you have received this in error, please notify the sender
immediately by telephone at the number above and erase the message
You are requested to carry out your own virus check before
opening any attachment.

Reply | Threaded
Open this post in threaded view
|

Re: httpd chroot outbound

Scott Vanderbilt-2
In reply to this post by Elias M. Mariani
On 6/25/2018 9:37 AM, Elias M. Mariani wrote:

> Does anybody knows what is needed to allow php to retrieve files while
> under httpd chrooted ?
> I recall the need of /etc/resolv.conf on the jail but that didn't work.

Also: http://php.net/manual/en/install.unix.openbsd.php

Reply | Threaded
Open this post in threaded view
|

Re: httpd chroot outbound

Elias M. Mariani
Thanks for the help guys,
I was linking, not copying resolv.conf

Fixed.
Thanks again.

Elias.

2018-06-25 13:59 GMT-03:00 Scott Vanderbilt <[hidden email]>:
> On 6/25/2018 9:37 AM, Elias M. Mariani wrote:
>
>> Does anybody knows what is needed to allow php to retrieve files while
>> under httpd chrooted ?
>> I recall the need of /etc/resolv.conf on the jail but that didn't work.
>
>
> Also: http://php.net/manual/en/install.unix.openbsd.php