Answer the question
In order to leave comments, you need to log in
Why are all CMS folders Unwritable?
Good day.
There was a need to deploy a small Wiki.
Installed CentOS7, PHP, MariaDB, httpd.
Successfully installed CMS, but when I try to install any component, I get the following message.
Warning: Failed to move file: /tmp/phpk2Eh6d to /var/www/html/tmp/helix3_template_j3_v2.5.6 (1).zip
Then I went to System -> System Information -> Folder Permissions
And there I saw that ALL folders requiring write access I have Unwritable.
After that I did the following
find /var/www -type f -exec chmod 644 {} \;
find /var/www -type d -exec chmod 755 {} \;
Answer the question
In order to leave comments, you need to log in
See owner. Permissions 644 are:
• read and write for the root user;
• read-only for group root;
• read-only for everyone else.
PHP is running under a different user, most likely apache. There are two solutions: change permissions or change ownership. It's better to change the owner.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question