[Eisfair] [E1 4.9.210-eisfair-64-VIRT] NextCloud einrichten

Marcus Röckrath marcus.roeckrath at gmx.de
Sa Okt 23 13:25:03 CEST 2021


Hallo Martin,

Martin Faderbauer wrote:

>> Checking configuration file ...
>> Activate configuration now (y/n) [yes]? y
>> nextcloud version (eisfair-64): 1.12.2
>> Database type  : mysql (mysql)
>> Database server: localhost:3306
>> Trusted domain(s): ---->Gelöscht<-----
>> Apache2 SSL support: enabled
>> MySQL PHP7-WEB support: enabled
>> MySQL PHP7-CLI support: enabled
>> MySQL support: Mail support: enabled
>> PHP7-WEB APC cache: enabled
>> PHP7-WEB Redis cache: enabled
>> PHP7-CLI APC cache: enabled
>> PHP7-CLI Redis cache: enabled
>> Redis support: enabled
>> PHP7-WEB memory limit: >= 512M
>> PHP7-CLI memory limit: >= 512M
>> PHP7-CLI configuration access: possible
>> PHP pre-requisites not met, fix it and re-run configuration!
>> Press ENTER to continue

Wenn du möchtest, könnte du in /var/install/config.d/nextcloud.sh ein paar
Ausgabezeilen ergänzen, denn es würde mich mal interessieren, an welcher
Stelle bei dir eine Variable auf 1 (zeigt Fehler an) wechselt:

myecho --pack ${module_name} --info "Memory check: ${config_error}" 
^^^^^^^^^^

if ! check_php_cli_config_access
then
   config_error=1
fi

myecho --pack ${module_name} --info "CLI config check: ${config_error}" 
^^^^^^^^^^

# get list of loaded php modules
php_webmodules=`get_loaded_php_modules 'web'`

myecho --pack ${module_name} --info "Get WEB modules: ${config_error}" 
^^^^^^^^^^

php_climodules=`get_loaded_php_modules 'cli'`

myecho --pack ${module_name} --info "Get CLI modules: ${config_error}" 
^^^^^^^^^^

if [ -z "${php_webmodules}" ]
then
  if [ "${php_package}" = 'php7-fpm' ]
  then
     myecho --pack ${module_name} --error "PHP7FPM-WEB module test failure,
make sure that the web server/fpm is running!"
  else
    myecho --pack ${module_name} --error "PHP${php_major_version}-WEB module
test failure, make sure that the web server is running!"
  fi
  config_error=1
fi

myecho --pack ${module_name} --info "Loaded WEB modules: ${config_error}" 
^^^^^^^^^^

if [ -z "${php_climodules}" ]
then
  myecho --pack ${module_name} --error "PHP${php_major_version}-CLI module
test failure, make sure that the cli program exists!"
  config_error=1
fi

myecho --pack ${module_name} --info "Loaded CLI modules: ${config_error}" 
^^^^^^^^^^

# imagick - this module is required by the theming app of
#           Nextcloud 13.x
# intl    - this module is required by Nextcloud 10.0.6 and
#           is part of the apache2_php5 v2.0.12svn2018-02-03
#           package
# opcache -
# pcntl   -
for PHP_MOD in imagick intl opcache pcntl
do
  if ! is_php_module_loaded "${PHP_MOD}" "${php_webmodules}"
  then
     print_php_module_status 'web' "${PHP_MOD}"
     config_error=1
  fi

  myecho --pack ${module_name} --info "Web: ${PHP_MOD}: ${config_error}" 
^^^^^^^^^^

  if ! is_php_module_loaded "${PHP_MOD}" "${php_climodules}"
  then
     print_php_module_status 'cli' "${PHP_MOD}"
     config_error=1
  fi

  myecho --pack ${module_name} --info "CLI: ${PHP_MOD}: ${config_error}" 
^^^^^^^^^^

done

if[ ${config_error} -eq 1 ]


Die zu ergänzenden myecho-Zeilen haben also immer etwa folgende Gestalt:

myecho --pack ${module_name} --info "...........: ${config_error}" 

Ich habe das oben auch durch

^^^^^^^^^^

gekennzeichnet, was natürlich nicht mit ins Skript kommt.

Vorher das Original des Skriptes sichern.

-- 
Gruß Marcus
[eisfair-Team]


Mehr Informationen über die Mailingliste Eisfair