I issued Magento recommended commands (given below) in the root directory of my Magento 1.9 installation and since then my nginx server is issuing 500 internal server error.
find . -type f -exec chmod 400 {} \;
find . -type d -exec chmod 500 {} \;
find var/ -type f -exec chmod 600 {} \;
find media/ -type f -exec chmod 600 {} \;
find var/ -type d -exec chmod 700 {} \;
find media/ -type d -exec chmod 700 {} \;
I re-uploaded the files and website started to work but i can't figure out what's wrong with these commands!
find . -type f -exec chmod 440 {} ; find . -type d -exec chmod 550 {} ; find var/ -type f -exec chmod 660 {} ; find media/ -type f -exec chmod 660 {} ; find var/ -type d -exec chmod 770 {} ; find media/ -type d -exec chmod 770 {} ;
– Devtype Apr 28 '16 at 11:55