I was wondering if there was a better way to avoid the chmod() Operation Note Permitted errors in my log file. The CI code that attempts to do the CHMOD function precedes it with the @ sign to suppress errors.
Here is what is happening….
My production site is deployed from GitHub. Immediately after deployment I run a shell command to change all ownership of all files to www-data:www-data.
I am running Ubuntu 14.04 with Apache 2 on an EC2 Instance (Amazon).
The error shows up immediately when logging.
I then delete and re-add the Logs directory setting permissions to 777….still get the error
I then tried changing the owner of the folder to root:root (since the log files created by the script are owned by root)...still get the error.
Is there a way to disable this specific error from being logged and taking up 40% of my log?
If I did not provide enough details let me know.