Installation Problem

1,786 views
Skip to first unread message

bobwe...@gmail.com

unread,
Apr 5, 2014, 6:59:00 PM4/5/14
to learnin...@googlegroups.com
Hi,

I just installed learninglocker on a windows 8 machine using IIS. The url http://learninglocker/public loads the login page but there are no links to a registration page. I guessed several urls with "register" without success.

I think I am missing something. Only the public folder has the index.php that boostraps the application. I am familiar with ASP.NET MVC and AngularJS which use both server-side and client-side routing. Without either an IIS config or a funny url (i.e. learninglocker/public/#/register) I do not understand how the application is supposed to work. This of course, makes it hard to troubleshoot.

Any help would be appreciated! Thanks

Andrew Downes

unread,
Apr 6, 2014, 3:15:21 AM4/6/14
to learnin...@googlegroups.com
The URL should be http://learninglocker/public/register

What happens when you go to that page?

Did you get mongodb running successfully?

Andrew

Bob Weiner Jr

unread,
Apr 8, 2014, 7:48:00 PM4/8/14
to Andrew Downes, learnin...@googlegroups.com
I get a 404 error with http://localhost/learninglocker/public/register, which is what I expect because there is no file or directory in the public folder named register. I verified with github that there should not be. 

Mongo is running. I can connect from a terminal and read and write to the database.

Should there be a server configuration that redirects /public/register to /public/index.php?register ... or something?





Andrew

--
You received this message because you are subscribed to a topic in the Google Groups "Learning Locker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/learning-locker/ULtoICNOKa0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to learning-lock...@googlegroups.com.
To post to this group, send an email to learnin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
---------------------
Bob Weiner
---------------------

Ryan Brainerd

unread,
Apr 11, 2014, 4:11:18 PM4/11/14
to learnin...@googlegroups.com, Andrew Downes, bobwe...@gmail.com
I am having the same issue. Did the same steps as you to verify my installation was correct. Not sure what else to try right now -- just waiting for a response.

Ryan Brainerd

unread,
Apr 11, 2014, 4:38:17 PM4/11/14
to learnin...@googlegroups.com, Andrew Downes, bobwe...@gmail.com
I think I have a potential fix.

In my case, it was due to apache not doing rewrites correctly. that's how they're routing controllers, not with URL parameters (which is why you don't see index.php?something)
And, it was XAMPP's configuration that was causing the rewrites to not work.

First, I made sure ModReWrite and ModNegotiation were enabled in Apache's httpd.conf
Then I went into apache/conf/extra/httpd-xampp.conf and changed AllowOverride to All in the htdocs section to allow local .htaccess files to always work
Finally I added a ReWriteBase /xampp/htdocs/xampp/learninglocker/public/ rule to the local .htaccess in learninglocker

After that, my registrations worked correctly and I was able to access the control panel. Everything seems like it's working.
The httpd-xampp.conf change may have been unnecessary, but everything is working for me now so I'm not changing it.

If you're using IIS, you need to process those rewrites correctly somehow to allow the app to work correctly. I've never used IIS so I'm not sure what the comparable configuraiton is as opposed to Apache's httpd.conf and .htaccess files.

I hope that helps somewhat.

Ryan

David Tosh

unread,
Apr 11, 2014, 5:09:04 PM4/11/14
to learnin...@googlegroups.com, bobwe...@gmail.com
Thanks for sharing your solution - mind if I add this to the LL wiki (https://github.com/LearningLocker/learninglocker/wiki) under troubleshooting? 

Ryan Brainerd

unread,
Apr 11, 2014, 5:15:15 PM4/11/14
to learnin...@googlegroups.com, bobwe...@gmail.com
I don't think I've got it all worked out yet. I'd be happy to share everything as I'm working through it -- please feel free to post to the wiki, anything I write.

My state right now:

To register/login,
If I use /learninglocker/public/ it throws 404s for everything.
If I use /learninglocker/public/index.php, the register/login will work (but the image on the register page is a broken link/pic)

Once I login, the Admin Dashboard and other nav items on the left won't do anything.
But I am able to go to settings and see my super admin role, change things, and create a new LRS.
Reporting does not work.

It seems that basically anything that requires a index.php#identifier pattern in the URL is broken
but anything that is /public/users/blahblah, for example, is working.

So I think I'm on the write track with the Apache rewrite rules, but I still haven't fixed it.
Do you have any suggestions?

Ryan

So I'm getting partial functionality. When I'm in the admin dashboard

David Tosh

unread,
Apr 11, 2014, 5:24:38 PM4/11/14
to learnin...@googlegroups.com, bobwe...@gmail.com
Sorry you are having these issues - my best guess is to figure out if it is a Learning Locker specific issue (in that Learning Locker code is borking) or if it is a Laravel issue (the framework that LL is built on). I know this is not ideal, but if you were willing to try installing a native Laravel install (http://laravel.com/docs/installation) and seeing if you can access the default landing page - that could go some way to helping us determine where the issue arises. Thanks!


On Saturday, 5 April 2014 18:59:00 UTC-4, bobwe...@gmail.com wrote:

Ryan Brainerd

unread,
Apr 14, 2014, 12:27:06 PM4/14/14
to learnin...@googlegroups.com, bobwe...@gmail.com
Hey David,

I've made some progress. LearningLocker appears to be functionally fully now on XAMPP after I used the following configuration

0) The LearningLocker folder needs to be placed in xampp/htdocs/xampp/

1) Verify the XAMPP apache settings in conf/httpd.conf, conf/extra/httpd-default.conf, and conf/httpd-xampp.conf have AllowOverride All for the directory path where your learninglocker folder resides.
This is so that the .htaccess I specified in step #2 will be read by Apache. If you are unsure if the .htaccess file in learninglocker/public/ is being read, put in some garbage characters at the top of the
file, save, and try to load localhost/xampp/learninglocker/public/. If you get a server error from Apache, that's good -- it means it halted on your garbage so it's trying to read that file.

2) Modify the local .htaccess file in /public/ to this

Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]

3) Verify everything works by following the LearningLocker installation instructions as noted.


On Friday, April 11, 2014 5:09:04 PM UTC-4, David Tosh wrote:

David Tosh

unread,
Apr 14, 2014, 1:08:18 PM4/14/14
to learnin...@googlegroups.com, bobwe...@gmail.com
Thanks for sharing your progress - I will add this to the wiki for others who might run into similar issues.

Cheers.


On Saturday, 5 April 2014 18:59:00 UTC-4, bobwe...@gmail.com wrote:

opi...@gmail.com

unread,
Apr 22, 2014, 2:28:30 PM4/22/14
to learnin...@googlegroups.com
I followed these instructions and it worked.

There was an error after logging in. Laravel installed the newest update that requires 3 more functions in the learninglocker\app\models:

public function getRememberToken()
{
return $this->remember_token;
}

public function setRememberToken($value)
{
$this->remember_token = $value;
}

public function getRememberTokenName()
{
return 'remember_token';
}

See http://stackoverflow.com/questions/23094374/laravel-unexpected-error-class-user-contains-3-abstract-methods

After adding these 3 functions, I was able to log in with XAMPP on a Windows 8 machine.

opi...@gmail.com

unread,
Apr 22, 2014, 2:30:16 PM4/22/14
to learnin...@googlegroups.com, opi...@gmail.com
Add these functions to User.php.

Ben Betts

unread,
Apr 24, 2014, 3:11:19 AM4/24/14
to opi...@gmail.com
Thanks for the note!

Chris Jones

unread,
Apr 30, 2014, 11:04:47 AM4/30/14
to learnin...@googlegroups.com

I encountered similar problems with routing using Apache and I had to enable mod_rewrite to get it working ( see http://askubuntu.com/questions/48362/how-to-enable-mod-rewrite-in-apache)

However, What I don't know is should the /learninglocker/ folder be served as the DocuementRoot or should the /public/ directory?

rem...@gmail.com

unread,
Jul 14, 2014, 6:00:48 AM7/14/14
to learnin...@googlegroups.com, bobwe...@gmail.com
I am new to learning locker and trying to get it installed correctly for the first time.
I followed instructions on LL site and installed Apache, PHP 5.4, Mongo DB and PHP extension for Mongo DB and installed LL via composer.

After installation I was unable to load the login page using http://localhost/learninglocker/public/index.php. But after copying learning locker installation folder to Apache htdocs folder I could get the login page. Now I am facing the issue as mentioned above: logo on the login page is broken,
after I login, the Admin Dashboard and other items on the left won't do anything.

But I can go to settings and see super admin role, and after I click on settings I can click on Create LRS (which is inactive before I click on settings).

I tried all the steps mentioned above by Ryan:
1. The LearningLocker folder is placed inside Apache/htdocs folder

2. Apache settings in conf/httpd.conf, conf/extra/httpd-default.conf, have AllowOverride All for the directory path where learninglocker folder resides.And verified that .htaccess file in Learning locker folder inside htdocs is being read.

2) Modified .htaccess file to have below method:
Options +FollowSymLinks

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]

Can anyone please help to get this solved?Kindly let me know if any more information is required.

Andrew Downes

unread,
Jul 14, 2014, 1:44:33 PM7/14/14
to learnin...@googlegroups.com
Hi,

Please try installing learning locker directly into the htdocs folder.

Andrew

rem...@gmail.com

unread,
Jul 15, 2014, 12:41:28 AM7/15/14
to learnin...@googlegroups.com
Thanks Andrew for your suggestion. I tried installing learning locker directly in htdocs folder but still having same issue.(broken logo while login and icons on the left side of the page after login wont do anything).

Below are the configuration changes I made after installing LL:
1. mod_rewrite.so and mod_negotiation.so in httpd.conf is enabled.
2. have made Allowoverride All for the directory path where LL is installed:
<Directory "D:/Apache_HTTP_Server_2.4.9_Win_O/httpd-2.4.9-x86/Apache24/htdocs/">
AllowOverride All

</Directory>
3. Have made allow override All for the directory path where LL is installed in httpd-default.conf
<Directory "D:/Apache_HTTP_Server_2.4.9_Win_O/httpd-2.4.9-x86/Apache24/htdocs/">
AllowOverride All

</Directory>
4. .htaccess file in htdocs/learninglocker/public have content as below:(have removed the content which was already there in .htaccess file).
Options +FollowSymLinks

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]

Message has been deleted

jhs...@gmail.com

unread,
Jul 14, 2015, 11:46:55 AM7/14/15
to learnin...@googlegroups.com
Hi, i followed jpablo128's installation guide and everything worked fine. I created an LRS and changed my code to use the endpoint and user/pass, but when I use the endpoint I get a 404 error. I know the rest of the code works because I used this on SCORMcloud before but wanted to try hosting it myself. The xhr.responsetext is on this pastebin:

http://pastebin.com/7E21xfpt

paulsi...@gmail.com

unread,
Mar 15, 2017, 5:21:06 PM3/15/17
to Learning Locker

I know this is old, but after hours, this is the only solution that worked on IIS.
https://gist.github.com/leabdalla/6135627

put this in the web.config file in /public folder and change

<action type="Rewrite" url="public/index.php/{R:1}" />

into :

<action type="Rewrite" url="index.php/{R:1}" />

no need to convert htaccess to web.config, no need to move the files back into the root folder(unsafe), it needs /public folder for other parts of the application, so don't touch it. No need to use index.php at the end of the url. Redirect works fine.

I'm okay with the /public/yoursite for now, that would be another topic.

Ryan Smith

unread,
Mar 30, 2017, 5:23:56 AM3/30/17
to Learning Locker, paulsi...@gmail.com
Thanks for your input :)

ghanshya...@gmail.com

unread,
Nov 23, 2017, 6:43:16 AM11/23/17
to Learning Locker
Hi Bob,

I am also an ASP.Net developer and interested to have my own LRS installed on Windows 10 (& may be on Windows server at a later stage). Could you please help providing more details how can I fully install Learning Locker LRS on my windows PC? I would like to install it from scratch. Please provide sites I should refer to have LRS install on Windows PC.

Thanks in advance.

Thanks,
G

Reply all
Reply to author
Forward
0 new messages