Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: robboardman on March 05, 2004, 09:07:10 PM

Title: Readignfiles in /etc from php
Post by: robboardman 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
Title: Readignfiles in /etc from php
Post by: MasterSleepy 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 (http://www.sme-fr.homelinux.net/cmdline.php#php_basedir)

Regards,