cancel
Showing results for 
Search instead for 
Did you mean: 

Error when Installing Magento using XAMPP

SOLVED

Re: Error when Installing Magento using XAMPP

Hi @zoe_chatzivasil 

 

It's about file in xampp\htdocs\mystore\pub\static
it should look like this:

https://github.com/magento/magento2/blob/2.3-develop/pub/static/.htaccess

Please also make sure that you have mod rewrite enabled:

 

You can find it here how to do it:

https://stackoverflow.com/questions/12272731/using-mod-rewrite-with-xampp-and-windows-7-64-bit

I hope it will help.

---
Problem solved? Click Kudos & Accept as Solution!

Re: Error when Installing Magento using XAMPP

@linczenson 

yeap, file is the same.

 

mod rewrire was enabled. I changed  

AllowOverride None

to 

AllowOverride All

restart xampp..but nothing changed

Re: Error when Installing Magento using XAMPP

Well,

 

I had to install again both XAMPP and Magento, but this time i went for older versions, Magento 2.2.0 to be more precise, and XAMPP php 7.2.0.

 

Setup was smooth and looks functional now, admin login page and frontend looks ok.

 

Only problem here is that something is wrong with the CSS. Both admin login page, backend and front end looks...broken.

 

frontend.jpgadmin.jpg

 

 

Any ideas would be helpful.

 

Thank you

Re: Error when Installing Magento using XAMPP

Hello @zoe_chatzivasil ,

 

Please run below command via terminal of git bash on magento root directory

php -dmemory_limit=6G bin/magento setup:static-content:deploy -f
chmod -Rf 777 pub/ var/ generated/

--
If my answer is useful, please Accept as Solution & give Kudos

Re: Error when Installing Magento using XAMPP

Hello @gelanivishal 

I am new to magento..Can you please tell the location of gitbash terminal on magento root directory. I am unable to find it.

Re: Error when Installing Magento using XAMPP

Hi @sangeetha_ramte,

 

There are bin folder on the root for magento2. 

You can directly run magento commands from root folder: 

php bin/magento

You will get the all magento commands list from above command. 

 

I hope it will help you!

Re: Error when Installing Magento using XAMPP

Hi @Anonymous 

Got it.Thank you so much!