I installed magento 2 in amazon linux(centos) successfully. After doing styling and deploying, product images are not loaded. Add to cart is not working. it redirects to cart page without adding any item. There is knockout js issue
ReferenceError: customer is not defined path.../en_US/knockoutjs/knockout.js line 2624 > Function Line 1
I copied this installation and installed in my windows 10 machine, it works fine. There is no js issue.
I followed this document.
I suspect that I have permission issue in the server. my root folder permission
Inner folder permissions
var folder permission
pub folder permission
I have executed command and attached screenshot herewith.
sudo chown -R ec2-user:apache var
suod chmod -R 777 var
Is there anyone who has this kind of experience will be helpful to solve this problem.