Manuel
5ab49e3f50
Call PHP-FPM only when file exists ( #1006 )
...
Added `<If "-f %{SCRIPT_FILENAME}">` to load only PHP files that exists. This is to prevent `File not found` error from PHP-FPM and let Apache handle the error output. It removes also unnecessary PHP-FPM calls and `AH01071: Got error ‘Primary script unknown` in PHP error log.
Usually you can find the error whenever someone goes fishing for paths like wp-login.php.
The `<If>` directive is only available in Apache 2.4+ and not 2.2 or earlier.
2022-01-21 12:25:14 +01:00
Michael Kaufmann
06849133a8
modernize parameters of Cronjob::inserttask()
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2022-01-21 10:39:32 +01:00
Oskar Eisemuth
4a912e3902
Feature/crontaskid ( #1005 )
...
* Add \Froxlor\Cron\TaskId for fixed task id naming
* Replace Cronjob::inserttask numbers with \Froxlor\Cron\TaskId constants
* Use TaskId in Froxlor\Cron\System\TasksCron
* Use TaskId in Froxlor\System\Cronjob,
simplify getOutstandingTasks.
Rename lng['tasks'] cronjob task description.
WARNING: DELETE_DOMAIN_PDNS, DELETE_DOMAIN_SSL now use %domain%
* Remove Froxlor\System\Cronjob type 3 check
2022-01-21 10:03:45 +01:00
Michael Kaufmann
bcb95e9b7d
check resource-usage for Mysql.add(), thx again to zerody
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2022-01-18 23:18:54 +01:00
Michael Kaufmann
c97f5f1e29
updated README; sanitize script parameter in index.php; sanitize description fields of entities (thx to zerody for pointing these out)
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2022-01-18 09:29:13 +01:00
timdeluxe
4d289e2a7f
Improves text for global open basedir setting ( #1004 )
2022-01-13 19:50:39 +01:00
Michael Kaufmann
c491f2c03e
put commands for cronjob setup at the end of the list (should be the last thing to execute)
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2022-01-13 18:42:40 +01:00
Michael Kaufmann
5832346f75
set version to 0.10.32 for upcoming release
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
0.10.32
2022-01-07 15:38:12 +01:00
Michael Kaufmann
4b4770ab36
add missing change-check when ssl-specialsettings are changed
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2022-01-03 20:27:19 +01:00
Michael Kaufmann
8c998dd6f2
Update README.md
2022-01-02 14:53:59 +01:00
Michael Kaufmann
965359ec79
Update README.md
2022-01-02 14:35:36 +01:00
Michael Kaufmann
d1d42f2055
allow setting path to acme.sh installation; fixes #1002
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-12-31 10:38:49 +01:00
Michael Kaufmann
5f41b37770
test dns entry string without any whitespaces/tabs/etc.
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-12-27 16:08:46 +01:00
Michael Kaufmann
61265778a5
fix unit-test
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-12-27 16:01:45 +01:00
Michael Kaufmann
8f0f890145
fix too strict comparison for isemaildomain check in Dns-Zone generation; fixes #1003
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-12-27 15:38:59 +01:00
Michael Kaufmann
5ccae3f9bb
do not check for allowed-phpconfigs if fpm/fcgid is not activated (no possibility to select a config anyway)
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-12-14 11:23:36 +01:00
Michael Kaufmann
f4d9e64804
set version to 0.10.31 for upcoming release
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
0.10.31
2021-12-03 15:30:09 +01:00
Michael Kaufmann
149c0935fa
fix Domains.update() with correct path and change_serversettings=0; refs #1001
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-11-27 22:06:29 +01:00
Michael Kaufmann
cb0b537f6c
allow settings/updating documentroot (only relative to customer homedirectory) when change_serversettings permission is not granted; fixes #1000
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-11-27 18:04:36 +01:00
Michael Kaufmann
b54c012579
respect deactivated flag when createstdsubdomain's default falls back to 'true' if the customer has one (prior to deactivating); refs #998
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-11-15 20:24:55 +01:00
Michael Kaufmann
389d83f5a3
fix behaviour in Customers.update() in case 'createstdsubdomain' is not set when called via API (wrong default); fixes #998
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-11-15 20:04:01 +01:00
Michael Kaufmann
00771381e8
set correct php-version numbers for installation dependencies-check; fixes #997
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-11-13 20:20:05 +01:00
Michael Kaufmann
46df429909
set version to 0.10.30 for upcoming release
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
0.10.30
2021-11-05 09:27:58 +01:00
Michael Kaufmann
eb841da007
avoid possible DivisionByZeroError in APCu info page, fixes #995
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-11-04 07:44:03 +01:00
Michael Kaufmann
c4a2db03be
enable bind for testing-scenarios explicitly
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-11-03 14:16:21 +01:00
Michael Kaufmann
e5838f00cf
add quota-plugin parameters to dovecot-config-templates; update standardcustomer index.html; set nameserver disabled by default
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-11-03 14:08:57 +01:00
Michael Kaufmann
bcde7e93df
check whether the domain to clean from pdns actually still exists there; fixes #992
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-21 12:00:36 +02:00
Michael Kaufmann
bd8327afbe
soften/correct permissions on pdns configs; fixes #991
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-21 11:56:34 +02:00
Michael Kaufmann
b961eba382
fix api documentation for Domains.add() and Domains.update(); fixes #987
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-20 16:51:16 +02:00
Michael Kaufmann
a552ea878e
avoid undefined index of 'wwwserveralias' field if issueing/renewing lets encrypt certificate for froxlor-hostname
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-17 11:48:40 +02:00
Michael Kaufmann
4ad2a1da1c
add complete list of nameserver-ips and given axfr-servers to allow-axfr-ips list for PowerDNS; fixes #985
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-14 19:07:05 +02:00
Michael Kaufmann
37ae69f07a
correct language strings in phpconfig formfield for new setting; refs #980
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-14 17:13:55 +02:00
Michael Kaufmann
9870db2560
add possibility to assign new/edited php-config to all customer accounts; fixes #980
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-14 17:09:29 +02:00
Michael Kaufmann
724a5e172a
don't remove 0-value parameter values from bulk-actions
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-12 16:29:04 +02:00
Michael Kaufmann
8e166cb842
adjust debian 11 config templates, fixes #982
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-12 14:25:42 +02:00
Michael Kaufmann
5e281cf486
fix allowed-phpconfigs check in SubDomains.add() and SubDomains.update()
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-11 19:26:13 +02:00
Michael Kaufmann
5d2f44ecd8
only validate custom database name if used at all
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-11 18:59:26 +02:00
Michael Kaufmann
5009c625d8
prep.statement cannot be used for create database query; regex-validate database_name
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-11 18:55:15 +02:00
Michael Kaufmann
eb592340b0
use prepared statement for creating databases to avoid sql injections in custom db-names
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-11 18:33:48 +02:00
Michael Kaufmann
c6f556c8d9
set version to 0.10.29.1 for bugfix release
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
0.10.29.1
2021-10-10 14:45:17 +02:00
Michael Kaufmann
db1df84ef1
correct db-exists check in installation-process
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-10 14:32:02 +02:00
Michael Kaufmann
52135a1d3a
set version to 0.10.29 for upcoming release
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
0.10.29
2021-10-08 08:46:58 +02:00
Michael Kaufmann
7f13bd09da
add optional ssl parameters to powerdns-config-template
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-08 08:39:22 +02:00
Nick Ufer
7ccbb37c4e
feat: adds mysql tls support ( #979 )
2021-10-08 08:28:32 +02:00
Michael Kaufmann
7feddf0aec
generate unpredictable unique session ids
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-02 12:38:17 +02:00
Michael Kaufmann
e73523531a
let user decide whether an existing database should be backup'ed and removed when installing froxlor; dont rely on parse_ini_file for OS check; enhance mysqldump so there is no issues with complex passwords and bash-escaping
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-09-24 10:49:57 +02:00
Michael Kaufmann
a47b790e19
actually integrate the new czech language file; refs #976
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-09-04 09:30:44 +02:00
Michael Kaufmann
319eec6124
fix session for 2fa enabled logins
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-08-27 13:17:05 +02:00
Michael Kaufmann
21983f27b6
secure commonly used filename-variable against url manipulation
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-08-25 16:36:09 +02:00
Michael Kaufmann
5d375b784d
login action always goes to index.php
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-08-25 16:30:56 +02:00