amazon web services - 502 error on NGINX server running with HHVM for a Magento APP -


i'm trying install magento on aws ec2 server running nginx & hhvm.

i'm getting 502 gateway error when open magento in browser. in /var/log/nginx/error.log have error:

2015/06/19 13:40:34 [crit] 1976#0: *4 connect() unix:/var/run/php5-fpm.sock failed (2: no such file or directory) while connecting upstream, client: 62.77.173.61, server: qa.magento.dev, request: "get / http/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "qa.magento.dev" 

from think nginx looking php5-fpm rather hhvm. idea how can fix this?

i able fix updating nginx configuration file with

# handle exectution of .php files.     location ~ .php$ {         if (!-e $request_filename) {             rewrite / /index.php last;         }         expires off;         fastcgi_pass   127.0.0.1:9000;         fastcgi_index  index.php;         fastcgi_param  script_filename $document_root$fastcgi_script_name;         include        fastcgi_params;         try_files $uri $uri/ @handler;        # fastcgi_pass unix:/var/run/php5-fpm.sock;         #fastcgi_param https $fastcgi_https;        # fastcgi_param script_filename $document_root$fastcgi_script_name;         fastcgi_param mage_run_code default;         fastcgi_param mage_run_type store;         include fastcgi_params;     } 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -