Koozali.org: home of the SME Server

Enabling XML parsing

Quail_Linux

Enabling XML parsing
« on: March 30, 2005, 07:03:12 AM »
Hi All,

I am having a problem with a script i am trying to get going. It is a script that reads my boinc client XML file.

and this is the errors i am getting at the moment:
Code: [Select]

Mar 30 13:57:00 hal2000 httpd: PHP Warning:  fopen(): open_basedir restriction in effect. File(/home/boinc/client_state) is not within the allowed path(s): (/home/e-smith/files/ibays/Primary) in /home/e-smith/files/ibays/Primary/html/boinc.php on line 170
Mar 30 13:57:00 hal2000 httpd: PHP Warning:  fopen(/home/boinc/client_state): failed to open stream: Operation not permitted in /home/e-smith/files/ibays/Primary/html/boinc.php on line 170


As i have not written this script, It does say "XML parsing MUST be enabled on the PHP server" and i have looked around how to do this but no luck here.

This script is available from:
http://one.zer0x.net/~rjsilvers/scripts/php/phpboinc/

Any help to get this up and running i will be very greatful for, cause it feels like i bashing my head against a brick wall at the moment.

TiA

Quail_Linux

Enabling XML parsing
« Reply #1 on: March 30, 2005, 07:08:09 AM »
Oh i forgot to add i do have these packages already installed
Code: [Select]

libxml2-2.4.19-4.i386.rpm
perl-XML-Parser-2.30-15.i386.rpm

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Enabling XML parsing
« Reply #2 on: March 30, 2005, 07:47:25 AM »
Read this thread:
http://forums.contribs.org/index.php?topic=21553.msg96929#msg96929
For more use SEARCH box.
Search for basedir, open_basedir.

Quail_Linux

Enabling XML parsing
« Reply #3 on: March 30, 2005, 08:18:05 AM »
Quote from: "PicsOne"
Read this thread:
http://forums.contribs.org/index.php?topic=21553.msg96929#msg96929
For more use SEARCH box.
Search for basedir, open_basedir.


Hi PicsOne

Thanks for that thread, this:
Code: [Select]

/sbin/e-smith/db accounts setprop <ibayname> PHPBaseDir /home/e-smith/files/ibays/<ibayname>/:/tmp
/sbin/e-smith/signal-event ibay-modify <ibayname>


fixed my problem  :-D