Skip to content

Commit

Permalink
added php executable requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Mar 18, 2020
1 parent 53a7e92 commit 056d247
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Utilities/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use App\Jobs\Auth\CreateUser;
use App\Jobs\Common\CreateCompany;
use App\Utilities\Console;
use Artisan;
use Config;
use DB;
Expand Down Expand Up @@ -115,6 +116,10 @@ public static function checkServerRequirements()
$requirements[] = trans('install.requirements.directory', ['directory' => 'storage/logs']);
}

if (Console::run('php artisan help') !== true) {
$requirements[] = trans('install.requirements.executable');
}

return $requirements;
}

Expand Down
1 change: 1 addition & 0 deletions resources/lang/en-GB/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'disabled' => ':feature needs to be disabled!',
'extension' => ':extension extension needs to be installed and loaded!',
'directory' => ':directory directory needs to be writable!',
'executable' => 'The PHP executable file is not working! Please, ask your hosting company to set PHP_BINARY or PHP_PATH environment variable correctly.',
],

'database' => [
Expand Down

0 comments on commit 056d247

Please sign in to comment.