Installed Lets Encrypt Certbot and now neither frontend nor backend is accessible

I followed this documentation and installed Certbot and now Magento 2 is not accessible.

Getting the following error in Chrome Console
Failed to load resource: the server responded with a status of 500 ()

To check, I dropped an HTML file in the root and I am able to access it in the browser, but not the index.php. I have also updated the .conf apache 2 file to make sure index.php comes first.

Magento 2.4.5-p1
Porto Theme
Ubuntu 22.04, AWS EC2 Instance, 8GB

Please help. Thanks in advance.

This article helped.

And also deleting the following values in the core config data

  • web/cookie/cookie_domain
  • web/cookie/cookie_httponly
  • web/cookie/cookie_lifetime
  • web/cookie/cookie_path

Thanks For this information

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.