For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2005 > RE: [PEAR] RE: WELCOME to pear-general@lists.php.net









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PEAR] RE: WELCOME to pear-general@lists.php.net
Darren Ehlers

2005-05-07, 3:56 am

Okay, now you just hit over my head. I'm not administering the server, just
using...

Can you explain, and how it would affect things?

Darren Ehlers

> -----Original Message-----
> From: Michael Rasmussen [mailto:mir@miras.org]
> Sent: Friday, May 06, 2005 7:44 PM
> To: pear-general@lists.php.net
> Subject: [PEAR] RE: WELCOME to pear-general@lists.php.net
>
>
> On Fri, 06 May 2005 16:52:48 -0500, Darren Ehlers wrote:
> Are your webserver running in a chroot environment?
> --
> Hilsen/Regards
> Michael Rasmussen
> http://keyserver.veridis.com:11371/...arch=0xE3E80917
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Michael Rasmussen

2005-05-07, 3:56 pm

On Fri, 06 May 2005 20:53:16 -0500, Darren Ehlers wrote:

> Okay, now you just hit over my head. I'm not administering the server,
> just using...
>
> Can you explain, and how it would affect things?
>

if running in chroot environment the webserver cannot access files outside
the jail. E.g on my webserver:
/usr/local/lib/php/ <- here resides Pear
/var/www <- here resides my webserver
When the webserver starts it chroot to /var/www and therefore can no
longer access files outside /var/www. To have access to the Pear libraries
you need to copy the files inside the jail:
/var/www/usr/local/lib/php.
When the webserver is running the root changes to /var/www so / actually
will be /var/www

--
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/...arch=0xE3E80917
Darren Ehlers

2005-05-07, 3:56 pm

Gotcha. I understand....

But, that's not the problem. The file is accessible when I use the full
path, it's something with the search-path that I'm working on....and I may
have found the problem, relating to the PATH_SEPARATOR.

Darren Ehlers
OpenUI Consortium
http://www.openui.org/



> -----Original Message-----
> From: Michael Rasmussen [mailto:mir@miras.org]
> Sent: Saturday, May 07, 2005 7:18 AM
> To: pear-general@lists.php.net
> Subject: RE: [PEAR] RE: WELCOME to pear-general@lists.php.net
>
>
> On Fri, 06 May 2005 20:53:16 -0500, Darren Ehlers wrote:
>
> the server,
> if running in chroot environment the webserver cannot access
> files outside
> the jail. E.g on my webserver:
> /usr/local/lib/php/ <- here resides Pear
> /var/www <- here resides my webserver
> When the webserver starts it chroot to /var/www and therefore can no
> longer access files outside /var/www. To have access to the
> Pear libraries
> you need to copy the files inside the jail:
> /var/www/usr/local/lib/php.
> When the webserver is running the root changes to /var/www so
> / actually
> will be /var/www
>
> --
> Hilsen/Regards
> Michael Rasmussen
> http://keyserver.veridis.com:11371/...arch=0xE3E80917
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com