Elxis CMS Forum

Community => Elxis 2008.x Olympus (dev) => Topic started by: momo-i on January 13, 2008, 13:39:58

Title: login recorder
Post by: momo-i on January 13, 2008, 13:39:58
When I performed clean log in login recolder, the load of the server went up.
Then, although I try login to admin area, the load of a server goes up again.

/administrator/index2.php?option=com_admin&task=tools
Title: Re: login recorder
Post by: datahell on January 13, 2008, 15:02:26
Check the permissions of the log directory and file.

/administrator/tools/lrecorder/logs/ ---> 777
/administrator/tools/lrecorder/logs/logs.txt ---> 666
Title: Re: login recorder
Post by: momo-i on January 13, 2008, 16:50:55
logs directry is 777 OK,  but log.txt are :
--w--wx-wT 1 apache apache    0 2008-01-13 20:22 logs.txt*

I correct premission of logs.txt, then it worked! but I clean logs again, that probrlem has occurred.

The following is corrected and this came to work, because the chmod function has recognized the single quotation mark as a character string.

in /administrator/tools/lrecorder/recorder.class.php
Code: [Select]
@@ -164,7 +164,7 @@
     function deleteLogs() {
         global $fmanager;
         $file = $fmanager->PathName($this->recBase.'logs/').'logs.txt';
-        $fmanager->spChmod($file, '0666');
+        $fmanager->spChmod($file, 0666);
         if ($fmanager->writeFile($file, '')) {
                return true;
         } else { return false; }
@@ -253,7 +253,7 @@

         $file = $fmanager->PathName($this->recBase.'logs/').'logs.txt';
         if (!is_writable($file)) {
-            $fmanager->spChmod($file, '0666');
+            $fmanager->spChmod($file, 0666);
         }
            if ($fr = @fopen($file, 'r')) {
                    $buffer = @fread($fr, filesize($file));
Title: Re: login recorder
Post by: dados on December 06, 2008, 20:52:44
On my hosting I have some problems I did not have this files
/administrator/tools/lrecorder/logs
/administrator/tools/lrecorder/logs/logs.txt

What I must to do?
Title: Re: login recorder
Post by: xmanhattan on December 07, 2008, 10:23:12
dados,

You might not see those files if you have not enabled the logins recorder.

go to tools logins recorder and click the disabled to enable.

Then you can check those files to see if they have any problems with permissions.