SMEServer PHP upload tmp dir
From Proxmox VE
Only 5 variables in the php.ini file can be set using the setprop commands in SMEServer. Whilst the file upload variable is set to On by default, the upload_tmp_dir variable is not set and hence has no value in a regular install. The following will set it to /home/e-smith/files/tmp for all ibays - if that is what you want. The execute (x) permission is essential for the web server user.
// mkdir -p : no error if existing, make parent directories as needed mkdir -p /home/e-smith/files/tmp chmod 2770 /home/e-smith/files/tmp chown admin:www /home/e-smith/files/tmp mkdir -p /etc/e-smith/templates-custom/etc/php.ini cp /etc/e-smith/templates/etc/php.ini/50PathsDirectories /etc/e-smith/templates-custom/etc/php.ini echo upload_tmp_dir = \"/home/e-smith/files/tmp\" >> /etc/e-smith/templates-custom/etc/php.ini expand-template /etc/php.ini sv t httpd-e-smith
