I have a server on which I install Centos 7.2 and nginx 1.10. I would like zo host Magento
What I have done:
root
user is disablednewuser
is admin user for doing stuffs with sudo- I have a new nginx server block enabled
- set domain new block root folder to
/var/www/example.com/html
- set folder permission to
sudo chown -R $USER:$USER /var/www/example.com/html (logged in as 'newuser')
sudo chmod -R 755 /var/www
now the Magento root settings
set permissions to->
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod +x mage
My problem is that the cache and session folder is empty
Fist question why?
NOTE: I don't know where but somewhere the caches are stored because to see changes on Magento Frontend I have to clear the Cache after doing that in the Admin panel I could see changes.
So the second question is it a permission problem?
Should I give the Magento root and /var/www/example.com/html
permission to an normal user?