W
W
webquestions2015-10-26 08:54:16
PHP
webquestions, 2015-10-26 08:54:16

Error creating file how to fix?

I'm trying to save the file by adding it through the admin panel, or changing it
gives the following error
Error creating file

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Kolegov, 2015-10-26
@webquestions

Rights issue?

A
Alexander Balya, 2016-09-26
@Balya

You need to make sure that the files have the same owner as the Apache user. In addition, set the necessary rights to folders and files.
For mass change of ownership, you can use:
Here is a universal solution:

cd /home/bitrix/www
find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 664 {} \;
find . -type d -exec chown bitrix:bitrix {} \; 
find . -type f -exec chown bitrix:bitrix {} \;

/home/bitrix/www — directory where the site is
located bitrix:bitrix — user and group under whom the httpd daemon is running
Users and groups can be viewed in phpinfo.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question