Editing PHP/HHVM
From Bibliotheca Anonoma
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
First, install HHVM: | |||
https://www.digitalocean.com/community/tutorials/how-to-install-hhvm-with-nginx-on-ubuntu-14-04 | |||
https://www.howtoforge.com/tutorial/how-to-install-wordpress-with-hhvm-and-nginx-on-centos-7/ | |||
For better performance, set up HHVM as a UNIX socket to reduce additional load from TCP layers. | |||
https://docs.hhvm.com/hhvm/advanced-usage/fastCGI#using-fastcgi | |||
Add | |||
{{hc|/etc/hhvm/server.ini|<nowiki> | {{hc|/etc/hhvm/server.ini|<nowiki> | ||
hhvm.server.file_socket=/var/run/hhvm/sock | |||
hhvm.server.file_socket = /var/run/hhvm/ | |||
</nowiki>}} | </nowiki>}} | ||
== Systemd Service == | == Systemd Service == | ||
Make sure you've installed Nginx from the official nginx repos, rather than your distribution's outdated versions. On both Debian and CentOS, this will result in the creation of an nginx user and group, which is then made accessible in the systemd service below: | |||
{{hc|/etc/systemd/system/hhvm.service|<nowiki> | {{hc|/etc/systemd/system/hhvm.service|<nowiki> | ||
Line 33: | Line 32: | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
</nowiki>}} | </nowiki>}} | ||