* Thu Mar 06 2025 Jean-Philippe Pialasse <jpp@koozali.org> 5.2.1-2.sme
- SME11 build [SME: 12736] fix csp, templates cleanup upgrade to php 8.3 (8.4 not supported yet) - Wrong Servers output [SME: 12516]
This commit is contained in:
parent
f07f02f9a1
commit
e42d2e7136
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
*.log
|
*.log
|
||||||
*spec-20*
|
*spec-20*
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
|
*.xz
|
||||||
|
@ -1 +0,0 @@
|
|||||||
contribs10
|
|
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
# Location overrides Directory for access control and default is RequireAny
|
# Location overrides Directory for access control and default is RequireAny
|
||||||
# we need to repeat the Require ip section for both context to filter both admin and multiuser access.
|
# we need to repeat the Require ip section for both context to filter both admin and multiuser access.
|
||||||
|
if ("$adminaccess" eq "enabled"){
|
||||||
$OUT .= qq(
|
$OUT .= qq(
|
||||||
<Location /phpmyadmin>
|
<Location /phpmyadmin>
|
||||||
AuthName "phpmyadmin"
|
AuthName "phpmyadmin"
|
||||||
@ -43,10 +44,12 @@
|
|||||||
$OUT .= (($phpmyadmin{access} || 'private' ) eq "public" ) ? " Require all granted": " Require ip $localAccess $externalSSLAccess";
|
$OUT .= (($phpmyadmin{access} || 'private' ) eq "public" ) ? " Require all granted": " Require ip $localAccess $externalSSLAccess";
|
||||||
$OUT .= qq(
|
$OUT .= qq(
|
||||||
</RequireAll>
|
</RequireAll>
|
||||||
</Location>) if "$adminaccess" eq "enabled";
|
</Location>) ;
|
||||||
|
}
|
||||||
|
|
||||||
$OUT .= qq(
|
$OUT .= qq(
|
||||||
<Directory /usr/share/phpMyAdmin>
|
<Directory /usr/share/phpMyAdmin>
|
||||||
|
AddDefaultCharset UTF-8
|
||||||
SSLRequireSSL
|
SSLRequireSSL
|
||||||
Options -Indexes
|
Options -Indexes
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
@ -57,8 +60,10 @@
|
|||||||
</RequireAll>
|
</RequireAll>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
# we unset CSP from httpd to allow phpmyadmin to do its own
|
||||||
|
$OUT .= " Header unset Content-Security-Policy\n";
|
||||||
# we do not want people to mess with this for the moment
|
# we do not want people to mess with this for the moment
|
||||||
my $version = '74';
|
my $version = '83';
|
||||||
|
|
||||||
$OUT .= qq(
|
$OUT .= qq(
|
||||||
AddType application/x-httpd-php .php
|
AddType application/x-httpd-php .php
|
||||||
@ -87,7 +92,16 @@
|
|||||||
|
|
||||||
<Directory /usr/share/phpMyAdmin/setup/frames/>
|
<Directory /usr/share/phpMyAdmin/setup/frames/>
|
||||||
Require all denied
|
Require all denied
|
||||||
</Directory>);
|
</Directory>
|
||||||
|
|
||||||
|
# This configuration prevents mod_security at phpMyAdmin directories from
|
||||||
|
# filtering SQL etc. This may break your mod_security implementation.
|
||||||
|
<IfModule mod_security.c>
|
||||||
|
<Directory /usr/share/phpMyAdmin/>
|
||||||
|
SecRuleInheritance Off
|
||||||
|
</Directory>
|
||||||
|
</IfModule>
|
||||||
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
if ($PHP_VERSION eq '74'){
|
if ($PHP_VERSION eq '83'){
|
||||||
if (($phpmyadmin{'status'} || 'disabled') eq 'enabled'){
|
if (($phpmyadmin{'status'} || 'disabled') eq 'enabled'){
|
||||||
my $max_upload_size = ($phpmyadmin{MaxUploadSize} || '100M');# 104857600 bytes
|
my $max_upload_size = ($phpmyadmin{MaxUploadSize} || '100M');# 104857600 bytes
|
||||||
$max_upload_size .= 'M' if ($max_upload_size =~ m/^\d+$/);
|
$max_upload_size .= 'M' if ($max_upload_size =~ m/^\d+$/);
|
||||||
@ -17,8 +17,8 @@ if ($PHP_VERSION eq '74'){
|
|||||||
my $start_servers = $phpmyadmin{'PHPstartServers'} || 6;
|
my $start_servers = $phpmyadmin{'PHPstartServers'} || 6;
|
||||||
my $max_spare_servers = $phpmyadmin{'PHPmaxServers'} || 8;
|
my $max_spare_servers = $phpmyadmin{'PHPmaxServers'} || 8;
|
||||||
my $max_requests = $phpmyadmin{'PHPmaxRequests'} || 1000;
|
my $max_requests = $phpmyadmin{'PHPmaxRequests'} || 1000;
|
||||||
$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 ) ? sprintf("%.0f", $max_spare_servers/2) : $min_spare_servers;
|
||||||
$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 ) ? sprintf("%.0f", $max_spare_servers/2 + $min_spare_servers/2 ) : $start_servers;
|
||||||
my $id = 'phpmyadmin'; # Note the package is phpMyAdmin
|
my $id = 'phpmyadmin'; # Note the package is phpMyAdmin
|
||||||
$OUT .=<<"_EOF";
|
$OUT .=<<"_EOF";
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Summary: phpMyAdmin for SME Server
|
|||||||
%define name smeserver-phpmyadmin
|
%define name smeserver-phpmyadmin
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
%define version 5.2.1
|
%define version 5.2.1
|
||||||
%define release 1
|
%define release 2
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}%{?dist}
|
Release: %{release}%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -31,6 +31,12 @@ Implementation of phpMyAdmin for SME Server.
|
|||||||
Access with admin username/password via: https://yourdomain/phpmyadmin.
|
Access with admin username/password via: https://yourdomain/phpmyadmin.
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 06 2025 Jean-Philippe Pialasse <jpp@koozali.org> 5.2.1-2.sme
|
||||||
|
- SME11 build [SME: 12736]
|
||||||
|
fix csp, templates cleanup
|
||||||
|
upgrade to php 8.3 (8.4 not supported yet)
|
||||||
|
- Wrong Servers output [SME: 12516]
|
||||||
|
|
||||||
* Fri Sep 13 2024 Jean-Philippe Pialasse <jpp@koozali.org> 5.2.1-1.sme
|
* Fri Sep 13 2024 Jean-Philippe Pialasse <jpp@koozali.org> 5.2.1-1.sme
|
||||||
- fix mysql user creation [SME: 12736]
|
- fix mysql user creation [SME: 12736]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user