-
Notifications
You must be signed in to change notification settings - Fork 432
HHVM with EE 2.x.x
Note: This is only for testing purpose, not recommended for production server.
For installation of HHVM please follow this guide: https://github.com/facebook/hhvm/wiki/Prebuilt%20Packages%20for%20HHVM
We need to configure our web server to use HHVM,
sudo /usr/share/hhvm/install_fastcgi.shOpen server.ini file:
vim /etc/hhvm/server.iniIf HHVM crashed then site must use PHP-FPM as fallback, so change HHVM server port from 9000 to 8000
hhvm.server.port = 8000Open php.ini file:
vim /etc/hhvm/php.iniAdd following towards end of file:
hhvm.log.header = true
hhvm.log.natives_stack_trace = trueNote: This editing is not required, as we are not using this file, but if have included hhvm.conf in your previous site then you also need to change HHVM port here.
vim /etc/nginx/hhvm.confand change HHVM port from 9000 to 8000:
fastcgi_pass 127.0.0.1:8000;Open fastcgi.conf file:
vim /etc/nginx/conf.d/fastcgi.confand add following line towards end of file:
fastcgi_keep_conn on;Open Upstream.conf file:
vim /etc/nginx/conf.d/upstream.confand make sure it look like this:
# Common upstream settings
upstream php {
# server unix:/run/php5-fpm.sock;
server 127.0.0.1:8000;
server 127.0.0.1:9000 backup;
}
upstream debug {
# Debug Pool
server 127.0.0.1:9001;
}service hhvm restart
php5-fpm -t && service php5-fpm restart
nginx -t && service nginx restart- Using web browser:
Just point your browser to https://example.com:22222/php/info.php, if you are seeing
HipHopthen, your server is using HHVM, otherwise it is using FPM - Using CURL: Use following command to test from command line:
curl -I example.comIf you are able to see line like this:
X-Powered-By: HHVM/3.2.0then your site is using HHVM, otherwise FPM
- We also like to know to your experience for HHVM with EE, for that you can comment here: #180 .
- If your configuration is better that us or you feel like we are missing something you can use our HHVM checlist #199
EasyEngine (ee):
- Installation
- Stack Module
- Site Module
- Debug Module
- Secure Module
- Other commands
- Configurartion File
- EasyEngine Logs
Tutorials:
- SFTP Setup
- Remote MySQL
- Setup OpenDKIM
- HHVM with EE 2.x.x
- Prevent MySQL crashing
- Change WordPress Cache
- Migrate Website With EasyEngine
- EasyEngine with Hosting Providers
Misc:
- FAQ
- Roadmap
- [Support Forum] (http://community.rtcamp.com/c/easyengine/)
- EasyEngine Update
- EasyEngine Admin Tools
- EasyEngine Beta Testing
Chat:
- [EasyEngine Developer Chat] (https://gitter.im/rtCamp/easyengine)
Testing:
- [Travis-CI] (https://travis-ci.org/rtCamp/easyengine/)
Donations:
Recently Modified: