G
G
gto61202016-10-10 20:58:38
linux
gto6120, 2016-10-10 20:58:38

Centos7 + wordpress, what's wrong with permissions?

Good afternoon! I'm in big trouble. Moved wordpress site to new server and file upload error: "Can't create directory wp-content/uploads/2016/10. Check if parent directory is writable." .
chmod -R 0777 /path-to-wp-content - не помогает
I've already gone through everything. I created the wp-content/uploads/2016/10 folder manually, put 0777 on it and the same owner and group as everywhere else. Tried again, error: "The uploaded file could not be moved to wp-content/uploads/2016/10".
I understand that the problem is most likely not inside wordpress (I climbed into options, tried to set the absolute path to the uploads folder, it didn’t help) but in the rights, but I can’t find where. I don't know where to dig anymore... Maybe SELinux or something else?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Daemon23RUS, 2016-10-10
@gto6120

For running SELinux
And I would add the rights, and the user:

chown -R apache:apache "/path-to-wp-content"
find "/path-to-wp-content" -type f -exec chmod 644 {} \;  
find "/path-to-wp-content" -type d -exec chmod 755 {} \;

G
gto6120, 2016-10-10
@gto6120

Да!
сработал! Радости полные штаны. Осталось узнать как теперь сделать так, чтобы со включенным все работало.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question