simple Controller not working with Magento2 August 17, 2019 Run the following code to fix the issue.. sudo -u www-data php bin/magento setup:di:compile