Page 1 of 1

403 Forbidden when trying to upgrade

Posted: 04 Mar 2026, 06:02
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.

Re: 403 Forbidden when trying to upgrade

Posted: 06 Mar 2026, 12:02
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.