Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started 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
-
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
-
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?
-
Well, the ibay-modify event may do the trick, but you'd do
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
-
I did /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
and restarted the server. Still no luck.
-
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
-
Yes, I update "your_i_bay_name" with the i-bay name netjuke. There is also the value "/" next to "PHPBaseDir".
-
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
-
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. ;-)
-
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.