Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • jjmpsp replied on the discussion topic 500 internal error
    Hey again guys, thank you for your replies. I have been messing around with this again for a few hours, and it turns out that it was the .htaccess file that was causing the server problems! After a lot of trial and error I have discovered that the... view reply
  • jjmpsp replied on the discussion topic 500 internal error
    Hey there iionly, thanks for the reply. I just tried enabling the curl extension by following the instructions outlined in that thread, however the problem persists. Is there any way of debugging what is happening? I also just tried... view reply
  • jjmpsp added a new discussion topic 500 internal error in the group Elgg Technical Support
    Hello everyone, new user here! I've been developing websites for many years now, but this is my first time working on a project with a PHP framework. I've messed around with a few elgg demos already, and I have to say that I'm...
    • there's a line in the error log about looking for rewrite.php - which is not a file in elgg.
      if you look in the .htaccess_dist file you will see that rewrite.php is rewritten to install.php
      which means that the .htaccess_dist file is not being used..
      which, if i recall correctly (since i don't use apache any more) means that you need to rename the htaccess_dist file to be .htaccess for apache to use it. ;)

    • I just viewed again the video and noticed you edit htaccess_dist and not yet .htaccess. As Ura said Apache is looking for .htaccess. If the directory permissions prevent Elgg to create the .htaccess file (and maybe later also settings.php in the engine subdirectory) the change you made on RewriteBase will not work. You can create create .htaccess yourself by copying / renaming htaccess_dist to .htaccess and then modify RewriteBase in .htaccess.

    • Hey again guys, thank you for your replies.

      I have been messing around with this again for a few hours, and it turns out that it was the .htaccess file that was causing the server problems! After a lot of trial and error I have discovered that the following lines will cause the server to return a 500 error:

       

      ## Apache2 deflate support if available
      ##
      ## Important note: mod_headers is required for correct functioning across proxies.
      ##
      <IfModule mod_deflate.c>
      AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4\.[0678] no-gzip
      BrowserMatch \bMSIE !no-gzip

      <IfModule mod_headers.c>
      Header append Vary User-Agent env=!dont-vary
      </IfModule>

      # The following is to disable compression for actions. The reason being is that these
      # may offer direct downloads which (since the initial request comes in as text/html and headers
      # get changed in the script) get double compressed and become unusable when downloaded by IE.
      SetEnvIfNoCase Request_URI action\/* no-gzip dont-vary
      SetEnvIfNoCase Request_URI actions\/* no-gzip dont-vary

      </IfModule>

      After removing these, the installation worked fne. 

      Thanks for your help!

      Joel

  • jjmpsp joined the group Elgg Technical Support