Koozali.org: home of the SME Server

Readignfiles in /etc from php

robboardman

Readignfiles in /etc from php
« on: March 05, 2004, 09:07:10 PM »
Hi

I trying to read a configuration file in /etc using PHP from ibay based web page, but altough I have set the file world readable the php script fails to open it. is this apache stopping me from traversing the file system?

If so how can I enable it for a particular Ibay

thanks in advance for your help

Robb

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Readignfiles in /etc from php
« Reply #1 on: March 05, 2004, 10:19:29 PM »
Hi,

You hace to change the open_basedir of php for the ibays.
Try this :
/sbin/e-smith/db accounts setprop toto PHPBaseDir /home/e-smith/files/ibays/toto/:/etc/
/sbin/e-smith/signal-event ibay-modify toto

Replace toto with the name of your ibays.

This tips was found on Grand-Pa site

Regards,