09.01.2015 Views

Hacking with HHVM

Hacking with HHVM

Hacking with HHVM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Running a FastCGI server<br />

nginx<br />

<strong>HHVM</strong><br />

server {!<br />

server_name www.example.com;!<br />

!<br />

root /var/www;!<br />

index index.php;!<br />

!<br />

location ~ \.php$ {!<br />

fastcgi_pass 127.0.0.1:9000;!<br />

fastcgi_index index.php;!<br />

fastcgi_param SCRIPT_FILENAME!<br />

/var/www$fastcgi_script_name;!<br />

include fastcgi_param;!<br />

}!<br />

}!<br />

Server {!<br />

Port = 9000!<br />

Type = fastcgi!<br />

SourceRoot = /var/www!<br />

}!<br />

Log {!<br />

Level = Error!<br />

UseLogFile = true!<br />

File = /var/log/hhvm-error.log!<br />

Access { * {!<br />

File = /var/log/hhvm-access.log!<br />

Format = %h %l %u %t \”%r\” %>s %b!<br />

}}!<br />

}!

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!