cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help Installing Magento 2 on Localhost (XAMPP)

Need Help Installing Magento 2 on Localhost (XAMPP)

Hi everyone,
I'm trying to install Magento 2 on my local machine using XAMPP, but I’m facing issues during installation. It often freezes at 51% or throws PHP extension errors.

I also wonder if local network issues or router login settings could be affecting the setup. Has anyone faced similar problems? Any help or suggestions would be really appreciated.

Thanks in advance!
Router login

 

1 REPLY 1

Re: Need Help Installing Magento 2 on Localhost (XAMPP)

Hi @routerlogi4613 ,

 

Insufficient PHP memory / execution_time

By default, XAMPP’s php.ini often has memory_limit = 512M or even lower, and max_execution_time = 30 (seconds). Magento’s setup scripts (especially when generating code and static assets) can easily exceed that.

 

Open your XAMPP’s php.ini (usually at C:\xampp\php\php.ini or /etc/php/7.x/apache2/php.ini on Linux).

Search for memory_limit and bump it to at least 2G (i.e. memory_limit = 2048M).

Search for max_execution_time and bump to 300 (i.e. max_execution_time = 300).

Restart Apache (and PHP‑FPM, if you’re using it alongside XAMPP).

 

This alone often prevents the installer from “hanging” halfway.

 

PHP extension errors

https://experienceleague.adobe.com/en/docs/commerce-operations/installation-guide/system-requirement...

Find PHP extensions from above for Commerce on-premise

There is section called Magento Open Source requires which contains information about required php extensions.

Most of those are bundled with a standard XAMPP install, but you still need to explicitly enable them in php.ini. Here’s how:

Open your php.ini

In XAMPP (Windows), it’s usually at C:\xampp\php\php.ini.

Uncomment / enable each extension

Example:

From

;extension=php_intl.dll

To

extension=php_intl.dll

 

After saving php.ini, restart XAMPP’s Apache server so the changes take effect.

 

Problem Solved? Accept as Solution!

 

Thanks

Ankit

 

Ankit Jasani