description |
---|
Nextcloud is an open source, self-hosted file share and communication platform. Access & sync your files, contacts, calendars & communicate and collaborate across your devices. |
Live demo: https://try.nextcloud.com/
Jalankan perintah dibawah ini dalam direktori Nextcloud.
/opt/rh/{PHP_VERSION}/root/bin/php occ {OCC_COMMMAND}
Pesan lengkap problemnya adalah, Some files have not passed the integrity check. Further information on how to resolve this issue can be found in the documentation.
Cara penyelesaiannya,
- Buka link
List of invalid files…
dan lihat file/folder apa saja yang ditampilkan. - Verifikasi keberadaan file tersebut, dan hapus.
Pesan lengkap problemnya adalah, 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.
Cara penyelesaiannya,
-
Login ke
mysql
(jgn menggunakanroot
). -
Ketik
show variables like 'innodb_file_format';
lalu cek kolom Value apakah =Barracuda
. Jika benar, lanjutkan ke langkah nomor5
. -
Apabila Value ternyata justru =
Antelope
, edit konfigurasi file/etc/mysql/conf.d/mysql.cnf
, tambahkan kode dibawah ini.[mysqld] innodb_large_prefix=true innodb_file_format=barracuda innodb_file_per_table=1
-
Login ke
mysql
dan cek lagi apakah sudah berubah. -
Jika sudah, jalankan perintah berikut.
ALTER DATABASE {DB_NAME} CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
-
Keluar dari
mysql
, jalankan perintah dibawah ini secara berurutan dari dalam path tempat Nextcloud.sudo -u {USERNAME} /opt/rh/{PVP_VERSION}/root/bin/php occ config:system:set mysql.utf8mb4 --type boolean --value="true" sudo -u {USERNAME} /opt/rh/{PVP_VERSION}/root/bin/php occ maintenance:repair
Pesan lengkap problemnya adalah, The "X-Content-Type-Options" HTTP header is not set to "nosniff". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.
Cara penyelesaiannya,
-
Dari terminal, jalankan perintah berikut.
curl -vvv https://URL_NEXTCLOUD
-
Pastikan entri
X-Content-Type-Options: nosniff
ada disitu. -
Jika ternyata entri tersebut muncul beberapa kali, periksa file
/etc/httpd/conf/httpd.conf
. Kemungkinan entri ini pernah ada sebagai bagian setting-an dari versi yang lama. Hapus jika ada disitu.
Pesan lengkap problemnya adalah, The "X-Robots-Tag" HTTP header is not set to "none". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.
Cara penyelesaiannya,
-
Dari terminal, jalankan perintah berikut.
curl -vvv https://URL_NEXTCLOUD
-
Pastikan entri
X-Robots-Tag: none
ada disitu. -
Jika ternyata entri tersebut muncul beberapa kali, periksa file
/etc/httpd/conf/httpd.conf
. Kemungkinan entri ini pernah ada sebagai bagian setting-an dari versi yang lama. Hapus jika ada disitu.
Pesan lengkap problemnya adalah, SQLite is currently being used as the backend database. For larger installations we recommend that you switch to a different database backend. This is particularly recommended when using the desktop client for file synchronisation. To migrate to another database use the command line tool: 'occ db:convert-type', or see the documentation ↗.
Cara penyelesaiannya,
-
Buat db mysql baru.
-
Jalankan perintah berikut pada folder Nextcloud diinstal.
sudo -u {USERNAME} /opt/rh/{PVP_VERSION}/root/bin/php occ db:convert-type --all-apps mysql {DB_USERNAME} localhost {DB_NAME}
-
Masukkan pass db jika diminta.
Pesan lengkap problemnya adalah, 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.
Cara penyelesaiannya,
Jalankan perintah berikut pada folder Nextcloud diinstal.
sudo -u {USERNAME} /opt/rh/{PVP_VERSION}/root/bin/php occ db:convert-filecache-bigint
Pesan lengkap problemnya adalah, The PHP OPcache is not properly configured. For better performance we recommend to use following settings in the php.ini:
Cara penyelesaiannya,
- Edit file
/etc/opt/rh/{PHP_VERSION}/php.d/10-opcache.ini
sesuaikan dengan konfigurasi yang disarankan pada halaman admin Nextcloud. - Jangan lupa aktifkan
opcache.enable_cli=1
juga. - Simpan, dan restart dengan
systemctl restart httpd
.
Pesan lengkap problemnya adalah, 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.
Cara penyelesaiannya,
Jalankan perintah berikut pada folder Nextcloud diinstal.
sudo -u {USERNAME} /opt/rh/{PVP_VERSION}/root/bin/php occ db:add-missing-indices
Pesan lengkap problemnya adalah,
The database is missing some optional columns. Due to the fact that adding columns on big tables could take some time they were not added automatically when they can be optional. By running "occ db:add-missing-columns" those missing columns could be added manually while the instance keeps running. Once the columns are added some features might improve responsiveness or usability.
Cara penyelesaiannya,
Jalankan perintah berikut pada folder instalasi Nextcloud.
sudo -u {USERNAME} /opt/rh/{PVP_VERSION}/root/bin/php occ db:add-missing-columns
Pesan lengkap problemnya adalah,
This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them.
Cara penyelesaiannya,
-
Install modul PHP yang diminta. Contoh,
sudo yum install -y php7.0-gmp
-
Cari tahu lokasi file
php.ini
dalam server dengan perintah,php --ini
-
Kemudian tambahkan pada file
php.ini
baris dibawah, pada bagian Dynamic Extension.extension=php_gmp.so
-
Langkah terakhir, restart
httpd
dengan perintah berikut.systemctl restart httpd