Muncul Error Setelah Install Nextcloud 13

Muncul Error Setelah Install Nextcloud 13

Muncul Error Setelah Install Nextcloud 13, ini bisa di cek pada menu Settings > Basic Settings > Security > setup warnings. Ada beberapa muncul error ketika saadwebid melakukkan instalasi seperti berikut:

  1. The “Strict-Transport-Security” HTTP header is not set to at least “15552000” seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips.
  2. Your web server is not properly set up to resolve “/.well-known/caldav”. Further information can be found in the documentation.
  3. Your web server is not properly set up to resolve “/.well-known/carddav”. Further information can be found in the documentation.
  4. 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

    Please double check the installation guides ↗, and check for any errors or warnings in the log.

Cara Memperbaiki

The “Strict-Transport-Security” HTTP header is not set to at least “15552000” seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips

1. Ubah file httpd.conf dengan perintah berikut:

nano /etc/httpd/conf/httpd.conf

2. Masukan baris berikut setelah

<ifmodule mod_headers.c="">
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</ifmodule>

Contoh:

<virtualhost 139.162.62.27:443="">
SuexecUserGroup "#1005" "#1001"
ServerName drive.saad.web.id
ServerAlias www.drive.saad.web.id
ServerAlias mail.drive.saad.web.id
ServerAlias webmail.drive.saad.web.id
ServerAlias admin.drive.saad.web.id
<ifmodule mod_headers.c="">
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</ifmodule>

3. restart httpd dengan perintah

systemctl restart httpd

Your web server is not properly set up to resolve “/.well-known/caldav”. Further information can be found in the documentation.

1. Buat direktori .well-know pada direktori root nextcloud dan berikan ownership pada direktori

mkdir .well-known

2. Buat direktori caldav pada direktori root nextcloud dan berikan ownership pada direktori

mkdir .well-known/caldav

Your web server is not properly set up to resolve “/.well-known/carddav”. Further information can be found in the documentation.

1. Buat direktori .well-know pada direktori root nextcloud dan berikan ownership pada direktori

mkdir .well-known

2. Buat direktori caldav pada direktori root nextcloud dan berikan ownership pada direktori

mkdir .well-known/carddav

3. Ubah .htaccess pada dokumen root nextcloud, dan masukkan baris berikut, ubah https://drive.saad.web.id/nextcloud. pada contoh berikut dokumen root nextcloud berada di public_html > nextcloud

RewriteRule ^\.well-known/host-meta https://drive.saad.web.id/nextcloud/public.php?service=host-meta [QSA,L]
RewriteRule ^\.well-known/host-meta\.json https://drive.saad.web.id/nextcloud/public.php?service=host-meta-json [QSA,L]
RewriteRule ^\.well-known/webfinger https://drive.saad.web.id/nextcloud/public.php?service=webfinger [QSA,L]
RewriteRule ^\.well-known/carddav https://drive.saad.web.id/nextcloud/remote.php/dav/ [R=301,L]
RewriteRule ^\.well-known/caldav https://drive.saad.web.id/nextcloud/remote.php/dav/ [R=301,L]

4. restart httpd dengan perintah

systemctl restart httpd

The PHP OPcache is not properly configured. For better performance it is recommended to use the following settings in the php.ini:

1. Install OPcache dengan perintah berikut

yum install php-opcache

2. Ubah opcache.ini dengan perintah berikut

nano /etc/opt/rh/rh-php70/php.d/10-opcache.ini

ubah Isi sesuai berikut

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

3. restart httpd dengan perintah

systemctl restart httpd

Selamat Mencoba..

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

×

Hello!

Klik salah satu dibawah untuk chat WhatsApp atau kirim email kepada kami ke info@saad.web.id

× WhatsApp Kami