magento2.4 – Magento 2.4 500 Error On Fresh Install

I have just installed a clean instance of Magento 2.4 running on PHP 7.4.9 and I am getting a 500 error when trying to access the index file to connect the database and compete the install.

I have done the following to try to remedy the issue:

  • Adjusted permissions to the Magento recommended permissions
  • Increased memory_limit to 756 M in php.ini
  • Removed my .htaccess file
  • Checked that rewrites were enabled for Apache2 and added allow code to the .conf file

I have checked my Apache2 error log and I am getting the following error:

PHP Fatal error: Uncaught ReflectionException: Class MagentoFrameworkAppResourceConnectionProxy does not exist in /var/www/html/vendor/magento/framework/Code/Reader/ClassReader.php:24nStack trace:n#0 /var/www/html/vendor/magento/framework/Code/Reader/ClassReader.php(24): ReflectionClass->__construct()n#1 /var/www/html/vendor/magento/framework/ObjectManager/Definition/Runtime.php(54): MagentoFrameworkCodeReaderClassReader->getConstructor()n#2 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(48): MagentoFrameworkObjectManagerDefinitionRuntime->getParameters()n#3 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create()n#4 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): MagentoFrameworkObjectManagerObjectManager->get()n#5 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFac in /var/www/html/vendor/magento/framework/Code/Reader/ClassReader.php on line 24

Any help would be appreciated.