cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to install Magento 2.4 on Windows using PHP built-in server?

Is it possible to install Magento 2.4 on Windows using PHP built-in server?

Hello,


I'm trying to develop a new project into magento then I installed using composer in my Windows 10 the Magento 2.4.2, runned the setup command and accessed the folder pub and runned the PHP built-in server with the command php -S localhost:80 -t pub

 

When I access the URL http://localhost I got uma static page with no css:

 

CMS homepage content goes here.

 

I'm doining something wrong? Is not possible to run in develop windows magento with php built in server?

9 REPLIES 9

Re: Is it possible to install Magento 2.4 on Windows using PHP built-in server?

 
Yes, it is possible to install Magento 2.4 on Windows using a PHP built-in server.
 
For that, follow this reference link:
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Is it possible to install Magento 2.4 on Windows using PHP built-in server?

Same problem. Help!!! Vex 5

Re: Is it possible to install Magento 2.4 on Windows using PHP built-in server?

Have you deployed static content?

Re: Is it possible to install Magento 2.4 on Windows using PHP built-in server?

Yes, you can install Magento 2.4 on Windows using PHP built-in server.

 

Here is the link for reference of the LATEST MAGENTO VERSION ON Windows

 

It's working 100%. Happy Learning !! Thank You !!

Re: Is it possible to install Magento 2.4 on Windows using PHP built-in server?

Hi @felipesmendes

Indeed, it is feasible to introduce Magento 2.4 on Windows utilizing a PHP worked in worker.

For that, follow this reference interface:

https://meetanshi.com/blog/introduce magento-2-4-2-on-localhost-utilizing xampp/

Much obliged to You.

Re: Is it possible to install Magento 2.4 on Windows using PHP built-in server?

Magento 2 is not compatible with the Windows OS environment.
Please check the below link where you can find the system requirement.

 

https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements.html

Re: Is it possible to install Magento 2.4 on Windows using PHP built-in server?

So, basically, there are 2 steps. Firstly, well, you just download Magento 2. The next step you should do is to run this command:

php bin/magento setup:install --base-url=""http://127.0.0.1/mag242sample/"" --db-host=""localhost"" --db-name=""mag242sample"" --db-user=""root"" --admin-firstname=""admin"" --admin-lastname=""admin"" --admin-email=""admin@admin.com"" --admin-user=""admin"" --admin-password=""admin123"" --language=""en_US"" --currency=""INR"" --timezone=""America/Chicago"" --use-rewrites=""1"" --backend-frontname=""admin""

So, usually, that’s all, however, sometimes, you might have some issues happening. Most of the cases I’ve met are the wrong version downloaded or troubles with the software. What I advice you to do is to check if your Windows is licensed, and if not, than do something about it. You could buy a fully licensed pack or find on reddit windows key, which is totally okay.

Re: Is it possible to install Magento 2.4 on Windows using PHP built-in server?

This thread is from two years ago, but the topic of setting up Magento on Windows using the PHP built-in server is still relevant for developers. While the specifics of versions and configurations may have evolved, the discussion about Windows development environments remains valuable.

Re: Is it possible to install Magento 2.4 on Windows using PHP built-in server?

If you're working on a Windows system and still facing challenges with Magento or if you're considering an upgrade to Windows 11 in the future, you can check out cheap windows 11 pro key. Having access to the latest OS can be beneficial for your development efforts.