-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Magento 2 Installation: css/js/images not loading in php-fpm + nginx server #802
Comments
looks like unnecessary question mark at end of rewrite |
@kandy even removing that last ? and reloading the nginx didn't work. |
Further checking: |
I use this config
and static files works as expected |
Also you may debug nginx rewrites by add |
@kandy thanks man. At least I can see the beautiful homepage though it takes so long to render.
My new nginx config looks like:
One thing that I noticed is: If you create virtual host specific configuration in nginx's [Edit] Is there any work around for magento2 optimisation in terms of php-fpm + nginx? |
My above nginx configuration doesn't let me run installation wizard. |
Try clean install and use https://github.com/magento/magento2/blob/master/nginx.conf.sample |
This configuration gives error:
which refers to the line https://github.com/magento/magento2/blob/master/nginx.conf.sample#L28 Seems the they should be wrapped under |
yes
|
Still the same error.
Here is my configuration:
|
yes, you should add it inside server block, but why did you not use include instruction? |
This one is working for me:
But getting the same error
And Magento\Setup module also not there. |
Now I did the fresh installation and the installation worked perfectly with the above nginx configuration. |
@MagePsycho , could you, please, confirm that Nginx sample provided in Magento code (https://github.com/magento/magento2/blob/master/nginx.conf.sample) works fine for you and the task can be closed? |
Looks like mod_rewrite is disabled. |
Enable Mod_rewrite from httpd.conf to start in win 7 system. File is located at apache\apacheXXX\conf. |
Hi @MagePsycho, can you update the issue, if you still have issues. Thanks |
Yeah it's working for me. See my comments above: |
Thanks @MagePsycho, we are going to close the issue, is there is additional issues - feel free to reopen with additional info. |
I am using Ubuntu 14.04, after typed my virtualhost domain, magento.dev, then it show blank. Lolzz, there is no any error on Nginx log |
@uchsarath This issue has been closed and marked as resolved. If it does not solve your issue, please open a new issue. Also, please include what mode magento 2 is running on? |
MSI-787: "Disassociated Products" configurable grid doesn't show information correctly
I was able to compare a working site with a non working site. There was extra cruft in the url values in core_config_data. UPDATE core_config_data SET value = NULL WHERE path IN ('web/unsecure/base_static_url','web/unsecure/base_media_url','web/secure/base_static_url','web/secure/base_media_url'); All of these needed to be NULL.
Resolved it for me. |
- Merge Pull Request magento/graphql-ce#802 from magento/graphql-ce:685-CustomerDownloadableGraphQl - Merged commits: 1. d4f0f25 2. 3a403ea 3. d42c43b 4. 59e452f 5. f55229e 6. a4da0fd 7. 796ce7f 8. bfe26d8 9. a16952c 10. 9a17c46 11. 50d68d4 12. cc2872d 13. 486d383 14. 7a59397 15. bda5529 16. fbcc247 17. 13bb280 18. 1d16054 19. bd5ac97
I am trying to install Magento2(0.1.0-alpha107 ) in my localhost powered by OSX 10.10 + brew installed php-fpm + mysql + nginx.
Steps that I followed for installation:
So far everything worked great. But when you load the frontend: http://magento2alpha.dev/ it's showing plain text only (i.e. css/images/js are missing).
View source gives you the path like http://magento2alpha.dev/pub/static/frontend/Magento/blank/en_US/[css/images]/[css/images file] which led to the 404 page
My nginx conf file looks like:
I guess the issue lies in the static files rewrite. But this is what I followed from the github which is not working. Is there any workaround?
The text was updated successfully, but these errors were encountered: