1 |
diff -Nur --no-dereference smeserver-phpldapadmin-1.5.0.old/createlinks smeserver-phpldapadmin-1.5.0/createlinks |
diff -Nur --no-dereference smeserver-phpldapadmin-1.5.0.old/createlinks smeserver-phpldapadmin-1.5.0/createlinks |
2 |
--- smeserver-phpldapadmin-1.5.0.old/createlinks 2014-06-21 12:53:47.000000000 -0400 |
--- smeserver-phpldapadmin-1.5.0.old/createlinks 2014-06-21 12:53:47.000000000 -0400 |
3 |
+++ smeserver-phpldapadmin-1.5.0/createlinks 2021-06-01 12:51:13.224000000 -0400 |
+++ smeserver-phpldapadmin-1.5.0/createlinks 2021-06-01 12:51:13.224000000 -0400 |
4 |
@@ -14,3 +14,14 @@ |
@@ -14,3 +14,16 @@ |
5 |
templates2events("/etc/phpldapadmin/config.php", $event) |
templates2events("/etc/phpldapadmin/config.php", $event) |
6 |
} |
} |
7 |
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/phpldapadmin/config.php/template-begin"); |
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/phpldapadmin/config.php/template-begin"); |
12 |
+ { |
+ { |
13 |
+ templates2events("/etc/httpd/conf/httpd.conf", $event); |
+ templates2events("/etc/httpd/conf/httpd.conf", $event); |
14 |
+ templates2events("/etc/phpldapadmin/config.php", $event); |
+ templates2events("/etc/phpldapadmin/config.php", $event); |
15 |
+ templates2events("/etc/opt/remi/php74/php-fpm.d/www.conf", $event); |
+ templates2events("/etc/opt/remi/php____PHPVERSION____/php-fpm.d/www.conf", $event) unless "____PHPVERSION____" eq ""; |
16 |
|
+ templates2events("/etc/php-fpm.d/www.conf", $event) if "____PHPVERSION____" eq ""; |
17 |
+ safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
+ safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
18 |
+ safe_symlink("reload-or-restart", "root/etc/e-smith/events/$event/services2adjust/php74-php-fpm"); |
+ safe_symlink("reload-or-restart", "root/etc/e-smith/events/$event/services2adjust/php____PHPVERSION____-php-fpm") unless "____PHPVERSION____" eq ""; |
19 |
|
+ safe_symlink("reload-or-restart", "root/etc/e-smith/events/$event/services2adjust/php-fpm") if "____PHPVERSION____" eq ""; |
20 |
+ } |
+ } |
21 |
|
diff -Nur --no-dereference smeserver-phpldapadmin-1.5.0.old/root/etc/e-smith/db/configuration/defaults/phpldapadmin/status smeserver-phpldapadmin-1.5.0/root/etc/e-smith/db/configuration/defaults/phpldapadmin/status |
22 |
|
--- smeserver-phpldapadmin-1.5.0.old/root/etc/e-smith/db/configuration/defaults/phpldapadmin/status 1969-12-31 19:00:00.000000000 -0500 |
23 |
|
+++ smeserver-phpldapadmin-1.5.0/root/etc/e-smith/db/configuration/defaults/phpldapadmin/status 2021-06-01 13:08:02.020000000 -0400 |
24 |
|
@@ -0,0 +1 @@ |
25 |
|
+enabled |
26 |
diff -Nur --no-dereference smeserver-phpldapadmin-1.5.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Phpldapadmin smeserver-phpldapadmin-1.5.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Phpldapadmin |
diff -Nur --no-dereference smeserver-phpldapadmin-1.5.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Phpldapadmin smeserver-phpldapadmin-1.5.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Phpldapadmin |
27 |
--- smeserver-phpldapadmin-1.5.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Phpldapadmin 2014-06-21 12:53:47.000000000 -0400 |
--- smeserver-phpldapadmin-1.5.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Phpldapadmin 2014-06-21 12:53:47.000000000 -0400 |
28 |
+++ smeserver-phpldapadmin-1.5.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Phpldapadmin 2021-06-01 13:01:37.848000000 -0400 |
+++ smeserver-phpldapadmin-1.5.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Phpldapadmin 2021-06-01 13:04:03.628000000 -0400 |
29 |
@@ -21,8 +21,10 @@ |
@@ -21,8 +21,10 @@ |
30 |
AuthExternal pwauth |
AuthExternal pwauth |
31 |
require user admin |
require user admin |
33 |
- AddType application/x-httpd-php .php .php3 |
- AddType application/x-httpd-php .php .php3 |
34 |
- php_flag magic_quotes_gpc on |
- php_flag magic_quotes_gpc on |
35 |
- php_flag track_vars on |
- php_flag track_vars on |
36 |
+ <FilesMatch .php\$\> |
+ <FilesMatch \.php$> |
37 |
+ SetHandler "proxy:unix:/var/run/php-fpm/php74-phpldapadmin.sock|fcgi://localhost" |
+ SetHandler "proxy:unix:/var/run/php-fpm/php____PHPVERSION____-phpldapadmin.sock|fcgi://localhost" |
38 |
+ </FilesMatch> |
+ </FilesMatch> |
39 |
+ SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=\$1 |
+ SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=\$1 |
40 |
+ |
+ |
42 |
|
|
43 |
diff -Nur --no-dereference smeserver-phpldapadmin-1.5.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15phpldapadmin smeserver-phpldapadmin-1.5.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15phpldapadmin |
diff -Nur --no-dereference smeserver-phpldapadmin-1.5.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15phpldapadmin smeserver-phpldapadmin-1.5.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15phpldapadmin |
44 |
--- smeserver-phpldapadmin-1.5.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15phpldapadmin 1969-12-31 19:00:00.000000000 -0500 |
--- smeserver-phpldapadmin-1.5.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15phpldapadmin 1969-12-31 19:00:00.000000000 -0500 |
45 |
+++ smeserver-phpldapadmin-1.5.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15phpldapadmin 2021-06-01 12:42:13.346000000 -0400 |
+++ smeserver-phpldapadmin-1.5.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15phpldapadmin 2021-06-01 13:10:34.241000000 -0400 |
46 |
@@ -0,0 +1,73 @@ |
@@ -0,0 +1,73 @@ |
47 |
+{ |
+{ |
48 |
+ |
+ |
49 |
+if ($PHP_VERSION eq '74'){ |
+if ($PHP_VERSION eq '____PHPVERSION____'){ |
50 |
+ if (($phpldapadmin{'status'} || 'disabled') eq 'enabled'){ |
+ if (($phpldapadmin{'status'} || 'disabled') eq 'enabled'){ |
51 |
+ my $max_upload_size = ($phpldapadmin{MaxUploadSize} || '100M');# 104857600 bytes |
+ my $max_upload_size = ($phpldapadmin{MaxUploadSize} || '100M');# 104857600 bytes |
52 |
+ $max_upload_size .= 'M' if ($max_upload_size =~ m/^\d+$/); |
+ $max_upload_size .= 'M' if ($max_upload_size =~ m/^\d+$/); |
53 |
+ my $memory_limit = ($phpldapadmin{MemoryLimit} || '512M'); |
+ my $memory_limit = ($phpldapadmin{MemoryLimit} || '512M'); |
54 |
+ $memory_limit .= 'M' if ($memory_limit =~ m/^\d+$/); |
+ $memory_limit .= 'M' if ($memory_limit =~ m/^\d+$/); |
55 |
+ my $open_basedir= $phpldapadmin{PHPBaseDir} || ''; |
+ my $open_basedir= $phpldapadmin{PHPBaseDir} || ''; |
56 |
+ $open_basedir = "/etc/phpMyAdmin/:/usr/share/phpldapadmin/:/var/lib/php/phpldapadmin:". |
+ $open_basedir = "/etc/phpldapadmin/:/usr/share/phpldapadmin/:/var/lib/php/phpldapadmin:". |
57 |
+"/var/lib/phpldapadmin/temp:/var/lib/phpldapadmin/save/:/var/lib/phpldapadmin/upload:/var/lib/phpldapadmin/cache/:". |
+"/var/lib/phpldapadmin/temp:/var/lib/phpldapadmin/save/:/var/lib/phpldapadmin/upload:/var/lib/phpldapadmin/cache/:". |
58 |
+"/usr/share/php/:". |
+"/usr/share/php/:". |
59 |
+"/var/log/php/phpldapadmin::/dev/urandom:$open_basedir"; |
+"/var/log/php/phpldapadmin::/dev/urandom:$open_basedir"; |
64 |
+ my $max_requests = $phpldapadmin{'PHPmaxRequests'} || 1000; |
+ my $max_requests = $phpldapadmin{'PHPmaxRequests'} || 1000; |
65 |
+ $min_spare_servers = ( $min_spare_servers > $max_spare_servers ) ? printf("%.0f",$max_spare_servers/2) : $min_spare_servers; |
+ $min_spare_servers = ( $min_spare_servers > $max_spare_servers ) ? printf("%.0f",$max_spare_servers/2) : $min_spare_servers; |
66 |
+ $start_servers = ( $start_servers > $max_spare_servers ) ? printf("%.0f", $max_spare_servers /2 + $min_spare_servers/2 ) : $start_servers; |
+ $start_servers = ( $start_servers > $max_spare_servers ) ? printf("%.0f", $max_spare_servers /2 + $min_spare_servers/2 ) : $start_servers; |
67 |
+ my $id = 'phpldapadmin'; # Note the package is phpMyAdmin |
+ my $id = 'phpldapadmin'; # Note the package is phpldapadmin |
68 |
+ $OUT .=<<"_EOF"; |
+ $OUT .=<<"_EOF"; |
69 |
+ |
+ |
70 |
+[php$PHP_VERSION-$id] |
+[php$PHP_VERSION-$id] |
106 |
+php_admin_value[auto_prepend_file] = /usr/share/php/auth_translation.php |
+php_admin_value[auto_prepend_file] = /usr/share/php/auth_translation.php |
107 |
+php_flag[session.use_trans_sid] = off |
+php_flag[session.use_trans_sid] = off |
108 |
+php_flag[track_vars] = on |
+php_flag[track_vars] = on |
109 |
+php_flag[magic_quotes_gpc] = off |
+php_flag[magic_quotes_gpc] = on |
110 |
+ |
+ |
111 |
+_EOF |
+_EOF |
112 |
+ |
+ |