cancel
Showing results for 
Search instead for 
Did you mean: 

[ERROR] Exception: Missing write permissions

[ERROR] Exception: Missing write permissions

While installing Magento Community Edition 2.2.2 i get this error log, so any ideas?

 

Starting Magento installation:
File permissions check...
[ERROR] Exception: Missing write permissions to the following paths:
/var/www/html/mg/generated/metadata in /var/www/html/mg/setup/src/Magento/Setup/Model/Installer.php:818
Stack trace:
#0 /var/www/html/mg/setup/src/Magento/Setup/Model/Installer.php(462): Magento\Setup\Model\Installer->throwExceptionForNotWritablePaths(Array)
#1 [internal function]: Magento\Setup\Model\Installer->checkInstallationFilePermissions()
#2 /var/www/html/mg/setup/src/Magento/Setup/Model/Installer.php(342): call_user_func_array(Array, Array)
#3 /var/www/html/mg/setup/src/Magento/Setup/Controller/Install.php(109): Magento\Setup\Model\Installer->install(Array)
#4 /var/www/html/mg/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): Magento\Setup\Controller\Install->startAction()
#5 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#6 /var/www/html/mg/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#7 /var/www/html/mg/vendor/zendframework/zend-eventmanager/src/EventManager.php(263): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#8 /var/www/html/mg/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#9 /var/www/html/mg/vendor/zendframework/zend-mvc/src/DispatchListener.php(118): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#10 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#11 /var/www/html/mg/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#12 /var/www/html/mg/vendor/zendframework/zend-eventmanager/src/EventManager.php(263): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 /var/www/html/mg/vendor/zendframework/zend-mvc/src/Application.php(340): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#14 /var/www/html/mg/setup/index.php(35): Zend\Mvc\Application->run()
#15 {main}

Tags (3)
1 REPLY

Re: [ERROR] Exception: Missing write permissions

Its permission issue in your magento installation. You just need to give root permission to generated folder.

 

chmod -R 0777 generated

If Issue Solved, Click Kudos/Accept As solutions.