Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: bclayton on September 05, 2012, 05:25:24 AM

Title: Setting upload_tmp_dir value in v8
Post by: bclayton 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
Title: Re: Setting upload_tmp_dir value in v8
Post by: Jean-Philippe Pialasse on September 05, 2012, 07:17:49 AM
well my search led me to  http://bugs.contribs.org/show_bug.cgi?id=7011
Title: Re: Setting upload_tmp_dir value in v8
Post by: mmccarn 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
Title: Re: Setting upload_tmp_dir value in v8
Post by: bclayton 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!
Title: Re: Setting upload_tmp_dir value in v8
Post by: Jean-Philippe Pialasse 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.
Title: Re: Setting upload_tmp_dir value in v8
Post by: bclayton on September 05, 2012, 03:56:35 PM
Thank you for the advice.  I will do as you suggested.
Title: Re: Setting upload_tmp_dir value in v8
Post by: Jean-Philippe Pialasse 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.
Title: Re: Setting upload_tmp_dir value in v8
Post by: bclayton on September 05, 2012, 04:33:07 PM
Thanks.  I'll take another look at the link.  I am concerned about security.