0
Forbidden you don't have permission to access /Magento/pub/static/frontend/Magento/luma/en_US/Magento Ui/templates/modal/modal-popup.html on this server.

Don't know why I am getting this error on magento fresh site.

enter image description here

Arunendra
  • 7,446
  • 3
  • 29
  • 54
khan
  • 331
  • 1
  • 3
  • 10

3 Answers3

2

You needs to set the correct permission on your server.

See here: Magento 2 Pub/Static Correct File Permissions

Aedonis
  • 435
  • 3
  • 10
  • I know this too but if i knew how to set permission then why would i ask here. the link you provide does not really answer the question. – khan Jun 01 '16 at 22:48
  • depending on what kind of os your server is, will determine how you will reset those file permission. – Aedonis Jun 01 '16 at 22:50
  • http://magento.stackexchange.com/questions/91870/magento-2-folder-file-permissions . If you need a more detailed answer. – Aedonis Jun 01 '16 at 22:52
  • Mac osx yosemite 10.10.5 and i am using MAMP. Thanks – khan Jun 01 '16 at 22:52
  • Then you will need to look for the commands to change the file permissions for the /pub/static folder and files in the folder that work with MAMP. The solution in the links i added above should help you to figure out which folders to change and to what. – Aedonis Jun 01 '16 at 22:54
  • Applied every code given in your mentioned link, clean magento cache, but still getting the same error. – khan Jun 01 '16 at 23:22
  • Like i said. it depends on your server. look for the commands that work in Mamp. like something like this http://ifmeister.com/mamp-file-permissions-for-a-local-development-environment/ – Aedonis Jun 01 '16 at 23:33
0

I've had this problem before in MAMP. You have to try to change the system file permissions for the folders, but also the file permissions for the server.

In Windows I fix a lot of my problems simply by running as administrator but there isn't really an equivalent on Mac

LM_Fielding
  • 1,533
  • 4
  • 29
  • 51
0

Solved Finally!!!!! i am using mac Yosemite 10.10.5 its easy.

step1:

goto root folder of magento like this:

cd Applications/MAMP/htdocs/Magento

step2:

and then one by one type these

php bin/magento setup:static-content:deploy

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento cache:clean

and you are done!

if you receive fatal error about Local missing in some php bundle bla bla bla ... in php bin/magento setup:static-content:deploy step2. Its because your php is 5.5 or other version than the one running on MAMP. Which you can check by this command

php -i its running on mac

and php running on MAMP: http://localhost:8888/MAMP/index.php?page=phpinfo&language=English

if both are same then you have to find anather solution or make php to the one supported by magento.

if both are not the same you have to change your "mac php" path to "php inside MAMP" folder. todo that: write in terminal

vim ~/.bash_profile

new VIM terminal window will be open then type i and past this path or the correct one(in my case its this one):

export PATH=/Applications/MAMP/bin/php/php7.0.0/bin:$PATH

to exit VIM and go back to terminal: esc and then wq or Shift+zz

then in terminal type

source ~/.bash_profile

and then come back here to cheers!!!(its important :))

khan
  • 331
  • 1
  • 3
  • 10