Troubleshoot 403 errors

The 403 HTTP status code means "Forbidden". This means that access is denied, or in other words: the resource is not allowed for some reason. This article aims to help developers troubleshooting 403 errors.

403 error behavior

  • 403 errors will usually be shown on screen immediately
  • 403 errors often occur during setup or after code or configuration changes
  • 403 errors here are often rendered using a fortrabbit error page template

Common reasons and solutions

In most cases this is not a server issue, but a problem with your code and/or configuration. Please check the following common issues first:

No code deployed

A common reason for the 403 page is that no code has been deployed yet. Please deploy some code. See our access methods article to get started.

.htaccess problems

Sometimes 403 errors are caused by issues with .htaccess. Check your .htaccess file. Developers using SFTP often forget to upload that hidden file. See our .htaccess help.

File permissions

Sometimes 403 errors are caused by wrong file permissions. This can happen when you deploy with SFTP or SSH. Make sure that PHP has write permissions for the files composer.json, composer.lock, storage/*, vendor/* and other files. Set the file permissions for those files to 744 with your SFTP client or by SSH. Any *.php files should be executable.

Missing http-auth credentials

If you have used HTTP auth to protect your website from unwanted visitors and someone is trying access that without entering the correct username and password, a 403 access denied error will occur.

DNS issues

Sometimes it takes a while until DNS is propagated. This can be when your App is new, you have upgraded the scaling or you have just routed a domain. Wait a little and try again.

Wrong address

You might have an error with URL. Check for typos in the address bar (URL) of your browser.

It could also be something on our side

It is also possible — although less likely - that this error is caused by a network, hardware or configuration issue on our side, your hosting provider. Please check our status page under status.fortrabbit.com if there are any ongoing maintenance windows or service issues known.

Contacting support

Whether your investigation (see above) leads to possible service issues on our side, or you are stuck debugging the issue on your own, don't hesitate to contact us.

Please include logs and additional information with your support request.

Further reading

Craft CMS

Install guides

Develop & deploy

Teamwork

Platform

Troubleshooting

Stacks

Tips & tricks

Need individual help?
Learn about Company plans ›
Looking for an old article?
See the full list of articles ›
Found an error?
Contribute on GitHub ›