Showing Blank Page While Installing Magento 2.2.6

While installing Magento Version 2.2.6 i got an error showing blank page.
Instead of searching on internet i go over log,

on there error.log file in found this error

[Sat Nov 10 15:48:36.673289 2018] [:error] [pid 2153] [client] PHP Fatal error: Uncaught RuntimeException: Can’t create directory /var/www/html/M2/MN226/generated/code/Magento/Framework/App/ResourceConnection/.\nClass Magento\\Framework\\App\\ResourceConnection\\Proxy generation error: The requested class did not generate properly, because the ‘generated’ directory permission is read-only. If — after running the ‘bin/magento setup:di:compile’ CLI command when the ‘generated’ directory permission is set to write — the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only. in /var/www/html/M2/MN226/vendor/magento/framework/Code/Generator.php:135\nStack trace:\n#0 /var/www/html/M2/MN226/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\\Framework\\Code\\Generator->generateClass(‘Magento\\\\Framewo…’)\n#1 [internal function]: Magento\\Framework\\Code\\Generator\\Autoloader->load(‘Magento\\\\Framewo…’)\n#2 [internal function]: spl_autoload_call(‘Magento\\\\Framewo…’)\n#3 /var/www/html/M2/MN226/vendor in /var/www/html/M2/MN226/vendor/magento/framework/Code/Generator.php on line 135, referer: http://localhost/M2/

Note : my installing directory is var/www/html/M2/MN226/

So then i found a folder call generated, then i check the permission of it that was given only view permission, i make that 777, then everything work correct.

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.