1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 500 error on addon installation

Discussion in 'Troubleshooting and Problems' started by Talaysen, Dec 25, 2014.

  1. Talaysen

    Talaysen Member

    I've been getting a 500 error on addon installation, for all addons.
    I've set the 'data' and 'internal_data' folders (and subfolders) to '777'.

    Sometimes I get the error the second I click 'Install addon', other times, it'll happen at any point during the run-deferred process. Usually I have to uninstall the addon and re-install it, often two or more times, before it will successfully complete installing an addon.

    Often, when it fails (and I get the 500 error), depending on where it failed, portions of the addon (say, the admin options for that particular addon) will be completely borked.

    This is occurring from a completely clean install of XenForo, on a brand new cPanel account, with no other installed software. This is shared hosting, but I've ran XenForo previously on the same server without this issue.

    This occurs with or without full friendly URLs enabled/disabled, and with/without the appropriate .htaccess in place.

    Any suggestions/tips appreciated, this is driving me bananas. :(
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Can you check the server error log?

    It may shed some light on the error being thrown.

    You can ask your host for help with obtaining the log, if you don't know where it is on the server.
  3. Talaysen

    Talaysen Member

    Hm, is this the 'error_log' from the public_html folder? Or is that specific to XenForo? File is empty.
  4. Talaysen

    Talaysen Member

    I have noticed that for some reason the 'data' and 'internal_data' files keep changing back to 755.
    I've tried setting them through cPanel and through my FTP client, and if I refresh, it's back to 755.

    Hmm, it seems that this only applies to the 'data' and 'internal_data' folders, but not the sub-folders that were modified recursively.
    Last edited: Dec 25, 2014
  5. Brogan

    Brogan XenForo Moderator Staff Member

    The error log is typically in /var/log/httpd or similar.

    If the directory permissions are changing then that is something being applied/forced by the server configuration/host.
  6. Talaysen

    Talaysen Member

    I've filed a ticket with the host, my /logs/ file is empty, so I'm assuming that any logging that's occurring happens outside of what I have access to.
    I'm running out of ideas, and I've been able to replicate the problem on a clean installation several times.

    I'm thinking I'm going to drop LAMP on a VPS and see what kind of results I can get.
    I have to assume that it's something to do with either mod_security, or some other sort of restrictive setting on their service. Shared hosting is my nightmare.
    If they get back to me with a solution, I'll reply with it. This never occurred with this host previously, but it's always possible they updated or added more restrictions to their service in the time that's elapsed.
  7. Talaysen

    Talaysen Member

    Alright, I outlined the issue with my host in a support ticket:

    They responded with the following:

    I had them whitelist the domain in question for this rule and it resolved the issue.
    I've been able to install the remainder of my addons without issue.
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Glad to hear it.

    Mod_security can be a pain - we get a lot of reports related to it but most of the time it is obvious that it's mod_security related as a more "user friendly" error message is shown.
    Talaysen likes this.

Share This Page