P
P
partisan422019-06-14 10:20:10
Joomla
partisan42, 2019-06-14 10:20:10

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.
5d034a8352b43359158400.png
After that I did the following

find /var/www -type f -exec chmod 644 {} \;
find /var/www -type d -exec chmod 755 {} \;

5d034aa1b1611919236617.png
But unfortunately nothing has changed :(
Please tell me what I'm doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Mezhuev, 2019-06-14
@partisan42

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 question

Ask a Question

731 491 924 answers to any question