Koozali.org: home of the SME Server

Setting upload_tmp_dir value in v8

Offline bclayton

  • ****
  • 139
  • +0/-0
Setting upload_tmp_dir value in v8
« on: September 05, 2012, 05:25:24 AM »
I need to set the value of upload_tmp_dir to /tmp.  I did a search but did not see anything specific for SME 8.0.  What is the best way to do this?
Thanks, Brooks

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Setting upload_tmp_dir value in v8
« Reply #1 on: September 05, 2012, 07:17:49 AM »

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Setting upload_tmp_dir value in v8
« Reply #2 on: September 05, 2012, 12:51:53 PM »
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Web_Applications

Quote
    I need to create (or install) a PHP application that needs access to the /tmp directory.

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

More info here:
http://wiki.contribs.org/DB_Variables_Configuration#Apache_server_ibay_specific_.28httpd-e-smith.29

Offline bclayton

  • ****
  • 139
  • +0/-0
Re: Setting upload_tmp_dir value in v8
« Reply #3 on: September 05, 2012, 02:38:00 PM »
Worked like a charm.  I had found that code in my search but was not sure it applied to SME 8.

Thanks for the help!

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Setting upload_tmp_dir value in v8
« Reply #4 on: September 05, 2012, 03:31:02 PM »
be careful of the potential security issue by letting /tmp access to your web applications.

/tmp is also used by the system and might thus contain  some sensitive information. it would be better to create a specific ibay tmp folder to avoid such access.

Offline bclayton

  • ****
  • 139
  • +0/-0
Re: Setting upload_tmp_dir value in v8
« Reply #5 on: September 05, 2012, 03:56:35 PM »
Thank you for the advice.  I will do as you suggested.

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Setting upload_tmp_dir value in v8
« Reply #6 on: September 05, 2012, 04:27:23 PM »
the link i provided above will let you create a template custom fragment in order to do so.

Offline bclayton

  • ****
  • 139
  • +0/-0
Re: Setting upload_tmp_dir value in v8
« Reply #7 on: September 05, 2012, 04:33:07 PM »
Thanks.  I'll take another look at the link.  I am concerned about security.