1 |
jpp |
1.1 |
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 |
2 |
|
|
--- 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 |
3 |
|
|
+++ smeserver-php-3.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays 2020-03-10 10:34:54.561000000 -0400 |
4 |
|
|
@@ -31,10 +31,11 @@ |
5 |
|
|
# the following block is only in case phpmodule is enabled. |
6 |
|
|
if (exists $php{status} and $php{status} eq "enabled" and $phpModule eq "enabled") |
7 |
|
|
{ |
8 |
|
|
- # Set the upload_tmp_folder where php can upload files |
9 |
|
|
+ # Set upload_tmp_dir and sys_temp_dir where php can upload files or write tmp files |
10 |
|
|
my $tmpdir = $ibay->prop('PHPTmpDir') || 'enabled'; |
11 |
|
|
$tmpdir = ("/var/cache/e-smith/files/ibays/$key/tmp") if $tmpdir eq 'enabled'; |
12 |
|
|
$OUT .= " php_admin_value upload_tmp_dir $tmpdir\n" unless ($tmpdir eq 'disabled' || ! -d $tmpdir); |
13 |
|
|
+ $OUT .= " php_admin_value sys_temp_dir $tmpdir\n" unless ($tmpdir eq 'disabled' || ! -d $tmpdir); |
14 |
|
|
|
15 |
|
|
# Set the session folder where php can store its session instead of in global dir |
16 |
|
|
my $sessdir = $ibay->prop('PHPSessionDir') || 'enabled'; |
17 |
|
|
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 |
18 |
|
|
--- 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 |
19 |
|
|
+++ 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 |
20 |
|
|
@@ -57,6 +57,7 @@ |
21 |
|
|
php_admin_value[session.save_path] = /var/lib/php/$key/session |
22 |
|
|
php_admin_value[opcache.file_cache] = /var/lib/php/$key/opcache |
23 |
|
|
php_admin_value[upload_tmp_dir] = /var/lib/php/$key/tmp |
24 |
|
|
+php_admin_value[sys_temp_dir] = /var/lib/php/$key/tmp |
25 |
|
|
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f php@{ $DomainName } |
26 |
|
|
php_admin_flag[display_errors] = $display_errors |
27 |
|
|
php_admin_flag[log_errors] = $log_errors |
28 |
|
|
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 |
29 |
|
|
--- 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 |
30 |
|
|
+++ 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 |
31 |
|
|
@@ -51,6 +51,7 @@ |
32 |
|
|
php_admin_value[session.save_path] = /var/lib/php/$key/session |
33 |
|
|
php_admin_value[opcache.file_cache] = /var/lib/php/$key/opcache |
34 |
|
|
php_admin_value[upload_tmp_dir] = /var/lib/php/$key/tmp |
35 |
|
|
+php_admin_value[sys_temp_dir] = /var/lib/php/$key/tmp |
36 |
|
|
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f php@{ $DomainName } |
37 |
|
|
php_admin_flag[display_errors] = off |
38 |
|
|
php_admin_flag[log_errors] = on |
39 |
|
|
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 |
40 |
|
|
--- 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 |
41 |
|
|
+++ 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 |
42 |
|
|
@@ -4,6 +4,7 @@ |
43 |
|
|
php_admin_value[soap.wsdl_cache_dir] = /var/lib/php/php$PHP_VERSION/wsdlcache |
44 |
|
|
php_admin_value[opcache.file_cache] = /var/lib/php/php$PHP_VERSION/opcache |
45 |
|
|
php_admin_value[upload_tmp_dir] = /var/lib/php/php$PHP_VERSION/tmp |
46 |
|
|
+php_admin_value[sys_temp_dir] = /var/lib/php/php$PHP_VERSION/tmp |
47 |
|
|
_EOF |
48 |
|
|
} |
49 |
|
|
php_admin_value[error_log] = /var/log/php/php{ $PHP_VERSION }/error.log |