file edit option not available
Hi
I had an error log I can't edit in file manager (edit button unhighlighted) so I renamed it to error_log-old and created a new error_log file which I can edit:

Old file renamed which I can't edit:

File and ownership the same, so any reason I can edit one and not the other?

-
You *probably* can't edit the file because it is "open" by a system process (such as Apache or PHP). Do not try to move, rename, change permissions or edit those files as you may cause issues. Copying it would be fine.
The reason why, even after renaming it, you still can't edit it is because Apache/PHP will have locked it at the "file" level (the filename is just a pointer towards the file and - usually - can be changed without problems: it's when the process "releases" the lock and then tries to to reopen it based on the filename that issues might start).
1 -
Excellent answer, rbairwell!!
0
Please sign in to leave a comment.
Comments
2 comments