0

I have created a moodle website on a shared webhosting using cpanel: https://class.rafiee.net

I also have created a Nextcloud on this hosting : https://cloud.rafiee.net

I followed all configurations explained [Here][1] and [Here][2] to integrate Nextcloud to be as an Repository in my Moodle website.

Everything worked fine, and I could log in to my Nextcloud account in Moodle. However, I can't see my files. After searching forum for hours, I found this note:

Authentication seems to have succeeded, but the filepicker shows "There are no files". It is possible that HTTPS is not configured correctly on the Nextcloud end. You need a valid and trusted certificate for your Nextcloud server! A self-signed certificate will not work. Unlike in the browser, you cannot manually "trust" a self-signed server certificate. You should also check that the Apache modules "rewrite", "headers" and "env" are installed and enabled in the Nextcloud server.

This is exactly my issue, I can login successfully, but I can't see my files there. I created a ticket to my hosting admin and he sent me Apache report:

[root@nl-s2 ~]# httpd -M | grep rewrite
 rewrite_module (shared)
[root@nl-s2 ~]# httpd -M | grep headers
 headers_module (shared)
[root@nl-s2 ~]# httpd -M | grep env
 setenvif_module (shared)

So, as far as I understand, everything is fine. So, my guess is that the problem related to my certificate. I use free SSL certificate which will be extended every three month by my hosting. Is it related to my ssl certificate?

I hope someone explain me the issue clearly since I'm not very expert in such a problem. Thanks in adnace. [1]: https://docs.moodle.org/401/en/Nextcloud_repository [2]: https://docs.moodle.org/401/en/OAuth_2_Nextcloud_service#Nextcloud_configuration

Majid
  • 421
  • 6
  • 19

0 Answers0