Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: stiperstones on March 05, 2006, 10:56:17 AM
-
Hi all
Trying to overcome the open_basedir restriction on a per ibay name by adding a /tmp directory to it. For uploading files through php from browser
Then using a custom_template for http.conf and adding this to it.
<Directory home/e-smith/files/ibays/name of ibay/tmp/>
php_admin_value doc_root "home/e-smith/files/ibays/name of ibay/tmp/"
php_admin_flag safe_mode on
php_admin_value open_basedir "home/e-smith/files/ibays/name of ibay/tmp/"
</Directory>
maybe add this to it as well
php_admin_value upload_tmp_dir "home/e-smith/files/ibays/name of ibay/tmp/"
Thoughts
1. Would i need to add .htaccess file directive in /tmp
2. Does this allow a php readfile script to run as this could be a problem.
Thanks in advance for any thoughts and answers
-
trying this now
<Directory home/e-smith/files/ibays/name of ibay/html/>
php_admin_value doc_root "home/e-smith/files/ibays/name of ibay/html/"
php_admin_flag safe_mode on
php_admin_value open_basedir "home/e-smith/files/ibays/name of ibay/tmp/"
php_admin_value upload_tmp_dir "home/e-smith/files/ibays/name of ibay/tmp/"
</Directory>
comments please
-
There is a correct way to do this rather than modify the template fragments. Read
http://no.longer.valid/phpwiki/index.php/TroubleshootingFAQ#php_basedir
Jon
-
Yes i know about the way you have found but i would like to enable open_basedir using the template system so i can remove them has easy has i have enabled the ibay.
thanks
ps those dont work
-
Yes i know about the way you have found but i would like to enable open_basedir using the template system so i can remove them has easy has i have enabled the ibay.
The method you've been pointed to does use the template system. It uses pre-existing templates, rather than creating new custom templates. And it does allow them to be removed easily.
ps those dont work
Which "those" are you referring to?
-
JonB
Ah sorry yes they do work as per the Faq but my typing a little bit duff.
CharlieBrady
I have now relised after rereading the manual at bedtime.
Thank you for both for pointing me in the correct direction.