Can no longer access my newly created Elgg site - plz help!

Hi Elgg community,

This is my first post and I am complete Elgg beginner.  But hopefully, with time, I will be able to give back to Elgg community.  Thanks in advance for your help.

I recently installed Elgg at my domain www.goodvibekarmatribe.com.  I soon found out that I could log into my Elgg site at "www.goodvibekarmatribe.com/elgg/admin" and administer it from there.  Over the past few days, I have been adding some test users and experimenting with a few features, and I changed the banner at the top to read "good vibe karma tribe" instead of "My Elgg site".  One thing that was bugging me was that if I went directly to the domain www.goodvibekarmatribe.com, it still read "My Elgg site", and so I had to at least add "/Elgg" to the URL to see the platform that I had been customizing.

Yesterday, I was experimenting with the settings on my elgg admin page.  I changed something to do with the "site url" from "www.goodvibekarmatribe.com/elgg" to "www.goodvibekarmatribe.com"; I thought that by doing this, I would be able to log in normally and see my content from goodvibekarmatribe.com, instead of having to add "/elgg/admin" to log in.  But now neither of those methods works for allowing me to log in.  When I type in www.goodvibekarmatribe.com/elgg/admin, it redirects me to www.goodvibekarmatribe.com, and it says "My Elgg site" at the top.  I am seemingly unable to access my update platform and log in.
 
Any thoughts?

 

Thanks very much for time and help,

Dave

  • You've installed Elgg on your server in the subdirectory "elgg" within the so called document root directory. The document root directory is the path on the server that is mapped to your domain "www.goodvibekarmatribe.com". If you create a directory (e.g. "elgg") within the document root directory to install Elgg within it (the place where you copy the files of the Elgg installation to), the correct site url of your Elgg installation would be "www.goodvibekarmatribe.com/elgg". So, it's not surprising that the login worked on "www.goodvibekarmatribe.com/elgg" before and does no longer work now after changing the site url to "www.goodvibekarmatribe.com". Elgg is looking for it's files now directly in the document root directory and no longer in the subdirectory of Elgg.

    If you want the site url of your Elgg installation to be "www.goodvibekarmatribe.com" and not "www.goodvibekarmatribe.com/elgg", you could move the content of the "elgg" directory one level higher into the document root directory. Then it might already be possible again to login to your site, because the currently set site url fits with the location of the Elgg files again. You might need to adjust the RewriteBase variable in Elgg's .htaccess file though, if you have previously modified it. If you haven't made any changes, this should not be necessary.

    If you might want to have different things beside Elgg on your server at any time in the future, it might be better though to leave the Elgg files in the "elgg" subdirectory. So, if you don't want to move your files (or just don't want to move the Elgg files just now but first be able to log in again), you need to fix the currently set site url. As you can't log in currently, you will have to make the necessary change directly in the database of your site for example with phpmyadmin. The site url is saved in the url column in the "elgg_sites_entity" table (most likely there is only one row in this table). Change the url entry from "www.goodvibekarmatribe.com" to "www.goodvibekarmatribe.com/elgg/" and the login should work again (at url "www.goodvibekarmatribe.com/elgg"). If modifying the database directly, it might be best to make a backup first.

  • Hi iionly,

    Thanks very much for the explanation.  I was able to regain access by updating the db, and then I also moved my files into the root directory, re-updated the db, and now everything is set-up as I'd hoped.

    I really appreciate it!

    Dave

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking