以下裝完Nextcloud後,安全及設定警告內的一些警告提示,有些提示內已經教怎麼做了,一些要自己爬。

There are some warnings regarding your setup.

  • The PHP OPcache is not properly configured. For better performance it is recommended to use the following settings in the php.ini:
  • opcache.enable=1
  • opcache.enable_cli=1
  • opcache.interned_strings_buffer=8
  • opcache.max_accelerated_files=10000
  • opcache.memory_consumption=128
  • opcache.save_comments=1
  • opcache.revalidate_freq=1

嘗試直接設定 /etc/php.d/10-opcache.ini 沒作用,仍舊跳提示。
所以在 php.ini 加入opcache設定
zend_extension=opcache.so 及上面那些
並註解掉10-opcache.ini內的設定,否則無法成功

The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running “occ db:add-missing-indices” those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster.

  • Missing index “owner_index” in table “oc_share”.
  • Missing index “initiator_index” in table “oc_share”.

#sudo -u nginx ./occ db:add-missing-indices

Some columns in the database are missing a conversion to big int. Due to the fact that changing column types on big tables could take some time they were not changed automatically. By running ‘occ db:convert-filecache-bigint’ those pending changes could be applied manually. This operation needs to be made while the instance is offline. For further details read the documentation page about this.

  • filecache.mtime
  • filecache.storage_mtime

#sudo -u nginx ./occ db:convert-filecache-bigint

This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them.

  • imagick

#yum install -y php-imagick

The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running “occ db:add-missing-indices” those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster.

  • Missing index “twofactor_providers_uid” in table “oc_twofactor_providers”.
  • Missing index “version” in table “oc_whats_new”.
  • Missing index “cards_abid” in table “oc_cards”.
  • Missing index “cards_prop_abid” in table “oc_cards_properties”.

#sudo -u nginx ./occ db:add-missing-indices

  • MySQL is used as database but does not support 4-byte characters. To be able to handle 4-byte characters (like emojis) without issues in filenames or comments for example it is recommended to enable the 4-byte support in MySQL. For further details read the documentation page about this.

累了,明天再試

其他先前都處理了,下次新安裝時再補