Dear All,
My self I'm Muhsin from KSA, I am new in Magento, I don't have much knowledge in magento because it's my learning period, I am learning my self with the help of internet.
Any way right now I am in big trouble with installing Magento 2 , I am using iMac and also running on XAMPP local server it all working fine but I haven't reached Magento2 setup till yet, since an week I am trying to solve this same issue
Please find the below mentioned error code as for your reference,
"Fatal error: Uncaught Magento\Framework\Exception\FileSystemException: The "/opt/lampp/htdocs/Magento23/var/.regenerate" file can't be deleted. Warning!unlink(/opt/lampp/htdocs/Magento23/var/.regenerate): Permission denied in /opt/lampp/htdocs/Magento23/vendor/magento/framework/Filesystem/Driver/File.php:384 Stack trace: #0 /opt/lampp/htdocs/Magento23/vendor/magento/framework/Filesystem/Directory/Write.php(188): Magento\Framework\Filesystem\Driver\File->deleteFile('/opt/lampp/htdo...') #1 /opt/lampp/htdocs/Magento23/vendor/magento/framework/Code/GeneratedFiles.php(99): Magento\Framework\Filesystem\Directory\Write->delete('/var/.regenerat...') #2 /opt/lampp/htdocs/Magento23/vendor/magento/framework/App/ObjectManagerFactory.php(111): Magento\Framework\Code\GeneratedFiles->cleanGeneratedFiles() #3 /opt/lampp/htdocs/Magento23/vendor/magento/framework/App/Bootstrap.php(211): Magento\Framework\App\ObjectManagerFactory->create(Array) #4 /opt/lampp/htdocs/Magento23/vendor/magento/framework/App/Bootstrap.php(126): Magento\Framewor in /opt/lampp/htdocs/Magento23/vendor/magento/framework/Filesystem/Driver/File.php on line 384"
Please help!, if anyone have any idea regarding this.
Thanks!
Muhsin.M
Hi @muhsin_musi
I understand the problem you are facing - this is well-known issues with Magento 2.
Here you have permission issue with your directories and also you will require to remove generated directory manually then need to run - setup:di:compile again from the SSH terminal command line.
I would suggest you to refer below links to resolve this issue :
https://mage2-blog.com/magento-2-vargeneration-cannot-be-deleted-warning/
https://magento.stackexchange.com/questions/135153/magento-installation-getting-fatal-error
Hope it helps !
@Manthan Dave
Thank you so much for your warm reply with the interest.
let me try with this and will get back to you soon
Thanks!
Hi @muhsin_musi
Sure, Please try and let me know if you still have any issue on the same.