403 on my JS and CSS

Hi, it isn’t my first time installing MIAB, and I faced a strange issue this time.

  1. logged in as root
  2. ran curl -s https://mailinabox.email/setup.sh | sudo -E bash

Everything installed correctly, but admin page does not load properly, after some checks
https://x.x.x.x/admin/assets/bootstrap/css/bootstrap.min.css and other assets are returning 403.

Any ideas? Thank you.

In requesting for SSL certs, my .well-known folder was also 403 and I have re-installed like 3 times… would be most grateful if anyone has an idea

For this problematic installation /usr/local/lib/mailinabox/vendor is drwx------ instead of drwxr-xr-x like my other installation.

Any ideas?

So what happens if you:

  • Restart nginx: sudo systemctl restart nginx
  • Restart mailinabox: sudo systemctl restart mailinabox
  • Reboot the box

Any clues to be seen in sudo journalctl -u mailinabox?

I think a reboot will also restart both nginx and mailinabox, correct? So I had rebooted the box several times, permissions remain wrong.

Let me come back on journalctl-u mailinabox

No clues in journalctl -u mailinabox, just normal startup and SSL provisioning stuff.

Anyway I have identified 2 folders that had bad permissions resulting in /admin not being able to function, my fix was to chmod them again

  1. /usr/local/lib/mailinabox/vendor 0664 to files, 0775 to folders
  2. /home/user-data 0664 to files, 0775 to folders (before requesting for SSL certs)

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