/[smeserver]/rpms/e-smith-php/sme10/e-smith-php-2.6.0-add_session_folder.patch
ViewVC logotype

Contents of /rpms/e-smith-php/sme10/e-smith-php-2.6.0-add_session_folder.patch

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


Revision 1.3 - (show annotations) (download)
Sun Jun 26 17:20:56 2016 UTC (7 years, 10 months ago) by unnilennium
Branch: MAIN
CVS Tags: e-smith-php-2_6_0-4_el7_sme, HEAD
Changes since 1.2: +17 -11 lines
* Sun Jun 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme
- clean daily session and tmp folders [SME: 9626]
- updated path for ibays' session and tmp folders to /var/cache

1 diff -Nur e-smith-php-2.6.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays e-smith-php-2.6.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays
2 --- e-smith-php-2.6.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays 2016-06-26 12:49:22.216000000 -0400
3 +++ e-smith-php-2.6.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays 2016-06-26 12:58:19.037000000 -0400
4 @@ -18,10 +18,16 @@
5 $tmpdir = ('/var/cache/e-smith/files/ibays/' . $ibay->key . '/tmp') if $tmpdir eq 'enabled';
6 $OUT .= " php_admin_value upload_tmp_dir $tmpdir\n" unless ($tmpdir eq 'disabled' || ! -d $tmpdir);
7
8 + # Set the session folder where php can store its session instead of in global dir
9 + my $sessdir = $ibay->prop('PHPSessionDir') || 'enabled';
10 + $sessdir = ('/var/cache/e-smith/files/ibays/' . $ibay->key . '/session') if $sessdir eq 'enabled';
11 + $OUT .= " php_admin_value session.save_path $sessdir\n" unless ($sessdir eq 'disabled' || ! -d $sessdir);
12 +
13 # Set the sandbox within which PHP is confined to play
14 my $basedir = $ibay->prop('PHPBaseDir')
15 || ("/home/e-smith/files/ibays/" . $ibay->key . "/");
16 $basedir = $tmpdir . ":" . $basedir unless ($tmpdir eq 'disabled' || ! -d $tmpdir);
17 + $basedir = $sessdir . ":" . $basedir unless ($sessdir eq 'disabled' || ! -d $sessdir);
18 $OUT .= " php_admin_value open_basedir $basedir\n";
19 $OUT .= "</Directory>\n";
20 }

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