Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
cc45abdf
Commit
cc45abdf
authored
Dec 20, 2015
by
Florian Schaal
Browse files
add minimum php-version 5.3.3 to installer and updater
parent
7ba2f51f
Changes
3
Hide whitespace changes
Inline
Side-by-side
install/install.php
View file @
cc45abdf
...
...
@@ -139,6 +139,7 @@ include_once 'dist/conf/'.$dist['id'].'.conf.php';
//** Installer Interface
//****************************************************************************************************
$inst
=
new
installer
();
if
(
!
$inst
->
get_php_version
())
die
(
'ISPConfig requieres PHP '
.
$inst
->
min_php
.
"
\n
"
);
swriteln
(
$inst
->
lng
(
' Following will be a few questions for primary configuration so be careful.'
));
swriteln
(
$inst
->
lng
(
' Default values are in [brackets] and can be accepted with <ENTER>.'
));
...
...
@@ -157,6 +158,13 @@ if(is_dir('/usr/local/ispconfig')) {
die
(
'ISPConfig 3 installation found. Please use update.php instead if install.php to update the installation.'
);
}
//** Detect php-version
$MIN_PHP
=
'5.6'
;
if
(
version_compare
(
PHP_VERSION
,
$MIN_PHP
,
'<'
))
{
echo
'ISPConfig requieres PHP '
.
$MIN_PHP
.
'. Installed version: '
.
PHP_VERSION
.
"
\n
"
;
}
//** Detect the installed applications
$inst
->
find_installed_apps
();
...
...
install/lib/installer_base.lib.php
View file @
cc45abdf
...
...
@@ -36,6 +36,7 @@ class installer_base {
public
$conf
;
public
$install_ispconfig_interface
=
true
;
public
$is_update
=
false
;
// true if it is an update, falsi if it is a new install
public
$min_php
=
'5.3.3'
;
// minimal php-version for update / install
protected
$mailman_group
=
'list'
;
...
...
@@ -130,6 +131,11 @@ class installer_base {
}
*/
//** Detect PHP-Version
public
function
get_php_version
()
{
if
(
version_compare
(
PHP_VERSION
,
$this
->
min_php
,
'<'
))
return
false
;
else
return
true
;
}
//** Detect installed applications
public
function
find_installed_apps
()
{
global
$conf
;
...
...
install/update.php
View file @
cc45abdf
...
...
@@ -174,6 +174,7 @@ $conf['server_id'] = intval($conf_old["server_id"]);
$conf
[
'ispconfig_log_priority'
]
=
$conf_old
[
"log_priority"
];
$inst
=
new
installer
();
if
(
!
$inst
->
get_php_version
())
die
(
'ISPConfig requieres PHP '
.
$inst
->
min_php
.
"
\n
"
);
$inst
->
is_update
=
true
;
//** Detect the installed applications
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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