Problem in login after installation

Please report here problems and bugs
User avatar
max
FormaLms Guru
Posts: 1697
Joined: Thu Mar 01, 2012 10:41 am

Re: Problem in login after installation

Post by max » Fri Mar 09, 2018 2:40 pm

Hi,
anellic has been following this thread, and he already said that there are no known problems.

Server configuration: https://formalms.org/versions/readme.txt
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
http://www.elearnit.net
http://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
http://elearnit.wordpress.com
Skype: m_ferrari_it

tempuser
FormaLms Expert
Posts: 76
Joined: Wed Feb 28, 2018 8:26 am

Re: Problem in login after installation

Post by tempuser » Fri Mar 09, 2018 6:01 pm

Ok, where is the log file of the system stored so that I can investigate?

I see logging happening in the code, where is it?

Online
User avatar
canelli
FormaLms Guru
Posts: 397
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Problem in login after installation

Post by canelli » Fri Mar 09, 2018 6:25 pm

We don't know apache 4

the apache production version are 2.2 and 2.4
forma.lms run well with apache 2.2 , 2.4 , nginx , MS IIS , and any other web server that can serve php pages.
we have several installation with each of the above mentioned web server
php version must be 5.3, 5.4 , 5.6
mysql version 5.1 to 5.7 and same version of mariadb or mariadb 10 .

I thing your problem is a misconfiguration of your apache / php .
depending of your linux distibution , default standard apache log file locatation is /var/log/httpd/ or /var/log/apache2/ system folder, but the file location can be setted in apache configuration .

php log location is defined in the php.ini configuration file , generally is /tmp
Cercate nel forum le riposte prima di chiedere. Check the forum before posting
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology

http://www.joint-tech.com
---------------

tempuser
FormaLms Expert
Posts: 76
Joined: Wed Feb 28, 2018 8:26 am

Re: Problem in login after installation

Post by tempuser » Sat Mar 10, 2018 7:41 am

Hello,

I checked PHP logs, and it shows the following:

[Sat Mar 10 08:28:30 2018] [info] Executing "/.........................../index.php" as UID xxx, GID yyy
[Sat Mar 10 08:28:45 2018] [info] Executing "/.........................../appLms/index.php" as UID xxx, GID yyy
[Sat Mar 10 08:28:46 2018] [info] Executing "/.........................../appLms/index.php" as UID xxx, GID yyy
[Sat Mar 10 08:28:46 2018] [info] Executing "/.........................../index.php" as UID xxx, GID yyy


Nothing in the errors log.

But I was asking about the logging that happens inside the code, like this line:
self::log( "Unset all the globals that aren't php setted. (Emulate register global = off)" );

Where are those logs stored?

Thank you.

tempuser
FormaLms Expert
Posts: 76
Joined: Wed Feb 28, 2018 8:26 am

Re: Problem in login after installation

Post by tempuser » Sat Mar 17, 2018 6:58 am

Hello,

Can anybody answer my question about where logs of this system are stored? I can't locate the error to fix it.

What specific Apache modules should be enabled for the system to rum (in the form of mod_....)? For example, authentication/authorization module based on LDAP, DBM, DBD? I have 88 modules available that can be enabled individually.

Also are you using Ruby? I think it's not enabled in my Apache configuration. What exact component of Ruby needs to be enabled? I have 36 components available.

Online
User avatar
canelli
FormaLms Guru
Posts: 397
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Problem in login after installation

Post by canelli » Sat Mar 17, 2018 8:38 am

I think you have too many modules and no idea.

Formalms is a PHP application. Not a ruby app.
In the root folder there is a reame.txt with install instructions.
No strange modules in apache only PHP.

From errors you posted i can suppose you have misconfigurations of permissions on session folders. Where PHP writes sessions. Check it!
Cercate nel forum le riposte prima di chiedere. Check the forum before posting
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology

http://www.joint-tech.com
---------------

alfa24
FormaLms Expert
Posts: 92
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Problem in login after installation

Post by alfa24 » Sat Mar 17, 2018 2:54 pm

tempuser I can help but I need some info, PM me to provide ssh access.
I'm Jasmines, the One

tempuser
FormaLms Expert
Posts: 76
Joined: Wed Feb 28, 2018 8:26 am

Re: Problem in login after installation

Post by tempuser » Sun Mar 18, 2018 6:55 am

@canelli, I don't think it's a permissions issue, I have a number of other PHP sites working fine. Which specific folders do you mean?

@alfa24, thanks for offering help, if you know the fix please share so that I implement by myself.

May anybody answer my question about where the logging messages in the code are stored?

alfa24
FormaLms Expert
Posts: 92
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Problem in login after installation

Post by alfa24 » Sun Mar 18, 2018 2:45 pm

No analyze no fix.
Good luck.
I'm Jasmines, the One

tempuser
FormaLms Expert
Posts: 76
Joined: Wed Feb 28, 2018 8:26 am

Re: Problem in login after installation

Post by tempuser » Sun Mar 25, 2018 6:57 pm

Hello,

I have investigated PHP settings, and I confirmed that there is no issue with writing session information to the sessions folder. Actually I downloaded the session file and found that it shows 'session_timeout' message, although the maxlifetime value in PHP settings is large enough. Any ideas why the session times out? I don't see relevant settings for this in the config.php file. Or could it be in the cookie lifetime?

Also what is the use of the idst column in the 'user' table other than being an ID? I just found the value is too large and reset it to normal incrementing starting from 1, is this an issue?
Last edited by tempuser on Sun Mar 25, 2018 8:20 pm, edited 1 time in total.

Post Reply