akaunting 3.0 (the last dance)

This commit is contained in:
Burak Civan
2022-06-01 10:15:55 +03:00
parent cead09f6d4
commit d9c0764572
3812 changed files with 126831 additions and 102949 deletions

View File

@ -29,10 +29,34 @@ class PhpExecutableFinder
public function getPhpPath()
{
$php_path = getenv('APP_PHP_PATH');
if (! empty($php_path)) {
return $php_path;
}
if ($this->isCpanel()) {
return '/usr/local/bin/php';
}
if ($this->isPlesk()) {
$php_80 = '/opt/plesk/php/8.0/bin/php';
$php_81 = '/opt/plesk/php/8.1/bin/php';
$php_82 = '/opt/plesk/php/8.2/bin/php';
if (@is_executable($php_80)) {
return $php_80;
}
if (@is_executable($php_81)) {
return $php_81;
}
if (@is_executable($php_82)) {
return $php_82;
}
}
return 'php';
}