简体   繁体   中英

File permission issue, when Installing Magento 2 in OSX El Capitan

I was trying to install Magento 2 in OSX El Capitan system.

For this I was downloaded Magento 2 files from their website and placed in default OSX apache server folder (/Library/Webserver/Documents/Magento). I have made changes in php.ini file as in the Magento installation documents.

I was successfully located the magento installation page using (localhos/magento), but after completing readiliness check it shows some error on file permission. I had give file permission using "chmod 777 directory", but it wont helps.

Screenshot for the error:

错误

Try

 chmod -R 777 directory 

for recursive permission setting

This will set all subfolders an files to the 777 Permission

In your magento installation root,Run the four command below.

sudo chmod -R 777  app/etc
sudo chmod -R 777 var

Above two folder permission are correct in your case.

sudo chmod -R 777  pub/media
sudo chmod -R 777 pub/static

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM