Skip to content

File Permission Check Error #3010

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

Closed
smartperf opened this issue Jan 16, 2016 · 5 comments
Closed

File Permission Check Error #3010

smartperf opened this issue Jan 16, 2016 · 5 comments

Comments

@smartperf
Copy link

image

[magento_user@lnxdev01 magento2]$ groups apache
apache : apache magento_user

-rw-rw----. 1 magento_user apache 434532 Jan 14 18:34 CHANGELOG.md
-rw-rw----. 1 magento_user apache 3425 Jan 14 18:34 CONTRIBUTING.md

/var/www/html/magento2 and its subfolders and files have ownership as magento_user is in group apache

All permissions are granted.

My environment:
CentOS 7
MySQL 5.5.44
Apache 2.4.6
PHP 5.6.16
Zend Engine 2.6.0

The solutions in #2885 like
[magento_user@lnxdev01 magento2]$ sestatus | grep -i mode
Current mode: enforcing
Mode from config file: enforcing
[magento_user@lnxdev01 magento2]$ chcon -R -h -t httpd_sys_script_rw_t /var/www/html/magento2/app/etc
seems not work for my case.

Please advise.

@magenx
Copy link

magenx commented Jan 16, 2016

php running as another user or folder magento2 is not writable for apache group?

@smartperf
Copy link
Author

thanks, magenx,

I have run this
find . -type d -exec chmod 770 {} ; && find . -type f -exec chmod 660 {} ; && chmod u+x bin/magento

I also run
chmod 777 /var/www/html/magento2/app/etc
chmod 777 /var/www/html/magento2/var
chmod 777 /var/www/html/magento2/pub/media
chmod 777 /var/www/html/magento2/pub/static

So I think all files and folders are writable for apache group.

Based on http://devdocs.magento.com/guides/v2.0/install-gde/prereq/apache-user.html#install-update-depend-user-over, I thought it is recommended to have a user like magento_user as the owner of the files

Thanks,

@magenx
Copy link

magenx commented Jan 17, 2016

read my question. thank you

@mazhalai
Copy link
Contributor

mazhalai commented May 9, 2016

@smartperf any update? Has this issue been resolved?

@mazhalai mazhalai self-assigned this May 9, 2016
@mazhalai
Copy link
Contributor

@smartperf closing as non-responsive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants