@extends('admin.layouts.master-soyuz') @section('title',__('System Status | ')) @section('body') @component('admin.component.breadcumb',['secondactive' => 'active']) @slot('heading') {{ __('Help and support') }} @endslot @slot('menu2') {{ __('System Status') }} @endslot @endcomponent
@if ($errors->any()) @endif
{{ __('System Status') }}
@php $results = DB::select( DB::raw('SHOW VARIABLES LIKE "%version%"') ); foreach ($results as $key => $result) { if($result->Variable_name == 'version' ){ $db_info[] = array( 'value' => $result->Value ); } if($result->Variable_name == 'version_comment'){ $db_info[] = array( 'value' => $result->Value ); } } $servercheck= array(); @endphp
Laravel Version {{ App::version() }}
@foreach($db_info as $key => $info) @endforeach
MYSQL version info {{ __('Status') }}
{{ $key == 0 ? "MYSQL Version" : "Server Type" }} {{ $info['value'] }} @if($key == 0 && $info['value'] < 5.7) @php array_push($servercheck, 0); @endphp @else @php array_push($servercheck, 1); @endphp @endif
@php $v = phpversion(); @endphp @php $path = storage_path(); @endphp @php $path = base_path('bootstrap/cache'); @endphp @php $path = storage_path('framework/sessions'); @endphp
{{ __('php extensions') }} {{ __('Your') }} {{ __('Required') }} {{ __('Status') }}
{{ __('php version') }} ({{ $v }})
php version required greater than than 7.2
{{ phpversion() }} {{ '7.4+' }} @if($v > 7.2) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp
Your php version is {{ $v }} which is not supported @endif
{{ __('pdo') }} {{ extension_loaded('pdo') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('pdo')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('BCMath') }} {{ extension_loaded('BCMath') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('BCMath')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('openssl') }} {{ extension_loaded('openssl') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('openssl')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('fileinfo') }} {{ extension_loaded('fileinfo') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('fileinfo')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('json') }} {{ extension_loaded('json') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('json')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('session') }} {{ extension_loaded('session') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('session')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('gd') }} {{ extension_loaded('gd') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('gd')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('allow_url_fopen') }} {{ ini_get('allow_url_fopen') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (ini_get('allow_url_fopen')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('xml') }} {{ extension_loaded('xml') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('xml')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('tokenizer') }} {{ extension_loaded('tokenizer') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('tokenizer')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('standard') }} {{ extension_loaded('standard') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('standard')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('zip') }} {{ extension_loaded('zip') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('zip')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('mysqli') }} {{ extension_loaded('mysqli') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('mysqli')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('mbstring') }} {{ extension_loaded('mbstring') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('mbstring')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('ctype') }} {{ extension_loaded('ctype') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('ctype')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('exif') }} {{ extension_loaded('exif') ? "Enabled" : "Disabled" }} {{ __('Yes') }} @if (extension_loaded('exif')) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('max_execution_time') }} {{ ini_get('max_execution_time') }} {{__("sec.")}} {{__("300 sec.")}} @if (ini_get('max_execution_time') >= 300 || ini_get('max_execution_time') == '-1') @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('memory_limit') }} @php $memory_limit = ini_get('memory_limit'); if (preg_match('/^(\d+)(.)$/', $memory_limit, $matches)) { if ($matches[2] == 'M') { $memory_limit = $matches[1] * 1024 * 1024; // nnnM -> nnn MB } else if ($matches[2] == 'K') { $memory_limit = $matches[1] * 1024; // nnnK -> nnn KB } else if ($matches[2] == 'G') { $memory_limit = $matches[1] * 1024 * 1024 * 1024; // nnnK -> nnn KB } } $ok = ($memory_limit >= 1024 * 1024 * 1024); // at least 1G? @endphp {{ ini_get('memory_limit') }} {{ __('1G') }} @if ($ok == true || ini_get('memory_limit') == '-1') @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{ __('upload_max_filesize') }} @php $upload_max_filesize = ini_get('upload_max_filesize'); if (preg_match('/^(\d+)(.)$/', $upload_max_filesize, $matches)) { if ($matches[2] == 'M') { $upload_max_filesize = $matches[1] * 1024 * 1024; // nnnM -> nnn MB } else if ($matches[2] == 'K') { $upload_max_filesize = $matches[1] * 1024; // nnnK -> nnn KB } else if ($matches[2] == 'G') { $upload_max_filesize = $matches[1] * 1024 * 1024 * 1024; // nnnK -> nnn KB } } $ok = ($upload_max_filesize >= 1024 * 1024 * 1024); // at least 1G? @endphp {{ ini_get('upload_max_filesize') }} {{ __('1G') }} @if ($ok == true) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 1); @endphp @endif
{{ __('post_max_size') }} @php $post_max_size = ini_get('post_max_size'); if (preg_match('/^(\d+)(.)$/', $post_max_size, $matches)) { if ($matches[2] == 'M') { $post_max_size = $matches[1] * 1024 * 1024; // nnnM -> nnn MB } else if ($matches[2] == 'K') { $post_max_size = $matches[1] * 1024; // nnnK -> nnn KB } else if ($matches[2] == 'G') { $post_max_size = $matches[1] * 1024 * 1024 * 1024; // nnnK -> nnn KB } } $ok = ($post_max_size >= 1024 * 1024 * 1024); // at least 1G? @endphp {{ ini_get('post_max_size') }} {{ __('1G') }} @if ($ok == true) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{storage_path()}} {{ __('is writable') }}? {{ is_writable($path) ? "Writable" : "Non-Writable" }} {{__("Yes")}} @if(is_writable($path)) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{base_path('bootstrap/cache')}} {{ __('is writable') }}? {{ is_writable($path) ? "Writable" : "Non-Writable" }} {{__("Yes")}} @if(is_writable($path)) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
{{storage_path('framework/sessions')}} {{ __('is writable') }}? {{ is_writable($path) ? "Writable" : "Non-Writable" }} {{__("Yes")}} @if(is_writable($path)) @php array_push($servercheck, 1); @endphp @else @php array_push($servercheck, 0); @endphp @endif
@endsection @section('custom-script') @endsection