HAIF Posted August 21, 2022 Posted August 21, 2022 Today I tried to upgrade my form to 4.7, and got almost to the end when it gave me the error CANNOT_WRITE .../system/File/FileSystem.php:337 The file in question, and its parent directories all have the same permissions as before, and the installation made it most of the way through before throwing the error. Both "Retry" and "Continue" just loop back to the same error message. I don't see that anyone else in this forum has had a similar problem, so I'm posting this here to see if anyone has any ideas.
teraßyte Posted August 21, 2022 Posted August 21, 2022 (edited) Some servers return errors with 777 permissions. Try using 644. Also I see the file owner is root, is it possible the other files are actually owned by a different user/group? A chmod might work as well. Edited August 21, 2022 by teraßyte
Marc Posted August 22, 2022 Posted August 22, 2022 Usually the above will be related to suPHP/suExec if it needs different permissions than 777. Only your hosting company can answer the question for certain
Solution HAIF Posted September 4, 2022 Author Solution Posted September 4, 2022 No hosting company here. Just a plain Ubuntu 20.04 server. I found the solution: Change the owner and group of everything in the forum subdirectory to www-data. sudo chown -R www-data:www-data
Marc Posted September 5, 2022 Posted September 5, 2022 11 hours ago, HAIF said: No hosting company here. Just a plain Ubuntu 20.04 server. I found the solution: Change the owner and group of everything in the forum subdirectory to www-data. sudo chown -R www-data:www-data Glad to hear you found the resolution to the issue there.
Recommended Posts