You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CheckSetupController.php 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. *
  5. * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
  6. * @author Bjoern Schiessle <bjoern@schiessle.org>
  7. * @author Derek <derek.kelly27@gmail.com>
  8. * @author Joas Schilling <coding@schilljs.com>
  9. * @author Ko- <k.stoffelen@cs.ru.nl>
  10. * @author Lukas Reschke <lukas@statuscode.ch>
  11. * @author Morris Jobke <hey@morrisjobke.de>
  12. * @author Robin McCorkell <robin@mccorkell.me.uk>
  13. * @author Roeland Jago Douma <roeland@famdouma.nl>
  14. *
  15. * @license AGPL-3.0
  16. *
  17. * This code is free software: you can redistribute it and/or modify
  18. * it under the terms of the GNU Affero General Public License, version 3,
  19. * as published by the Free Software Foundation.
  20. *
  21. * This program is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. * GNU Affero General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU Affero General Public License, version 3,
  27. * along with this program. If not, see <http://www.gnu.org/licenses/>
  28. *
  29. */
  30. namespace OC\Settings\Controller;
  31. use bantu\IniGetWrapper\IniGetWrapper;
  32. use DirectoryIterator;
  33. use Doctrine\DBAL\DBALException;
  34. use Doctrine\DBAL\Platforms\SqlitePlatform;
  35. use GuzzleHttp\Exception\ClientException;
  36. use OC;
  37. use OC\AppFramework\Http;
  38. use OC\DB\Connection;
  39. use OC\DB\MissingIndexInformation;
  40. use OC\IntegrityCheck\Checker;
  41. use OC\Lock\NoopLockingProvider;
  42. use OC\MemoryInfo;
  43. use OCP\AppFramework\Controller;
  44. use OCP\AppFramework\Http\DataDisplayResponse;
  45. use OCP\AppFramework\Http\DataResponse;
  46. use OCP\AppFramework\Http\RedirectResponse;
  47. use OCP\Http\Client\IClientService;
  48. use OCP\IConfig;
  49. use OCP\IDateTimeFormatter;
  50. use OCP\IDBConnection;
  51. use OCP\IL10N;
  52. use OCP\ILogger;
  53. use OCP\IRequest;
  54. use OCP\IURLGenerator;
  55. use OCP\Lock\ILockingProvider;
  56. use Symfony\Component\EventDispatcher\EventDispatcherInterface;
  57. use Symfony\Component\EventDispatcher\GenericEvent;
  58. /**
  59. * @package OC\Settings\Controller
  60. */
  61. class CheckSetupController extends Controller {
  62. /** @var IConfig */
  63. private $config;
  64. /** @var IClientService */
  65. private $clientService;
  66. /** @var \OC_Util */
  67. private $util;
  68. /** @var IURLGenerator */
  69. private $urlGenerator;
  70. /** @var IL10N */
  71. private $l10n;
  72. /** @var Checker */
  73. private $checker;
  74. /** @var ILogger */
  75. private $logger;
  76. /** @var EventDispatcherInterface */
  77. private $dispatcher;
  78. /** @var IDBConnection|Connection */
  79. private $db;
  80. /** @var ILockingProvider */
  81. private $lockingProvider;
  82. /** @var IDateTimeFormatter */
  83. private $dateTimeFormatter;
  84. /** @var MemoryInfo */
  85. private $memoryInfo;
  86. public function __construct($AppName,
  87. IRequest $request,
  88. IConfig $config,
  89. IClientService $clientService,
  90. IURLGenerator $urlGenerator,
  91. \OC_Util $util,
  92. IL10N $l10n,
  93. Checker $checker,
  94. ILogger $logger,
  95. EventDispatcherInterface $dispatcher,
  96. IDBConnection $db,
  97. ILockingProvider $lockingProvider,
  98. IDateTimeFormatter $dateTimeFormatter,
  99. MemoryInfo $memoryInfo) {
  100. parent::__construct($AppName, $request);
  101. $this->config = $config;
  102. $this->clientService = $clientService;
  103. $this->util = $util;
  104. $this->urlGenerator = $urlGenerator;
  105. $this->l10n = $l10n;
  106. $this->checker = $checker;
  107. $this->logger = $logger;
  108. $this->dispatcher = $dispatcher;
  109. $this->db = $db;
  110. $this->lockingProvider = $lockingProvider;
  111. $this->dateTimeFormatter = $dateTimeFormatter;
  112. $this->memoryInfo = $memoryInfo;
  113. }
  114. /**
  115. * Checks if the server can connect to the internet using HTTPS and HTTP
  116. * @return bool
  117. */
  118. private function isInternetConnectionWorking() {
  119. if ($this->config->getSystemValue('has_internet_connection', true) === false) {
  120. return false;
  121. }
  122. $siteArray = ['www.nextcloud.com',
  123. 'www.startpage.com',
  124. 'www.eff.org',
  125. 'www.edri.org',
  126. ];
  127. foreach($siteArray as $site) {
  128. if ($this->isSiteReachable($site)) {
  129. return true;
  130. }
  131. }
  132. return false;
  133. }
  134. /**
  135. * Checks if the Nextcloud server can connect to a specific URL using both HTTPS and HTTP
  136. * @return bool
  137. */
  138. private function isSiteReachable($sitename) {
  139. $httpSiteName = 'http://' . $sitename . '/';
  140. $httpsSiteName = 'https://' . $sitename . '/';
  141. try {
  142. $client = $this->clientService->newClient();
  143. $client->get($httpSiteName);
  144. $client->get($httpsSiteName);
  145. } catch (\Exception $e) {
  146. $this->logger->logException($e, ['app' => 'internet_connection_check']);
  147. return false;
  148. }
  149. return true;
  150. }
  151. /**
  152. * Checks whether a local memcache is installed or not
  153. * @return bool
  154. */
  155. private function isMemcacheConfigured() {
  156. return $this->config->getSystemValue('memcache.local', null) !== null;
  157. }
  158. /**
  159. * Whether /dev/urandom is available to the PHP controller
  160. *
  161. * @return bool
  162. */
  163. private function isUrandomAvailable() {
  164. if(@file_exists('/dev/urandom')) {
  165. $file = fopen('/dev/urandom', 'rb');
  166. if($file) {
  167. fclose($file);
  168. return true;
  169. }
  170. }
  171. return false;
  172. }
  173. /**
  174. * Public for the sake of unit-testing
  175. *
  176. * @return array
  177. */
  178. protected function getCurlVersion() {
  179. return curl_version();
  180. }
  181. /**
  182. * Check if the used SSL lib is outdated. Older OpenSSL and NSS versions do
  183. * have multiple bugs which likely lead to problems in combination with
  184. * functionality required by ownCloud such as SNI.
  185. *
  186. * @link https://github.com/owncloud/core/issues/17446#issuecomment-122877546
  187. * @link https://bugzilla.redhat.com/show_bug.cgi?id=1241172
  188. * @return string
  189. */
  190. private function isUsedTlsLibOutdated() {
  191. // Don't run check when:
  192. // 1. Server has `has_internet_connection` set to false
  193. // 2. AppStore AND S2S is disabled
  194. if(!$this->config->getSystemValue('has_internet_connection', true)) {
  195. return '';
  196. }
  197. if(!$this->config->getSystemValue('appstoreenabled', true)
  198. && $this->config->getAppValue('files_sharing', 'outgoing_server2server_share_enabled', 'yes') === 'no'
  199. && $this->config->getAppValue('files_sharing', 'incoming_server2server_share_enabled', 'yes') === 'no') {
  200. return '';
  201. }
  202. $versionString = $this->getCurlVersion();
  203. if(isset($versionString['ssl_version'])) {
  204. $versionString = $versionString['ssl_version'];
  205. } else {
  206. return '';
  207. }
  208. $features = (string)$this->l10n->t('installing and updating apps via the app store or Federated Cloud Sharing');
  209. if(!$this->config->getSystemValue('appstoreenabled', true)) {
  210. $features = (string)$this->l10n->t('Federated Cloud Sharing');
  211. }
  212. // Check if at least OpenSSL after 1.01d or 1.0.2b
  213. if(strpos($versionString, 'OpenSSL/') === 0) {
  214. $majorVersion = substr($versionString, 8, 5);
  215. $patchRelease = substr($versionString, 13, 6);
  216. if(($majorVersion === '1.0.1' && ord($patchRelease) < ord('d')) ||
  217. ($majorVersion === '1.0.2' && ord($patchRelease) < ord('b'))) {
  218. return (string) $this->l10n->t('cURL is using an outdated %s version (%s). Please update your operating system or features such as %s will not work reliably.', ['OpenSSL', $versionString, $features]);
  219. }
  220. }
  221. // Check if NSS and perform heuristic check
  222. if(strpos($versionString, 'NSS/') === 0) {
  223. try {
  224. $firstClient = $this->clientService->newClient();
  225. $firstClient->get('https://nextcloud.com/');
  226. $secondClient = $this->clientService->newClient();
  227. $secondClient->get('https://nextcloud.com/');
  228. } catch (ClientException $e) {
  229. if($e->getResponse()->getStatusCode() === 400) {
  230. return (string) $this->l10n->t('cURL is using an outdated %s version (%s). Please update your operating system or features such as %s will not work reliably.', ['NSS', $versionString, $features]);
  231. }
  232. }
  233. }
  234. return '';
  235. }
  236. /**
  237. * Whether the version is outdated
  238. *
  239. * @return bool
  240. */
  241. protected function isPhpOutdated() {
  242. if (version_compare(PHP_VERSION, '7.0.0', '<')) {
  243. return true;
  244. }
  245. return false;
  246. }
  247. /**
  248. * Whether the php version is still supported (at time of release)
  249. * according to: https://secure.php.net/supported-versions.php
  250. *
  251. * @return array
  252. */
  253. private function isPhpSupported() {
  254. return ['eol' => $this->isPhpOutdated(), 'version' => PHP_VERSION];
  255. }
  256. /**
  257. * Check if the reverse proxy configuration is working as expected
  258. *
  259. * @return bool
  260. */
  261. private function forwardedForHeadersWorking() {
  262. $trustedProxies = $this->config->getSystemValue('trusted_proxies', []);
  263. $remoteAddress = $this->request->getRemoteAddress();
  264. if (is_array($trustedProxies) && in_array($remoteAddress, $trustedProxies)) {
  265. return false;
  266. }
  267. // either not enabled or working correctly
  268. return true;
  269. }
  270. /**
  271. * Checks if the correct memcache module for PHP is installed. Only
  272. * fails if memcached is configured and the working module is not installed.
  273. *
  274. * @return bool
  275. */
  276. private function isCorrectMemcachedPHPModuleInstalled() {
  277. if ($this->config->getSystemValue('memcache.distributed', null) !== '\OC\Memcache\Memcached') {
  278. return true;
  279. }
  280. // there are two different memcached modules for PHP
  281. // we only support memcached and not memcache
  282. // https://code.google.com/p/memcached/wiki/PHPClientComparison
  283. return !(!extension_loaded('memcached') && extension_loaded('memcache'));
  284. }
  285. /**
  286. * Checks if set_time_limit is not disabled.
  287. *
  288. * @return bool
  289. */
  290. private function isSettimelimitAvailable() {
  291. if (function_exists('set_time_limit')
  292. && strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
  293. return true;
  294. }
  295. return false;
  296. }
  297. /**
  298. * @return RedirectResponse
  299. */
  300. public function rescanFailedIntegrityCheck() {
  301. $this->checker->runInstanceVerification();
  302. return new RedirectResponse(
  303. $this->urlGenerator->linkToRoute('settings.AdminSettings.index')
  304. );
  305. }
  306. /**
  307. * @NoCSRFRequired
  308. * @return DataResponse
  309. */
  310. public function getFailedIntegrityCheckFiles() {
  311. if(!$this->checker->isCodeCheckEnforced()) {
  312. return new DataDisplayResponse('Integrity checker has been disabled. Integrity cannot be verified.');
  313. }
  314. $completeResults = $this->checker->getResults();
  315. if(!empty($completeResults)) {
  316. $formattedTextResponse = 'Technical information
  317. =====================
  318. The following list covers which files have failed the integrity check. Please read
  319. the previous linked documentation to learn more about the errors and how to fix
  320. them.
  321. Results
  322. =======
  323. ';
  324. foreach($completeResults as $context => $contextResult) {
  325. $formattedTextResponse .= "- $context\n";
  326. foreach($contextResult as $category => $result) {
  327. $formattedTextResponse .= "\t- $category\n";
  328. if($category !== 'EXCEPTION') {
  329. foreach ($result as $key => $results) {
  330. $formattedTextResponse .= "\t\t- $key\n";
  331. }
  332. } else {
  333. foreach ($result as $key => $results) {
  334. $formattedTextResponse .= "\t\t- $results\n";
  335. }
  336. }
  337. }
  338. }
  339. $formattedTextResponse .= '
  340. Raw output
  341. ==========
  342. ';
  343. $formattedTextResponse .= print_r($completeResults, true);
  344. } else {
  345. $formattedTextResponse = 'No errors have been found.';
  346. }
  347. $response = new DataDisplayResponse(
  348. $formattedTextResponse,
  349. Http::STATUS_OK,
  350. [
  351. 'Content-Type' => 'text/plain',
  352. ]
  353. );
  354. return $response;
  355. }
  356. /**
  357. * Checks whether a PHP opcache is properly set up
  358. * @return bool
  359. */
  360. protected function isOpcacheProperlySetup() {
  361. $iniWrapper = new IniGetWrapper();
  362. if(!$iniWrapper->getBool('opcache.enable')) {
  363. return false;
  364. }
  365. if(!$iniWrapper->getBool('opcache.save_comments')) {
  366. return false;
  367. }
  368. if(!$iniWrapper->getBool('opcache.enable_cli')) {
  369. return false;
  370. }
  371. if($iniWrapper->getNumeric('opcache.max_accelerated_files') < 10000) {
  372. return false;
  373. }
  374. if($iniWrapper->getNumeric('opcache.memory_consumption') < 128) {
  375. return false;
  376. }
  377. if($iniWrapper->getNumeric('opcache.interned_strings_buffer') < 8) {
  378. return false;
  379. }
  380. return true;
  381. }
  382. /**
  383. * Check if the required FreeType functions are present
  384. * @return bool
  385. */
  386. protected function hasFreeTypeSupport() {
  387. return function_exists('imagettfbbox') && function_exists('imagettftext');
  388. }
  389. protected function hasMissingIndexes(): array {
  390. $indexInfo = new MissingIndexInformation();
  391. // Dispatch event so apps can also hint for pending index updates if needed
  392. $event = new GenericEvent($indexInfo);
  393. $this->dispatcher->dispatch(IDBConnection::CHECK_MISSING_INDEXES_EVENT, $event);
  394. return $indexInfo->getListOfMissingIndexes();
  395. }
  396. /**
  397. * warn if outdated version of a memcache module is used
  398. */
  399. protected function getOutdatedCaches(): array {
  400. $caches = [
  401. 'apcu' => ['name' => 'APCu', 'version' => '4.0.6'],
  402. 'redis' => ['name' => 'Redis', 'version' => '2.2.5'],
  403. ];
  404. $outdatedCaches = [];
  405. foreach ($caches as $php_module => $data) {
  406. $isOutdated = extension_loaded($php_module) && version_compare(phpversion($php_module), $data['version'], '<');
  407. if ($isOutdated) {
  408. $outdatedCaches[] = $data;
  409. }
  410. }
  411. return $outdatedCaches;
  412. }
  413. protected function isSqliteUsed() {
  414. return strpos($this->config->getSystemValue('dbtype'), 'sqlite') !== false;
  415. }
  416. protected function isReadOnlyConfig(): bool {
  417. return \OC_Helper::isReadOnlyConfigEnabled();
  418. }
  419. protected function hasValidTransactionIsolationLevel(): bool {
  420. try {
  421. if ($this->db->getDatabasePlatform() instanceof SqlitePlatform) {
  422. return true;
  423. }
  424. return $this->db->getTransactionIsolation() === Connection::TRANSACTION_READ_COMMITTED;
  425. } catch (DBALException $e) {
  426. // ignore
  427. }
  428. return true;
  429. }
  430. protected function hasFileinfoInstalled(): bool {
  431. return \OC_Util::fileInfoLoaded();
  432. }
  433. protected function hasWorkingFileLocking(): bool {
  434. return !($this->lockingProvider instanceof NoopLockingProvider);
  435. }
  436. protected function getSuggestedOverwriteCliURL(): string {
  437. $suggestedOverwriteCliUrl = '';
  438. if ($this->config->getSystemValue('overwrite.cli.url', '') === '') {
  439. $suggestedOverwriteCliUrl = $this->request->getServerProtocol() . '://' . $this->request->getInsecureServerHost() . \OC::$WEBROOT;
  440. if (!$this->config->getSystemValue('config_is_read_only', false)) {
  441. // Set the overwrite URL when it was not set yet.
  442. $this->config->setSystemValue('overwrite.cli.url', $suggestedOverwriteCliUrl);
  443. $suggestedOverwriteCliUrl = '';
  444. }
  445. }
  446. return $suggestedOverwriteCliUrl;
  447. }
  448. protected function getLastCronInfo(): array {
  449. $lastCronRun = $this->config->getAppValue('core', 'lastcron', 0);
  450. return [
  451. 'diffInSeconds' => time() - $lastCronRun,
  452. 'relativeTime' => $this->dateTimeFormatter->formatTimeSpan($lastCronRun),
  453. 'backgroundJobsUrl' => $this->urlGenerator->linkToRoute('settings.AdminSettings.index', ['section' => 'server']) . '#backgroundjobs',
  454. ];
  455. }
  456. protected function getCronErrors() {
  457. $errors = json_decode($this->config->getAppValue('core', 'cronErrors', ''), true);
  458. if (is_array($errors)) {
  459. return $errors;
  460. }
  461. return [];
  462. }
  463. protected function isPhpMailerUsed(): bool {
  464. return $this->config->getSystemValue('mail_smtpmode', 'php') === 'php';
  465. }
  466. protected function hasOpcacheLoaded(): bool {
  467. return function_exists('opcache_get_status');
  468. }
  469. /**
  470. * Iterates through the configured app roots and
  471. * tests if the subdirectories are owned by the same user than the current user.
  472. *
  473. * @return array
  474. */
  475. protected function getAppDirsWithDifferentOwner(): array {
  476. $currentUser = posix_getpwuid(posix_getuid());
  477. $appDirsWithDifferentOwner = [];
  478. foreach (OC::$APPSROOTS as $appRoot) {
  479. if ($appRoot['writable'] === true) {
  480. $appDirsWithDifferentOwner = array_merge(
  481. $appDirsWithDifferentOwner,
  482. $this->getAppDirsWithDifferentOwnerForAppRoot($currentUser, $appRoot)
  483. );
  484. }
  485. }
  486. sort($appDirsWithDifferentOwner);
  487. return $appDirsWithDifferentOwner;
  488. }
  489. /**
  490. * Tests if the directories for one apps directory are writable by the current user.
  491. *
  492. * @param array $currentUser The current user
  493. * @param array $appRoot The app root config
  494. * @return string[] The none writable directory paths inside the app root
  495. */
  496. private function getAppDirsWithDifferentOwnerForAppRoot(array $currentUser, array $appRoot): array {
  497. $appDirsWithDifferentOwner = [];
  498. $appsPath = $appRoot['path'];
  499. $appsDir = new DirectoryIterator($appRoot['path']);
  500. foreach ($appsDir as $fileInfo) {
  501. if ($fileInfo->isDir() && !$fileInfo->isDot()) {
  502. $absAppPath = $appsPath . DIRECTORY_SEPARATOR . $fileInfo->getFilename();
  503. $appDirUser = posix_getpwuid(fileowner($absAppPath));
  504. if ($appDirUser !== $currentUser) {
  505. $appDirsWithDifferentOwner[] = $absAppPath . DIRECTORY_SEPARATOR . $fileInfo->getFilename();
  506. }
  507. }
  508. }
  509. return $appDirsWithDifferentOwner;
  510. }
  511. /**
  512. * @return DataResponse
  513. */
  514. public function check() {
  515. return new DataResponse(
  516. [
  517. 'isGetenvServerWorking' => !empty(getenv('PATH')),
  518. 'isReadOnlyConfig' => $this->isReadOnlyConfig(),
  519. 'hasValidTransactionIsolationLevel' => $this->hasValidTransactionIsolationLevel(),
  520. 'outdatedCaches' => $this->getOutdatedCaches(),
  521. 'hasFileinfoInstalled' => $this->hasFileinfoInstalled(),
  522. 'hasWorkingFileLocking' => $this->hasWorkingFileLocking(),
  523. 'suggestedOverwriteCliURL' => $this->getSuggestedOverwriteCliURL(),
  524. 'cronInfo' => $this->getLastCronInfo(),
  525. 'cronErrors' => $this->getCronErrors(),
  526. 'serverHasInternetConnection' => $this->isInternetConnectionWorking(),
  527. 'isMemcacheConfigured' => $this->isMemcacheConfigured(),
  528. 'memcacheDocs' => $this->urlGenerator->linkToDocs('admin-performance'),
  529. 'isUrandomAvailable' => $this->isUrandomAvailable(),
  530. 'securityDocs' => $this->urlGenerator->linkToDocs('admin-security'),
  531. 'isUsedTlsLibOutdated' => $this->isUsedTlsLibOutdated(),
  532. 'phpSupported' => $this->isPhpSupported(),
  533. 'forwardedForHeadersWorking' => $this->forwardedForHeadersWorking(),
  534. 'reverseProxyDocs' => $this->urlGenerator->linkToDocs('admin-reverse-proxy'),
  535. 'isCorrectMemcachedPHPModuleInstalled' => $this->isCorrectMemcachedPHPModuleInstalled(),
  536. 'hasPassedCodeIntegrityCheck' => $this->checker->hasPassedCheck(),
  537. 'codeIntegrityCheckerDocumentation' => $this->urlGenerator->linkToDocs('admin-code-integrity'),
  538. 'isOpcacheProperlySetup' => $this->isOpcacheProperlySetup(),
  539. 'hasOpcacheLoaded' => $this->hasOpcacheLoaded(),
  540. 'phpOpcacheDocumentation' => $this->urlGenerator->linkToDocs('admin-php-opcache'),
  541. 'isSettimelimitAvailable' => $this->isSettimelimitAvailable(),
  542. 'hasFreeTypeSupport' => $this->hasFreeTypeSupport(),
  543. 'missingIndexes' => $this->hasMissingIndexes(),
  544. 'isSqliteUsed' => $this->isSqliteUsed(),
  545. 'databaseConversionDocumentation' => $this->urlGenerator->linkToDocs('admin-db-conversion'),
  546. 'isPhpMailerUsed' => $this->isPhpMailerUsed(),
  547. 'mailSettingsDocumentation' => $this->urlGenerator->getAbsoluteURL('index.php/settings/admin'),
  548. 'isMemoryLimitSufficient' => $this->memoryInfo->isMemoryLimitSufficient(),
  549. 'appDirsWithDifferentOwner' => $this->getAppDirsWithDifferentOwner(),
  550. ]
  551. );
  552. }
  553. }