-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Can not install 2.0.0.0-dev81 #586
Comments
the static files materialization was changed. |
@kandy Thanks so much. But... how can I translated it into nginx configuration file? It seems to work a little .. but not really work. |
This looks like a basic regex mistake. |
@guoguolong, sorry for the delay. Did you have your issue resolved? If not, we will try to provide you with some solution. |
@guoguolong |
Confirming. The ruleset above works for static files materialisation w/ nginx. |
Would you have a full nginx vhost config for magento2 that I could see? Thanks |
I posted mine here. |
@ryan-brady @verklov
|
When I use: http://www.site.co.uk/static/install/Magento/basic/en_US/Magento_Theme/favicon.ico I get a 404 from the static rewrite? However, http://www.site.co.uk/static/install/Magento/basic/en_US/Magento_Theme/favicon does work with the rewrite *tested using a echo/die in static.php |
@craigcarnell Apache or Nginx? |
@tim-bezhashvyly It's nginx |
Have you added rewrite rules for the |
This is my hosts config in nginx if it helps:
|
There are no files in static, I am not sure if it's because the rewrite rule is not working so the files never get generated, or it's an issue installing (first time run) |
@craigcarnell Check write permissions in that directory for PHP's user. |
The server is running as www-data, the static directory is owned by www-data with 777 permissions and still no files |
As I have an echo and die in my static.php surely that means the rewrite is not working anyway regardless of no files in static? |
try comment
|
I have fixed the rewrite:
However, no files are being generated in static |
Am I right that my nginx document root should be the pub folder? i.e. index.php, static.php in that folder? |
Hi @kandy I tried your suggestion but with no luck |
@craigcarnell , your nginx root should be either root of Magento directory or If you work in |
@guoguolong, the team created a set of instructions on how to properly configure nginx to install Magento. I moved this information to the wiki page in this repository and it is available by the link: https://github.com/magento/magento2/wiki/Nginx-Configuration-Settings-and-Environment-Variables. I hope this helps you and other Community members trying to use nginx instead of apache. |
GET http://127.0.0.2/static/install/Magento/basic/en_US/jquery/jquery.js 404 (Not Found) \magento2\pub\static is emtpy PHP Version 5.4.30 System Windows NT PC201406301552 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586 server {
} |
on nginx , i use the url (http://127.0.0.2/static.php?resource=/install/Magento/basic/en_US/jquery/jquery.validate.js) is ok; i use the url(http://127.0.0.2/static.php?resource=/static/install/Magento/basic/en_US/jquery/jquery.validate.js) is bug |
…ub-fix-integration-test [Extensibility] Magetwo 52414 GitHub fix integration test
…overage #586 - Merge Pull Request magento/graphql-ce#586 from magento/graphql-ce:graphQl-581-set-shipping-method-on-an-empty-cart-test-coverage - Merged commits: 1. 8e40ce2
Magento2 will never be installed since 2.0.0.0-dev80. When I access magento2 url (mined is magento2.me), I got disordered page in a long long time, and no css & js apply to it. I viewed the http request by firebug, saw lots of 500 internal error. I used nginx as webserver. below is my nginx configuration(It's worked before dev80)
server {
listen 80;
server_name magento2.me;
root /projects/magento2.me;
error_log logs/magento2.error.log;
access_log logs/magento2.access.log;
location / {
index index.php;
try_files $uri $uri/ @handler;
expires off; ## Assume all files are cachable
}
}
location ~ ^/(.).php(/|$) {
#if (!-e $request_filename) { rewrite / /index.php last; } ## Catch 404s that try_files miss
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+.php)(/.)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS off;
}
}
Can anyone give me some suggestions?
The text was updated successfully, but these errors were encountered: