Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

magento2 deployment - cannot reach setup page #118

Closed
syffs opened this issue Dec 12, 2019 · 11 comments
Closed

magento2 deployment - cannot reach setup page #118

syffs opened this issue Dec 12, 2019 · 11 comments

Comments

@syffs
Copy link

syffs commented Dec 12, 2019

I'm running this under WSL, everything seems to work properly (I can reach http://test.project.localhost/info.php and see phpinfo) except magento.

here are the steps, I went through:

  1. download magento2-2.3.3 with sample data
  2. extract to workspace/project/mage, here is how it looks:
    image
  3. trying to reach setup page:

did i miss anything ?

@peterjaap
Copy link
Contributor

peterjaap commented Dec 12, 2019

Use 'magento2' instead of 'mage' as your dir name and you should see the site at http://project.magento2.localhost

@syffs
Copy link
Author

syffs commented Dec 12, 2019

Thanks for the quick reply ! I did that:
image
http://project.magento2.localhost is redirected to http://project.magento2.localhost/setup/ but still ends up with 404

@JeroenBoersma
Copy link
Owner

Yeah, because we favor commandline / composer installations.

Open up a console in PHPStorm

bin/magento setup:install

https://devdocs.magento.com/guides/v2.3/install-gde/composer.html#command-line

@JeroenBoersma
Copy link
Owner

I checked, we have the nginx reference, let met check this out... Please hold the line :)

@syffs
Copy link
Author

syffs commented Dec 13, 2019

Please hold the line :)

sure thanks for the help !

Open up a console in PHPStorm

bin/magento setup:install

Indeed I managed to get a working magento through CLI install. I guess there's something blocking the web install in nginx config (I'm not an nginx expert tho).

Just to be sure, when you say "open a console", you mean dev console, and then bin/magento setup:install, because the installer does need direct access to the DB ?

@JeroenBoersma
Copy link
Owner

Yes yes yes... I found the underlaying problem... Which was in the Nginx configuration.

In the Magento 2 configuration I forward to the @php location.
Location directive in nginx inherits the server root and not the location root set in another location section.

I added a variable to forward the docroot explicitly. From now on anyone with Magento 2 can use the /setup path for Magento 2.

@JeroenBoersma
Copy link
Owner

Just to be sure, when you say "open a console", you mean dev console, and then bin/magento setup:install, because the installer does need direct access to the DB ?

yes dev console. In dev console the db is also available.

@JeroenBoersma
Copy link
Owner

Also /update directive works correctly now... All resolved then ;)

@JeroenBoersma
Copy link
Owner

JeroenBoersma commented Dec 13, 2019

If anything, don't hesitate!

@syffs
Copy link
Author

syffs commented Dec 13, 2019

Thanks a lot, it all works now ! Magento browsing is sometimes ok and sometimes insanely slow, any suggestion to speed it up ?

@JeroenBoersma
Copy link
Owner

Yes, this is because of developer mode... This means it'll try to create the files on the fly....

You could run a

# Generate static files for en_US(choose any other if you have a other locale, or define 2 or more)
bin/magento set:sta:dep -fa admin en_US
# Generate static files for frontend
bin/magento set:sta:dep -f -t Magento/Blank en_US nl_NL de_DE

Doing so will really speed up the first time load...

Also take a look at cache-clean.js implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants