While installing Magento 2.3, I am facing below error.
Fatal error: Uncaught Magento\Framework\Exception\FileSystemException: Directory "/var/www/html/M23/var/cache/" cannot be created Warning!mkdir(): Permission denied in /var/www/html/M23/vendor/magento/framework/Filesystem/Driver/File.php
I have given permission
770 for directory and
660 for file type,
As well as trying 775 and
664 for directory and file respectively.
777 for var folder but No Luck, still facing the same issue,
Have I missed something?
Can you please let me know the correct file and folder permission.