Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions issue #1

Closed
dmromanov opened this issue Apr 2, 2015 · 5 comments
Closed

Permissions issue #1

dmromanov opened this issue Apr 2, 2015 · 5 comments

Comments

@dmromanov
Copy link
Contributor

Vagrant 1.7.2, Bitrix Env. 5.1.2

Fresh install (provision) finishes successfuly, but Bitrix fails to run.

In httpd logs:

[Thu Apr 02 10:53:06 2015] [crit] [client 10.0.2.2] (13)Permission denied: /home/bitrix/www/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
@dmromanov dmromanov mentioned this issue Apr 2, 2015
@nzy nzy closed this as completed May 14, 2015
@nzy
Copy link
Owner

nzy commented May 14, 2015

Я работал с этой строчкой и без нее.

Во всех новых проектах все работает без этих инструкций.

nzy added a commit that referenced this issue May 18, 2015
nzy added a commit that referenced this issue May 18, 2015
nzy added a commit that referenced this issue May 18, 2015
@nzy nzy reopened this May 18, 2015
@nzy
Copy link
Owner

nzy commented May 18, 2015

Проблема в том, что при первом запуске и попытке смонтировать папку с правами пользователя bitrix, возникает ошибка. Так как пользователя bitrix еще нет в системе. Он создается в provision'е bitrix-env.sh после mount'а.

@brave44
Copy link

brave44 commented May 18, 2015

Нужно поправить Vagranfile, там монтировать можно так: config.vm.synced_folder ".", "/home/bitrix/www", без указания юзера.

@nzy
Copy link
Owner

nzy commented May 18, 2015

Мы так и монтируем, но говорят, что бывают случаи, когда это необходимо.

Нужно больше информации. Так ли это необходимо.

Если есть необходимость, можно попробовать изменить пользователя ssh с vagrant (по-умолчанию) на root, тогда mount будет проходить под root'ом.

@nzy
Copy link
Owner

nzy commented May 18, 2015

Информация по теме: hashicorp/vagrant#936

@nzy nzy closed this as completed Sep 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants