Skip to content

Magento 2.4.6 Localhost Install Windows 11

I am having issues installing Magento2 on my local machine. I have been following this tutorial but I run into the same issue where my localhost/magento2/pub/ page doesn’t display content. I have been taking notes of things to watch out for when installing such as changing the Gd2.php script and verifying my .htaccess files. Here are my current install notes for my version and setup:

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.6-p3 magento2

php bin/magento setup:install --base-url="http://localhost/magento2/" --db-host="localhost" --db-name="magento2" --db-user="root" --admin-firstname="admin" --admin-lastname="admin" --admin-email="[email protected]" --admin-user="admin" --admin-password="admin123" --language="en_US" --currency="USD" --timezone="America/Chicago" --use-rewrites="1" --backend-frontname="admin" --search-engine=elasticsearch7 --elasticsearch-host="localhost" --elasticsearch-port=9200

I follow the commands after installation according to the tutorial I’ve been following. Here is a screen shot of the pub page with my apache logs:
enter image description here
enter image description here

Here is my result when trying to access the admin page:
enter image description here
enter image description here

Any help is appreciated!