Skip to content

File Permission Check Error #2885

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
Khushik opened this issue Jan 5, 2016 · 10 comments
Closed

File Permission Check Error #2885

Khushik opened this issue Jan 5, 2016 · 10 comments

Comments

@Khushik
Copy link

Khushik commented Jan 5, 2016

capture
Could you please help me to fix this error. All permission were granted but no results.

@mazhalai
Copy link
Contributor

mazhalai commented Jan 5, 2016

@Khushik Are there any errors in your brower's console? Also, please give details about your environment like OS, Server, PHP version etc.

@ghost
Copy link

ghost commented Jan 5, 2016

In addition, it could be a problem with ownership. You should NOT set 777 permissions on anything.

Please refer to ownership and permissions documentation

@Khushik
Copy link
Author

Khushik commented Jan 6, 2016

My environment:
CentOS 7
MySQL 5.6.28
Apache 2.4.6
PHP 5.6.16
Zend Engine 2.6.0
No any errors in browser's console. The following commands I have run but also no results:

chown -R :apache .
find . -type d -exec chmod 770 {} ; && find . -type f -exec chmod 660 {} ; && chmod u+x bin/magento

@mazhalai
Copy link
Contributor

mazhalai commented Jan 6, 2016

@Khushik is the logged in user (the one running command on prompt) in the same group as apache as mentioned in @xcomSteveJohnson's doc link?

@anaxmedia
Copy link

If the correct owner and file permissions are set, it's most likely SELinux.

You can try setting SELinux to permissive mode to see if that's the issue:

setenforce 0

If that does work, you can either leave SELinux in permissive mode or enable it and grant SE permissions on just the directory:

setenforce 1 // set SELinux back to active enforcing mode

chcon -R -h -t httpd_sys_script_rw_t /var/www/yourwebsitedir/html/* // grant SE script RW priveleges to our web directory

@Khushik
Copy link
Author

Khushik commented Jan 7, 2016

It is a bit better, now i get the following error:
capture

@anaxmedia
Copy link

If you're seeing only 1 directory with setenforce 0 it's not SELinux, it's either the owner or file permissions. Try chown -R :apache magento2/var and setting file permissions on the magento2/var directory again.

@Khushik
Copy link
Author

Khushik commented Jan 7, 2016

Finally I have launched my magento 2 test site. Thank you so much for your speed replies.

@suthzy
Copy link

suthzy commented Jul 3, 2016

Thank you. Setting the SELinux to permissive mode fixed this for me. I'm installing Magento 2.1 on PHP 7.0.6 on OpenLogic centos 7 all running on Windows Azure. I suggest the docs at http://devdocs.magento.com/guides/v2.0/install-gde/prereq/file-system-perms.html#perms-private get updated. Thanks once again @anaxmedia. took me a while to find out what I was doing wrong.

@Blueblazer172
Copy link

sad to hear that only chmod -R 0777 whole-magento-folder/ worked for me

magento-engcom-team pushed a commit that referenced this issue Jul 25, 2018
[performance] MAGETWO-92402: Write tests for price indexer parallelization
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