Using HHVM with php-fpm fallback configuration in Ubuntu 14.04 64bit clean install


#1

Dear EasyEngine Community User.

This is my first thread for EasyEngine. I am highly satisfied with EasyEngine because of it’s well defined tutorial and community.

However some tutorial is out of dated, so I couldn’t configure well for the current situation.

Like many other people, I would like to optimize my website using EasyEngine, so I follow the Using HHVM with PHP-FPM Fallback(https://easyengine.io/tutorials/php/hhvm-with-fpm-fallback/) after clean Ubuntu 14.04 64bit.

I installed my website for using wp with hhvm and letsencrypt option ee site create example.com --wp --hhvm --user=admin --pass=password --email=me@me.com --letsencrypt

In the “Use HHVM and adding PHP5-FPM as fallback:” Section, When I opened my Upstream.conf file, I can check the following information.

Common upstream settings

upstream php {

server unix:/run/php5-fpm.sock;

server 127.0.0.1:9000; } upstream debug {

Debug Pool

server 127.0.0.1:9001; }

upstream hhvm { server 127.0.0.1:8000; server 127.0.0.1:9000 backup; }

When I change the cons file like the tutorial, nginx couldn’t start properly.

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; }

There are some document in the google, however I couldn’t find the proper solution because I am using EasyEngine.

Do you know the beautiful solution for my situation?

Sincerely,

Honggi An


#2

Just a heads up on HHVM’s longevity with EasyEngine. Before you settle for HHVM, I suggest you read this thread first if you haven’t already:


#3

Thanks Nichlas, It seems that you didn’t recommend using HHVM with EasyEngine, right?

I would like to optimize using EasyEngine, when the tutorial will be updated properly, maybe we can save much time each other. I am positive for paid user tutorial view option in this site.


#4

For my own business and performance needs, I never saw any appeal in using HHVM over PHP 7.

Also, if you’re new to EasyEngine, I would definitely recommend you go with PHP 7 instead.


#5

Thank you so much for your reply. I will consider using php7 instead of HHVM.


#6

Where did you find this code? It’s not in the original article if you were following it. There are only two blocks:

upstream php and upstream debug, there’s no upstream hhvm…


#7

That code has been generated by automatically in my situation Ubuntu 14.04 64bit LTS version.


#8

My bad, yes it now present in upstream.conf, I apologize. OK so when you’re saying nginx couldn’t restart properly, what error(s) do you see in logs?


#9

Dear Tyrro

Sorry for late response, I already deleted the os and EazyEngine, so I have to reinstall to reply your question.

From the clean install, the “php5-fpm -t && service php5-fpm restart” command doesn’t work with this error “The program ‘php5-fpm’ is currently not installed. You can install it by typing: apt-get install php5-fpm”

So when I type apt-get install php5-fpm, I should install

“php5-common php5-fpm php5-json” too

Here is the main reply for your question.

root@test:~# nginx -t && service nginx restart nginx: [emerg] no port in upstream “hhvm” in /etc/nginx/common/php-hhvm.conf:9 nginx: configuration file /etc/nginx/nginx.conf test failed


#10

It looks like your install is broken. I would start fresh and then move your sites to new server.


#11