0

I moved to new server and ready to install Magento but I getting this error please help!

Fatal error: Uncaught Magento\Framework\Exception\FileSystemException: The file "/home/xxxx/public_html/generated/code/Symfony/Component/Console/Question/QuestionFactory.php" cannot be deleted Warning!unlink(/home/xxxx/public_html/generated/code/Symfony/Component/Console/Question/QuestionFactory.php): Permission denied in /home/xxxx/public_html/vendor/magento/framework/Filesystem/Driver/File.php:382 Stack trace: #0 /home/xxxx/public_html/vendor/magento/framework/Filesystem/Driver/File.php(405): Magento\Framework\Filesystem\Driver\File->deleteFile('/home/xxxx/...') #1 /home/xxxx/public_html/vendor/magento/framework/Filesystem/Driver/File.php(403): Magento\Framework\Filesystem\Driver\File->deleteDirectory('/home/xxxx/...') #2 /home/xxxx/public_html/vendor/magento/framework/Filesystem/Driver/File.php(403): Magento\Framework\Filesystem\Driver\File->deleteDirectory('/home/xxxx/...') #3 /home/xxxx/public_html/vendor/magento/framework/Filesystem/Driver/File.php(403): Magento\Framework\File in /home/xxxx/public_html/vendor/magento/framework/Filesystem/Driver/File.php on line 382

new

Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/home/xxxx/public_html/var/page_cache" is not writable in /home/xxxx/public_html/vendor/magento/zendframework1/library/Zend/Cache.php:209 Stack trace: #0 /home/xxxx/public_html/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/hom...') #1 /home/xxxx/public_html/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/home/xxxx/...') #2 /home/xxxx/public_html/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array) #3 /home/xxxx/public_html/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true) #4 /home/xxxx/public_html/vendor/magento/framework/App/Cache/Frontend/Factory.php(158): Zend_Cache::factory('Magento\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true) #5 /home/xxxx/public_html/vendor/magento/framewor in /home/xxxx/public_html/vendor/magento/zendframework1/library/Zend/Cache.php on line 209

1 Answer 1

1

please give 777 permission to generated and var folder

remove generated folder and var/cahe var/di and var/page_cache and var/view_processed and try it –

5
  • yes already give 777, but cant
    – niceonelee
    Commented Dec 4, 2017 at 18:11
  • -> remove generated folder and var/cahe var/di and var/page_cache and var/view_processed and try it Commented Dec 4, 2017 at 18:14
  • i updated in the post please see
    – niceonelee
    Commented Dec 4, 2017 at 18:19
  • is ok now~thank you!
    – niceonelee
    Commented Dec 4, 2017 at 18:30
  • pemission issue if solve then like it Commented Dec 4, 2017 at 18:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.