Welcome Guest, Not a member yet? Register   Sign In
Log file when running in CLI mode issues
#1

[eluser]Unknown[/eluser]
When you run the CLI mode, the following error is recorded in a log file that there is a problem.
ERROR - 2012-04-09 11:23:30 --> Severity: Warning --> chmod(): Operation not permitted /var/www/system/libraries/Log.php 108

The error when executed from the CLI mode to run in the browser when the account is an account different
At the end of the log file to record and change the permissions of the file to be generated from the code as follows:
If you change the code has been resolved.
Code:
--- Log.php 2012-04-09 13:07:44.773414038 +0900
+++ libraries/Log.php 2012-04-09 11:32:27.525541525 +0900
@@ -103,7 +103,10 @@
    flock($fp, LOCK_UN);
    fclose($fp);

-   @chmod($filepath, FILE_WRITE_MODE);
+   if (octdec(substr(sprintf('%o', fileperms($filepath)), -4)) != FILE_WRITE_MODE)
+   {
+     @chmod($filepath, FILE_WRITE_MODE);
+   }
    return TRUE;
  }




Theme © iAndrew 2016 - Forum software by © MyBB