Fix 403 and 500 Errors in GoAdmio: Permissions, open_basedir and Symlinks

403 Forbidden and 500 Internal Server Error are the two vaguest messages on the web. On GoAdmio they almost always come from a short list, and the error log names the culprit once you know where to look.

First: read the log

The account’s error log converts “500” into a sentence: permission denied, open_basedir restriction, syntax error in .htaccess, or a PHP fatal. Five seconds of log beats five theories.

Cause 1: Permissions and ownership

Files uploaded by root, restored from backups or moved by hand often end up owned wrong, and the web server politely refuses to read them (403) or PHP dies trying (500). The one-click cure: Accounts & Plans » Fix Permissions. Folders should be 755, files 644, and everything owned by the account.

Cause 2: open_basedir doing its job

Security » Open Basedir Settings fences PHP inside the account. Code that reaches outside its home (an include pointing at another account’s path, a temp dir outside the fence) gets blocked on purpose. The fix is correcting the path, not disabling the fence; loosen open_basedir only with a reason you can write down.

Cause 3: Symlink rules

Sites deployed with symlinks (common with release-style deploys) can hit the web server’s symlink-follow rules, producing 403s. Make sure links point inside the account and the target’s permissions are right; the error log says exactly which path offended.

Cause 4: .htaccess syntax

One bad line in .htaccess 500s the entire site instantly. If errors began right after an edit, rename the file to test. Restore it line by line; the one that kills the site is your answer. Directives that belong server-side, misplaced here, are repeat offenders.

Cause 5: PHP version surprises

A site switched to a newer PHP can 500 on removed functions. The log shows the fatal; the MultiPHP guide covers the safe switch-and-verify routine.

Log first, permissions second, everything else third. More in the docs and at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *