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
Post a Comment