Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig Autoinstaller
Commits
cc6926b3
Commit
cc6926b3
authored
Feb 22, 2021
by
Thom Pol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable correct PHP version for the system (
#11
and
#28
)
parent
e99a22ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
lib/os/class.ISPConfigDebianOS.inc.php
lib/os/class.ISPConfigDebianOS.inc.php
+12
-1
No files found.
lib/os/class.ISPConfigDebianOS.inc.php
View file @
cc6926b3
...
...
@@ -158,7 +158,17 @@ class ISPConfigDebianOS extends ISPConfigBaseOS {
}
protected
function
getApacheModulesToDisable
()
{
$modules
=
array
(
'php8.0'
,
'mpm_prefork'
);
$modules
=
array
(
'mpm_prefork'
);
if
(
ISPConfig
::
wantsPHP
()
===
'system'
)
{
array_unshift
(
$modules
,
'php'
.
$this
->
getSystemPHPVersion
());
}
else
{
array_unshift
(
$modules
,
'php8.0'
);
);
}
}
return
$modules
;
}
...
...
@@ -804,6 +814,7 @@ mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman"';
if
(
ISPConfig
::
wantsPHP
()
===
'system'
)
{
$php_versions
=
array
(
$this
->
getSystemPHPVersion
());
}
else
{
// If a new version is added, the getApacheModulesToDisable function should be updated to disable the latest version
$php_versions
=
array
(
'5.6'
,
'7.0'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment