Koozali.org: home of the SME Server

Overcome the open_basedir restrictions on per ibay

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
Overcome the open_basedir restrictions on per ibay
« 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
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
Overcome the open_basedir restrictions on per ibay
« Reply #1 on: March 05, 2006, 12:30:53 PM »
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
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.

Offline JonB

  • *
  • 351
  • +0/-0
Overcome the open_basedir restrictions on per ibay
« Reply #2 on: March 05, 2006, 01:36:43 PM »
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
...

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
Overcome the open_basedir restrictions on per ibay
« Reply #3 on: March 05, 2006, 02:58:21 PM »
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
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Overcome the open_basedir restrictions on per ibay
« Reply #4 on: March 06, 2006, 01:02:49 AM »
Quote from: "stiperstones"
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.

Quote

ps those dont work


Which "those" are you referring to?

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
Overcome the open_basedir restrictions on per ibay
« Reply #5 on: March 06, 2006, 08:23:59 PM »
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.
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.