Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Bernt on October 14, 2003, 04:35:57 PM

Title: open_basedir restriction in effect
Post by: Bernt on October 14, 2003, 04:35:57 PM
Hi!

Did a fresh install of SME server 5.6 and latest version of Netjuke. In Server-Manager/View Logfiles/Messengers I have a lot of "open_basedir restriction in effect".
In the FAQ I found a command that should resolve this but i didn't.

/sbin/e-smith/db accounts setprop your_i-bay_name PHPBaseDir /    
/sbin/e-smith/signal-event ibay-modify your_i-bay_name

I haven't applyed any updates yet.

PHP version 4.1.2
Title: Re: open_basedir restriction in effect
Post by: Dan Brown on October 14, 2003, 05:55:42 PM
Well, you should apply the updates, but I don't think that's your problem.  You also need to expand-template httpd.conf and restart apache.

BTW, you'd be better to do it this way:

/sbin/e-smith/db accounts setprop your_i-bay_name PHPBaseDir none
Title: Re: open_basedir restriction in effect
Post by: Bernt on October 14, 2003, 11:27:11 PM
No luck so far. I run the command

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

and restarted the server. How do I expand-template httpd.conf?
Title: Re: open_basedir restriction in effect
Post by: Dan Brown on October 14, 2003, 11:43:23 PM
Well, the ibay-modify event may do the trick, but you'd do

/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
Title: Re: open_basedir restriction in effect
Post by: Bernt on October 15, 2003, 12:33:37 AM
I did /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
and restarted the server. Still no luck.
Title: Re: open_basedir restriction in effect
Post by: Jens Kruuse on October 15, 2003, 01:24:53 AM
Just covering all bases, but you did change "your_i-bay_name" to the actual i-bay name when you issued the command, Bernt?

Also, to check to see if your command actually updated the i-bay try issuing this command:

cat /home/e-smith/accounts |grep ibay

You will get a listing (singleline, wrapped) of the various ibay properties. Look for "PHPBaseDir" (between "Name" and "PasswordSet")and check the value following the next "|". It should be "/" if you have changed it correctly.

/Jens
Title: Re: open_basedir restriction in effect
Post by: Bernt on October 15, 2003, 09:26:02 PM
Yes, I update "your_i_bay_name" with the i-bay name netjuke. There is also the value "/" next to "PHPBaseDir".
Title: Re: open_basedir restriction in effect
Post by: Jens Kruuse on October 15, 2003, 10:42:16 PM
Let's check the httpd.conf file then.  :)

Near the end of the loooong file you should have the following section for  your i-bay:


    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
    php_admin_value open_basedir /


If you have that section as well and have the ibay set to execute dynamic content then I'm stumped.

/Jens
Title: Re: open_basedir restriction in effect
Post by: Bernt on October 15, 2003, 11:25:29 PM
It look like this.


AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
php_admin_value open_basedir /home/e-smith/files/ibays/netjuke


And the i-bay is set to execute dynamic content.

Thank god for MC. ;-)
Title: Re: open_basedir restriction in effect
Post by: Bernt on October 16, 2003, 12:22:28 AM
Thank you, thank you, thank you! It's gone.
All I did was running this 3 commands again.

/sbin/e-smith/db accounts setprop netjuke PHPBaseDir /
/sbin/e-smith/signal-event ibay-modify netjuke
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf

This entrys in php.ini is now gone.


AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
php_admin_value open_basedir /home/e-smith/files/ibays/netjuke



Thanks for all your help.