cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 - Localhost after setting production mode

SOLVED

Magento 2 - Localhost after setting production mode

Hello 

 

yesterday I installed a theme in the hosting server (not localhost). 

The site was up and running fine. 

I set developer mode and maintenance 

unpacked the files added the files to database.

I think I did upgrade and cache flush 

 

went to /themesetup all checked right but when click next install it gave an error. stayed in 0%.

I went to another browser and saw the website was online and even had the new theme. working. So I though it was ok!

 

Then I tryed to enter admin and it said wrong user and password. so I thought let me set it in production mode. When I did that the website went down it says

This localhost page can’t be found

REMEMBER THE SITE IS NOT in my PC is in a  server online.

 

Things I tried:

empty var folders,

enable back developer mode,

upgrade,

compile,

cache flush,

 

I mean I have no idea now, one moment the site is ok then it went down. and nothing am doing in command line seems to work. 

 

Please help!!

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento 2 - Localhost after setting production mode

When it was in the step of INSTALL I noticed some modules from previous installations I thought I had deleted them. 

I ended up wiping the whole hosting and reinstalling again.

then adding the theme. 

 

thanks for your help.

View solution in original post

2 REPLIES 2

Re: Magento 2 - Localhost after setting production mode

@StarlynDD

 

So did you deploy your static content after compiling it? Run the following in CLI to deploy static content: 

 

php bin/magento setup:static-content:deploy

I hope that will fix the issue. Report back if it doesnt

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: Magento 2 - Localhost after setting production mode

When it was in the step of INSTALL I noticed some modules from previous installations I thought I had deleted them. 

I ended up wiping the whole hosting and reinstalling again.

then adding the theme. 

 

thanks for your help.