Разрешение записи Apache в public_html?

Вы на самом деле хотите .cn домен, или Вы делаете это просто из-за, "Кто-то хочет зарегистрировать доменное имя, подобное Вашему названию компании"?

Много регистраторов зарегистрирует .cn доменные имена в эти дни.

Взгляните здесь http://www.neustar.com.cn/buycn/index.html

Это зависит, где Вы относительно того, есть ли у Вас какое-либо предпочтение, но в том списке существует достаточно уважаемых компаний.

2
задан 1 September 2012 в 18:53
2 ответа

As Hex already wrote, the directory must be writable for the user under which Apache runs. You can achieve this by changing the group to the Apache user's primary group (www-data on Ubuntu) and give the group write permission.

chgrp -R www-data /home/sandra/data /home/sandra/conf
chmod -R g+rwX /home/sandra/data /home/sandra/conf

The user must also be able to cd into those directories, so it needs execute permissions on the parent directory.

chmod o+X /home/sandra

Another option would be to add respective ACLs for the Apache user, if the filesystem supports them.

setfacl -m default:u:www-data:rwx /home/sandra/data /home/sandra/conf
setfacl -m u:www-data:x /home/sandra

I wouldn't recommend changing the owner.

2
ответ дан 3 December 2019 в 10:54

You can try

chown -R apache /home/sandra/conf 

This command will make apache the owner of these files. You can then give apache full access to the folderby doing

chmod 770 /home/sandra/conf

Both commands must be run on both folders respectively.

1
ответ дан 3 December 2019 в 10:54

Теги

Похожие вопросы