Community > Elxis 2008.x Olympus (dev)

login recorder

(1/1)

momo-i:
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

datahell:
Check the permissions of the log directory and file.

/administrator/tools/lrecorder/logs/ ---> 777
/administrator/tools/lrecorder/logs/logs.txt ---> 666

momo-i:
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: ---@@ -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));

--- End code ---

dados:
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?

xmanhattan:
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.

Navigation

[0] Message Index

Go to full version