Hi all!
I'm trying to install Moodle on Amazon AWS hosting.
I've followed this tutorial: https://www.vultr.com/docs/how-to-install-moodle-on-centos-7
On Amazon AWS, I've opened the ports:
Type | Protocol | Port range | Source | Description - optional |
---|---|---|---|---|
HTTP | TCP | 80 | 0.0.0.0/0 | - |
HTTP | TCP | 80 | ::/0 | - |
SSH | TCP | 22 | 0.0.0.0/0 | - |
HTTPS | TCP | 443 | 0.0.0.0/0 | - |
HTTPS | TCP | 443 | ::/0 | - |
When I'm trying to access my site, I've got the error: "Too many redirect"
Checking the access_log:
(redacted: My IP) - - [12/Mar/2021:06:58:46 +0000] "GET / HTTP/1.1" 303 1491
(redacted: My IP) - - [12/Mar/2021:06:58:46 +0000] "GET / HTTP/1.1" 303 1491
(redacted: My IP) - - [12/Mar/2021:06:58:47 +0000] "GET / HTTP/1.1" 303 1491
(redacted: My IP) - - [12/Mar/2021:06:58:47 +0000] "GET / HTTP/1.1" 303 1491
(redacted: My IP) - - [12/Mar/2021:06:58:48 +0000] "GET / HTTP/1.1" 303 1491
(redacted: My IP) - - [12/Mar/2021:06:58:48 +0000] "GET / HTTP/1.1" 303 1491
... (same line goes on)
My database looks like this:
MariaDB [moodle]> SELECT name, value FROM mdl_config WHERE name IN ('forcelogin','alternateloginurl'); +-------------------+-------+ | name | value | +-------------------+-------+ | alternateloginurl | | | forcelogin | 0 | +-------------------+-------+
What I've tried:
- I've deleted the cache inside "moodledata"
- I've deleted the cookies in the browser
- I've changed the permissions code for the "moodle" folder:
sudo chmod -R 0755 /var/www/html/moodle sudo find /var/www/html/moodle -type f -exec chmod 0644 {} \;
Thanks a lot!