Koozali.org: home of the SME Server

editing php.ini

kevin888

editing php.ini
« on: September 14, 2005, 06:10:11 AM »
Hi,
   I am trying to install linpha. It ask's me to "Unset open_basedir" in php.ini.

Php.ini says not to edit it but use custom_templates.

I cannot find php.ini in that directory.

How do I change this setting and where ?

any help would be appriciated

kevin

RonM

editing php.ini
« Reply #1 on: September 14, 2005, 07:28:50 AM »
Hi Kevin888 - search is your friend ;-)

Background info:
http://php3.de/manual/en/features.safe-mode.php

From the SME FAQs (by Medimo, eekb, deunan)
* PHP Warning: (...) open_basedir restriction if installing anything PHP related in ibay

Related to open_basedir setting in php.ini file. SME does not allow PHP in /tmp or /usr/share. This is a security measure. PHP values are set per ibay in the template:

/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays

There you can set the basedir (or the includedir) for all ibays by changing the template.

These commands solves it, tmp could be another location where PHP wants to write.

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

I just ran into this issue trying to get phpwiki running in SocialMPN in an ibay. You can turn PHPBaseDir off for that ibay with the following command:

Code: [Select]

/sbin/e-smith/db accounts setprop smpn01 PHPBaseDir none
/sbin/e-smith/signal-event ibay-modify smpn01


where smpn01 is the ibay name(folder) the php is installed in.

HIH