diff -Nur smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays smeserver-php-3.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays --- smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays 2020-03-10 10:27:32.727000000 -0400 +++ smeserver-php-3.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays 2020-03-10 10:34:54.561000000 -0400 @@ -31,10 +31,11 @@ # the following block is only in case phpmodule is enabled. if (exists $php{status} and $php{status} eq "enabled" and $phpModule eq "enabled") { - # Set the upload_tmp_folder where php can upload files + # Set upload_tmp_dir and sys_temp_dir where php can upload files or write tmp files my $tmpdir = $ibay->prop('PHPTmpDir') || 'enabled'; $tmpdir = ("/var/cache/e-smith/files/ibays/$key/tmp") if $tmpdir eq 'enabled'; $OUT .= " php_admin_value upload_tmp_dir $tmpdir\n" unless ($tmpdir eq 'disabled' || ! -d $tmpdir); + $OUT .= " php_admin_value sys_temp_dir $tmpdir\n" unless ($tmpdir eq 'disabled' || ! -d $tmpdir); # Set the session folder where php can store its session instead of in global dir my $sessdir = $ibay->prop('PHPSessionDir') || 'enabled'; diff -Nur smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php-fpm.d/custom.conf/10All smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php-fpm.d/custom.conf/10All --- smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php-fpm.d/custom.conf/10All 2020-03-10 10:27:32.734000000 -0400 +++ smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php-fpm.d/custom.conf/10All 2020-03-10 10:32:40.561000000 -0400 @@ -57,6 +57,7 @@ php_admin_value[session.save_path] = /var/lib/php/$key/session php_admin_value[opcache.file_cache] = /var/lib/php/$key/opcache php_admin_value[upload_tmp_dir] = /var/lib/php/$key/tmp +php_admin_value[sys_temp_dir] = /var/lib/php/$key/tmp php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f php@{ $DomainName } php_admin_flag[display_errors] = $display_errors php_admin_flag[log_errors] = $log_errors diff -Nur smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php-fpm.d/ibays.conf/10Ibays smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php-fpm.d/ibays.conf/10Ibays --- smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php-fpm.d/ibays.conf/10Ibays 2020-03-10 10:27:32.734000000 -0400 +++ smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php-fpm.d/ibays.conf/10Ibays 2020-03-10 10:33:04.108000000 -0400 @@ -51,6 +51,7 @@ php_admin_value[session.save_path] = /var/lib/php/$key/session php_admin_value[opcache.file_cache] = /var/lib/php/$key/opcache php_admin_value[upload_tmp_dir] = /var/lib/php/$key/tmp +php_admin_value[sys_temp_dir] = /var/lib/php/$key/tmp php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f php@{ $DomainName } php_admin_flag[display_errors] = off php_admin_flag[log_errors] = on diff -Nur smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default40Paths smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default40Paths --- smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default40Paths 2017-07-27 12:05:00.000000000 -0400 +++ smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default40Paths 2020-03-10 10:32:15.135000000 -0400 @@ -4,6 +4,7 @@ php_admin_value[soap.wsdl_cache_dir] = /var/lib/php/php$PHP_VERSION/wsdlcache php_admin_value[opcache.file_cache] = /var/lib/php/php$PHP_VERSION/opcache php_admin_value[upload_tmp_dir] = /var/lib/php/php$PHP_VERSION/tmp +php_admin_value[sys_temp_dir] = /var/lib/php/php$PHP_VERSION/tmp _EOF } php_admin_value[error_log] = /var/log/php/php{ $PHP_VERSION }/error.log