Uploadtmpdir

From SME Server
Revision as of 20:30, 4 June 2013 by Stephdl (talk | contribs) (Created page with "=== upload_tmp_dir === Since SME Server V8, you could have sometime an error is thrown by PHP and you will need to specify a temporary directory (e.g. upload_tmp_dir) which ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

upload_tmp_dir

Since SME Server V8, you could have sometime an error is thrown by PHP and you will need to specify a temporary directory (e.g. upload_tmp_dir) which is not set in php.ini. see bugzilla:6650 and bugzilla:7652. Many Php applications needs this setting, most of known are wordpress, roudcube, egroupware, etc. Symptoms are that you can't upload contents to the PHP application.

An easy way is to make a Custom Template to resolve this issue.


mkdir /etc/e-smith/templates-custom/etc/php.ini/              
nano /etc/e-smith/templates-custom/etc/php.ini/12phptmpfolder

then paste this and save the file by ctrl+x

upload_tmp_dir = /tmp

and then do

signal-event console-save 

If you want to erase this setting you have to remove the file and the folder if necessary

rm /etc/e-smith/templates-custom/etc/php.ini/12phptmpfolder
rm -rf /etc/e-smith/templates-custom/etc/php.ini/

and

signal-event console-save