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

Diff 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 | View Patch Patch

Revision 1.1 by unnilennium, Thu Jun 23 04:39:25 2016 UTC Revision 1.2 by unnilennium, Thu Jun 23 14:56:11 2016 UTC
# Line 2  diff -Nur e-smith-php-2.6.0.old/root/etc Line 2  diff -Nur e-smith-php-2.6.0.old/root/etc
2  --- e-smith-php-2.6.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays     2016-06-23 00:24:49.131000000 -0400  --- e-smith-php-2.6.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays     2016-06-23 00:24:49.131000000 -0400
3  +++ e-smith-php-2.6.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays 2016-06-23 00:31:29.438000000 -0400  +++ e-smith-php-2.6.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays 2016-06-23 00:31:29.438000000 -0400
4  @@ -22,6 +22,10 @@  @@ -22,6 +22,10 @@
5           my $tmpdir = $ibay->prop('PHPTmpDir') || 'enabled';                  my $tmpdir = $ibay->prop('PHPTmpDir') || 'enabled';
6           $tmpdir = ('/home/e-smith/files/ibays/' . $ibay->key . '/tmp') if $tmpdir eq 'enabled';                  $tmpdir = ('/home/e-smith/files/ibays/' . $ibay->key . '/tmp') if $tmpdir eq 'enabled';
7           $OUT .= "    php_admin_value upload_tmp_dir $tmpdir\n" unless ($tmpdir eq 'disabled' || ! -d $tmpdir);                  $OUT .= "    php_admin_value upload_tmp_dir $tmpdir\n" unless ($tmpdir eq 'disabled' || ! -d $tmpdir);
8  +        # Set the session folder where php can store its session instead of in global dir  +               # Set the session folder where php can store its session instead of in global dir
9  +        my $sessdir = $ibay->prop('PHPSessionDir') || 'enabled';  +               my $sessdir = $ibay->prop('PHPSessionDir') || 'enabled';
10  +        $sessdir = ('/home/e-smith/files/ibays/' . $ibay->key . '/session') if $sessdir eq 'enabled';  +               $sessdir = ('/home/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);  +               $OUT .= "    php_admin_value session.save_path $sessdir\n" unless ($sessdir eq 'disabled' || ! -d $sessdir);
12                  $OUT .= "</Directory>\n";                  $OUT .= "</Directory>\n";
13              }              }
14          }          }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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