Guest User

Untitled

a guest
Aug 27th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 KB | None | 0 0
  1. [error] 6714#6714: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Cannot instantiate interface MagentoFrameworkAppConfigScopeReaderPoolInterface in /var/www/nginx/bookstore/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:73
  2. Stack trace:
  3. #0 /var/www/nginx/bookstore/vendor/magento/framework/ObjectManager/ObjectManager.php(71): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('Magento\Framewo...')
  4. #1 /var/www/nginx/bookstore/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(126): MagentoFrameworkObjectManagerObjectManager->get('Magento\Framewo...')
  5. #2 /var/www/nginx/bookstore/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(53): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array, 'Magento\Framewo...', NULL, 'readerPool', 'Magento\Framewo...')
  6. #3 /var/www/nginx/bookstore/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(82): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->_resolveArgum" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"
  7.  
  8. upstream fastcgi_backend {
  9. server 127.0.0.1:9000;
  10. }
  11. server {
  12. listen 80;
  13. server_name localhost;
  14.  
  15. set $MAGE_ROOT /var/www/nginx/bookstore/;
  16. set $MAGE_MODE developer;
  17.  
  18. include /var/www/nginx/bookstore/nginx.conf.sample;
  19. }
  20.  
  21. ## Example configuration:
  22. # upstream fastcgi_backend {
  23. # # use tcp connection
  24. # # server 127.0.0.1:9000;
  25. # # or socket
  26. # server unix:/var/run/php5-fpm.sock;
  27. # }
  28. # server {
  29. # listen 80;
  30. # server_name mage.dev;
  31. # set $MAGE_ROOT /var/www/magento2;
  32. # include /vagrant/magento2/nginx.conf.sample;
  33. # }
  34. #
  35. ## Optional override of deployment mode. We recommend you use the
  36. ## command 'bin/magento deploy:mode:set' to switch modes instead.
  37. ##
  38. ## set $MAGE_MODE default; # or production or developer
  39. ##
  40. ## If you set MAGE_MODE in server config, you must pass the variable into the
  41. ## PHP entry point blocks, which are indicated below. You can pass
  42. ## it in using:
  43. ##
  44. ## fastcgi_param MAGE_MODE $MAGE_MODE;
  45. ##
  46. ## In production mode, you should uncomment the 'expires' directive in the /static/ location block
  47.  
  48. root $MAGE_ROOT/pub;
  49.  
  50. index index.php;
  51. autoindex off;
  52. charset UTF-8;
  53. error_page 404 403 = /errors/404.php;
  54. #add_header "X-UA-Compatible" "IE=Edge";
  55.  
  56. # PHP entry point for setup application
  57. location ~* ^/setup($|/) {
  58. root $MAGE_ROOT;
  59. location ~ ^/setup/index.php {
  60. fastcgi_pass fastcgi_backend;
  61. fastcgi_index index.php;
  62. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  63. include fastcgi_params;
  64. }
  65.  
  66. location ~ ^/setup/(?!pub/). {
  67. deny all;
  68. }
  69.  
  70. location ~ ^/setup/pub/ {
  71. add_header X-Frame-Options "SAMEORIGIN";
  72. }
  73. }
  74.  
  75. # PHP entry point for update application
  76. location ~* ^/update($|/) {
  77. root $MAGE_ROOT;
  78.  
  79. location ~ ^/update/index.php {
  80. fastcgi_split_path_info ^(/update/index.php)(/.+)$;
  81. fastcgi_pass fastcgi_backend;
  82. fastcgi_index index.php;
  83. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  84. fastcgi_param PATH_INFO $fastcgi_path_info;
  85. include fastcgi_params;
  86. }
  87.  
  88. # Deny everything but index.php
  89. location ~ ^/update/(?!pub/). {
  90. deny all;
  91. }
  92.  
  93. location ~ ^/update/pub/ {
  94. add_header X-Frame-Options "SAMEORIGIN";
  95. }
  96. }
  97.  
  98. location / {
  99. try_files $uri $uri/ /index.php?$args;
  100. }
  101.  
  102. location /pub/ {
  103. location ~ ^/pub/media/(downloadable|customer|import|theme_customization/.*.xml) {
  104. deny all;
  105. }
  106. alias $MAGE_ROOT/pub/;
  107. add_header X-Frame-Options "SAMEORIGIN";
  108. }
  109.  
  110. location /static/ {
  111. # Uncomment the following line in production mode
  112. # expires max;
  113.  
  114. # Remove signature of the static files that is used to overcome the browser cache
  115. location ~ ^/static/version {
  116. rewrite ^/static/(versiond*/)?(.*)$ /static/$2 last;
  117. }
  118.  
  119. location ~* .(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
  120. add_header Cache-Control "public";
  121. add_header X-Frame-Options "SAMEORIGIN";
  122. expires +1y;
  123.  
  124. if (!-f $request_filename) {
  125. rewrite ^/static/(versiond*/)?(.*)$ /static.php?resource=$2 last;
  126. }
  127. }
  128. location ~* .(zip|gz|gzip|bz2|csv|xml)$ {
  129. add_header Cache-Control "no-store";
  130. add_header X-Frame-Options "SAMEORIGIN";
  131. expires off;
  132.  
  133. if (!-f $request_filename) {
  134. rewrite ^/static/(versiond*/)?(.*)$ /static.php?resource=$2 last;
  135. }
  136. }
  137. if (!-f $request_filename) {
  138. rewrite ^/static/(versiond*/)?(.*)$ /static.php?resource=$2 last;
  139. }
  140. add_header X-Frame-Options "SAMEORIGIN";
  141. }
  142.  
  143. location /media/ {
  144. try_files $uri $uri/ /get.php?$args;
  145.  
  146. location ~ ^/media/theme_customization/.*.xml {
  147. deny all;
  148. }
  149.  
  150. location ~* .(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
  151. add_header Cache-Control "public";
  152. add_header X-Frame-Options "SAMEORIGIN";
  153. expires +1y;
  154. try_files $uri $uri/ /get.php?$args;
  155. }
  156. location ~* .(zip|gz|gzip|bz2|csv|xml)$ {
  157. add_header Cache-Control "no-store";
  158. add_header X-Frame-Options "SAMEORIGIN";
  159. expires off;
  160. try_files $uri $uri/ /get.php?$args;
  161. }
  162. add_header X-Frame-Options "SAMEORIGIN";
  163. }
  164.  
  165. location /media/customer/ {
  166. deny all;
  167. }
  168.  
  169. location /media/downloadable/ {
  170. deny all;
  171. }
  172.  
  173. location /media/import/ {
  174. deny all;
  175. }
  176.  
  177. # PHP entry point for main application
  178. location ~ (index|get|static|report|404|503).php$ {
  179. try_files $uri =404;
  180. fastcgi_pass fastcgi_backend;
  181. fastcgi_buffers 1024 4k;
  182.  
  183. fastcgi_param PHP_FLAG "session.auto_start=off n suhosin.session.cryptua=off";
  184. fastcgi_param PHP_VALUE "memory_limit=768M n max_execution_time=600";
  185. fastcgi_read_timeout 600s;
  186. fastcgi_connect_timeout 600s;
  187.  
  188. fastcgi_index index.php;
  189. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  190. include fastcgi_params;
  191. }
  192.  
  193. gzip on;
  194. gzip_disable "msie6";
  195.  
  196. gzip_comp_level 6;
  197. gzip_min_length 1100;
  198. gzip_buffers 16 8k;
  199. gzip_proxied any;
  200. gzip_types
  201. text/plain
  202. text/css
  203. text/js
  204. text/xml
  205. text/javascript
  206. application/javascript
  207. application/x-javascript
  208. application/json
  209. application/xml
  210. application/xml+rss
  211. image/svg+xml;
  212. gzip_vary on;
  213.  
  214. # Banned locations (only reached if the earlier PHP entry point regexes don't match)
  215. location ~* (.php$|.htaccess$|.git) {
  216. deny all;
  217. }
Add Comment
Please, Sign In to add comment