We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28980
    • 4 Posts
    After setting up my page, I am getting HTTP 500s whenever trying to access anything that is served by MODx.
    However, the response body is returned as normal, i.e. you do not see the error at first look.
    After logging in as the admin user into the manager backend, the pages are served normally, with a 200 response code. CSS/images under assets are served normally all the time.

    Some more info:
    PHP Version 5.2.6-1+lenny3 (running as CGI/FastCGI - with suexec, I think)
    Apache/2.2.9
    Linux 2.6.26-1-686 (Debian lenny)
    MySQL Version 5.0.51a-24+lenny1
    No tables > 1MB
    MODx Version 0.9.6.3 rev 4565
    No changes made to anything that is not intended to be changed (I believe)
    No page works, regardless of snippets (even empty templates do not work)

    Plugins:
    * FileDownloadPlugin- v1.2
    * Bottom Button Bar
    * Forgot Manager Login
    * HideEditor
    * Image TV Preview - 1.2.0.4
    * Inherit Parent Template
    * PHx
    * disabled: QuickEdit
    * Search Highlighting 1.3
    * TinyMCE

    Because of suexec, I tried to change the permissions of the index.php file, but the behaviour is identical, no matter whether it is chmodded to 777, 700 or 500.

    Any ideas? I’m kinda stuck here...
    • A few possibilities. Are you using the .htaccess file (the one in the root as well as the one in the /manager folder)?

      Do you have the Options +FollowSymlinks line uncommented?

      Is there a .htaccess file in a directory before your MODx installation that has the rewrite engine started already?

      As a rule, whever I get errors like that I first turn off friendly URLs and rename the .htaccess file to ht.access just to see if the site works at all.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
      • If your using suexec the permission needs to be 644 files and 755 folders. That’s one of the common reasons for 500 errors followed by issues with your .htaccess file so if the above doesn’t fix the problem try renaming the .htaccess file for a moment to disable it.
          Patrick | Server Wrangler
          About Me: Website | TweetsMODX Hosting
          • 28980
          • 4 Posts
          Thanks for your suggestions!
          However, it was something entirely different...

          I accidentally included the <?php .. ?> Tags when pasting the code for the FileDownloadPlugin.
          .htaccess and permissions were all fine.