mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 10:43:49 +00:00
SCRIPTS: PHP bin is not always php5 (#2352)
This commit is contained in:
committed by
FusionPBX
parent
6b6a0dab18
commit
7ec779419b
@@ -213,8 +213,11 @@ if (!class_exists('scripts')) {
|
||||
if (substr(strtoupper(PHP_OS), 0, 3) == "WIN") {
|
||||
$tmp .= " php_bin = \"php.exe\";\n";
|
||||
}
|
||||
elseif (file_exists(PHP_BINDIR."/php5")) {
|
||||
$tmp .= " php_bin = \"php5\";\n";
|
||||
}
|
||||
else {
|
||||
$tmp .= " php_bin = \"php5\";\n";
|
||||
$tmp .= " php_bin = \"php\";\n";
|
||||
}
|
||||
$tmp .= $this->correct_path(" document_root = [[".$_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."]];\n");
|
||||
$tmp .= $this->correct_path(" project_path = [[".PROJECT_PATH."]];\n");
|
||||
|
||||
Reference in New Issue
Block a user