nginx downloads php files instead of executing them (HHVM) -



nginx downloads php files instead of executing them (HHVM) -

i'm trying setup hhvm execute php code. using apache, switched nginx , i've got working. however, when seek access index.php download file instead of execute/serve it. configuration, , ran usr/share/hhvm/install_fastcgi after configuring , subsequently restarted nginx service.

server { hear 80; hear [::]:80; root /var/www/domain.com/public_html; index index.php index.html index.htm; server_name domain.com www.domain.com; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_index index.php; include fastcgi_params; } }

any ideas?

i fixed it. had include hhvm.conf file, , try_files stuff. here's new configuration:

server { hear 80; hear [::]:80; root /var/www/domain.com/public_html; index index.php index.html index.htm; server_name domain.com www.domain.com; include hhvm.conf; location ~ \.php$ { try_files $uri $uri/ /index.php; } }

php nginx hhvm

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -