403 Forbidden when trying to upgrade

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
gurksallad
Posts: 30
Joined: 30 Jan 2020, 07:42

403 Forbidden when trying to upgrade

Post by gurksallad »

We got v2.26.2 currently and host provider upgraded to PHP 8.4 (from 8.0) which broke some SOAP-related stuff. Seeing that https://github.com/mantisbt/mantisbt/pull/2087 was fixed in 2.28.0 I was set to upgrade to that version.

Like with other upgrades I always follow the steps in https://mantisbt.org/docs/master/en-US/ ... preinstall which I did this time as well.

But, when I got to this step:
Execute the upgrade script. From your web browser, access
https://yoursite/mantisbt-NEW/admin/install.php
where mantisbt-NEW is the name of the directory where the new release was extracted
We get "403 forbidden" when trying to do so. Exact message was "You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe". Tried to add a generic .htaccess file but we still got Forbidden to matter what we did. I gave up and rolled back to 2.26.2.

Why does 2.28.0 throw a Forbidden error? I cannot access the error logs since it's on a hosted server so I cannot get the exact details.
gurksallad
Posts: 30
Joined: 30 Jan 2020, 07:42

Re: 403 Forbidden when trying to upgrade

Post by gurksallad »

Well, this was a stupid time-waster of a problem.

The webhoster had set the permissions to the mantis-directory as "rwx------". Setting to "rwxr-xr-x" solved everything.
Post Reply