Claudius

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • Claudius added a new discussion topic Login Page Access in the group Elgg Technical Support
    Hello,   I have installed elgg on WAMP 3.2.3 and have attempted to allow public http access.  I get the login page with an error message telling me that I don't have access permission to the Login page however, if I click on the...
    • Maybe the issue is connected with the site url you used when installing your site not being exactly the same as the url you now use to visit the login page (as opposed when you go via the register page as you are redirected to the site url).

      With "not exactly the same" I mean that it could be a difference in "http" vs. "https" and/or in one case use "www" and not in the other way. This could explain why there's a mismatch in the session cookie created when login if the url in the cookie is not the same as the site url.

      You can check the site url in elgg-config/settings.php. Then you can try if you still have the problem when using exactly this url in the browser. To get it working with different urls being used getting redirected to the site url you would have to add some rewrite rules to Elgg's .htaccess file, e.g.

      # If your users receive the message "Sorry, logging in from a different domain is not permitted"
      # you must make sure your login form is served from the same hostname as your site pages.
      # See http://learn.elgg.org/en/stable/appendix/faqs/general.html#login-token-mismatch for more info.
      #
      # If you must add RewriteRules to change hostname, add them directly below (above all the others)

      # http to https
      # exclude subdomains
      RewriteCond %{HTTP_HOST} ^(www\.)?SITE\.URL$ [NC]
      RewriteCond %{HTTPS} off
      RewriteRule ^ https://www.SITE.URL%{REQUEST_URI} [NC,L,R]
      # add www on ssl
      RewriteCond %{HTTPS} on
      RewriteCond %{HTTP_HOST} !^www\.
      RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [NC,L,R]

      That's what I use on my site, so you might need to adjust it as explained in the link included in the comment depending if you use www or not in your site url and use SSL or not on your site. In any case you would need to provide your site url in the rules.

  • Claudius replied on the discussion topic Public Access on WAMP 3.2.3
    I saw this exchange earlier in the day but thanks for the offer.  What Apache system are you running? view reply
  • Claudius added a new discussion topic Public Access on WAMP 3.2.3 in the group General Discussion
    Has anyone installed Elgg on WAMP 3.2.3? Has anyone edited "httpd.conf" or "httpd-vhosts.conf" on WAMP 3.2.3 for public access? I would give anybody a shiny new nickel if they would tell me how to enable public access on...
  • Claudius added a new discussion topic Public Access in the group General Discussion
    Please let me apologize in advance for upsetting the taboos that I am undoubtedly upsetting. I'm a hobbyist.  I have a server machine that I did a clean install of Win 10 Pro ver. 1909. I'm running WAMP64, 3.2.3, Apache 2.4.46,...
    • In these cases, first you need to do is check your server error logs.

      Also, don't ask about your problems if you runned Elgg on the localhost.

      It's a very different situation instead of hosting.

    • "localhost" always refers to the computer you are currently using. If you used "localhost" as site url of your Elgg installation and try to access the site from the same computer the site is installed on it should work. But if you try to access the site from another computer "localhost" refers to this other computer so it does not fully work as the routing can't get resolved correctly.

      If you only want to set up a test site on your local computer but still want to access it from other computers you could either set up a nameserver in your local network or make use of the hosts file of your operating sytem to resolve a "domain name" to the computer's IP addresses of your network. Works best (maybe only works) with fixed IP addresses used in the network. The domain name should be some fantasy domain, e.g. "mysite.home.nil" not used on the Internet to avoid issues. And you would have to enter the domain name and corresponding IP address on any computer in your network you want to access your test site from. Then install your Elgg site with the domain name you entered in the hosts file as site url. How to find your hosts file? Try Google (I have actually no idea because I've totally given up Windows).

      If you want to access your site from a computer not within your local network it won't work with such a hosts file entry. In this case you would have to make use of some dyndns service. But as such a service is likely not to be found for free anymore you might think about hosting your site somewhere for real on a webhoster.

  • Claudius joined the group General Discussion
  • Claudius joined the group Elgg Technical Support