Problem in login after installation

Installazione, configurazione generale, notifiche, API, lingue, problemi server
User avatar
max
FormaLms Guru
Posts: 2735
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: Problem in login after installation

Post by max »

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
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: Problem in login after installation

Post by tempuser »

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?
User avatar
canelli
FormaLms Guru
Posts: 496
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Problem in login after installation

Post by canelli »

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 User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: Problem in login after installation

Post by tempuser »

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 User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: Problem in login after installation

Post by tempuser »

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.
User avatar
canelli
FormaLms Guru
Posts: 496
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: Problem in login after installation

Post by canelli »

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
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: Problem in login after installation

Post by alfa24 »

tempuser I can help but I need some info, PM me to provide ssh access.
Per supporto GRATUITO contattatemi in privato qui
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: Problem in login after installation

Post by tempuser »

@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
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: Problem in login after installation

Post by alfa24 »

No analyze no fix.
Good luck.
Per supporto GRATUITO contattatemi in privato qui
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: Problem in login after installation

Post by tempuser »

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