/[smeserver]/rpms/smeserver-php/sme10/smeserver-php-3.0.0-bz10888-sys_temp_dir.patch
ViewVC logotype

Annotation of /rpms/smeserver-php/sme10/smeserver-php-3.0.0-bz10888-sys_temp_dir.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Mar 10 14:44:10 2020 UTC (4 years, 7 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-php-3_0_0-20_el7_sme, smeserver-php-3_0_0-44_el7_sme, smeserver-php-3_0_0-47_el7_sme, smeserver-php-3_0_0-7_el7_sme, smeserver-php-3_0_0-12_el7_sme, smeserver-php-3_0_0-22_el7_sme, smeserver-php-3_0_0-31_el7_sme, smeserver-php-3_0_0-25_el7_sme, smeserver-php-3_0_0-28_el7_sme, smeserver-php-3_0_0-45_el7_sme, smeserver-php-3_0_0-48_el7_sme, smeserver-php-3_0_0-11_el7_sme, smeserver-php-3_0_0-6_el7_sme, smeserver-php-3_0_0-10_el7_sme, smeserver-php-3_0_0-43_el7_sme, smeserver-php-3_0_0-46_el7_sme, smeserver-php-3_0_0-41_el7_sme, smeserver-php-3_0_0-30_el7_sme, smeserver-php-3_0_0-29_el7_sme, smeserver-php-3_0_0-4_el7_sme, smeserver-php-3_0_0-42_el7_sme, smeserver-php-3_0_0-5_el7_sme, smeserver-php-3_0_0-21_el7_sme, smeserver-php-3_0_0-24_el7_sme, smeserver-php-3_0_0-34_el7_sme, smeserver-php-3_0_0-37_el7_sme, smeserver-php-3_0_0-40_el7_sme, smeserver-php-3_0_0-9_el7_sme, smeserver-php-3_0_0-18_el7_sme, smeserver-php-3_0_0-15_el7_sme, smeserver-php-3_0_0-8_el7_sme, smeserver-php-3_0_0-35_el7_sme, smeserver-php-3_0_0-26_el7_sme, smeserver-php-3_0_0-32_el7_sme, smeserver-php-3_0_0-17_el7_sme, smeserver-php-3_0_0-14_el7_sme, smeserver-php-3_0_0-16_el7_sme, smeserver-php-3_0_0-13_el7_sme, smeserver-php-3_0_0-38_el7_sme, smeserver-php-3_0_0-19_el7_sme, smeserver-php-3_0_0-27_el7_sme, smeserver-php-3_0_0-39_el7_sme, smeserver-php-3_0_0-36_el7_sme, smeserver-php-3_0_0-33_el7_sme, smeserver-php-3_0_0-23_el7_sme, HEAD
* Tue Mar 10 2020 Jean-Philipe Pialasse <tests@pialasse.com> 3.0.0-4.sme
- set sys_temp_dir for php-fpm and ibays [SME: 10888]
- set reload-or-restart for php-fpm service [SME: 10335]

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed