1

I am running hhvm on ubuntu14 with the following server.ini config:

server.ini

; php options

pid = /var/run/hhvm/pid

; hhvm specific 

;hhvm.server.port = 9000
hhvm.server.file.socket=/var/run/hhvm/hhvm.sock
hhvm.server.type = fastcgi
hhvm.server.default_document = index.php
hhvm.log.use_log_file = true
hhvm.log.file = /var/log/hhvm/error.log
hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc

I commented out the 9000 port line and added the file socket option. After this change, when I restart the service, it seems that hhvm appears to bind on port 80 as well (I am trying to run nginx on port 80). I could not find any config for hhvm where it explicitly binds on port 80. Any thoughts on how I can go about ensuring that hhvm does not use port 80.

php.ini

; php options
session.save_handler = files
session.save_path = /var/lib/hhvm/sessions
session.gc_maxlifetime = 1440

; hhvm specific 
hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 8191
hhvm.mysql.typed_results = false

I also do not see hhvm.sock in /var/run/hhvm.

Update When I comment tout the file socket and replace it with the port, hhvm binds to port 9000 instead of 80. I need to figure out the correct method of using hhvm with nginx (allowing nginx to run on port 80)

ali haider
  • 1,120
  • 3
  • 15
  • 26

2 Answers2

0

I ended up using the port number as opposed to the file socket option and got it to work.

ali haider
  • 1,120
  • 3
  • 15
  • 26
0

It should be hhvm.server.file_socket, not hhvm.server.file.socket.

ultracrepidarian
  • 138
  • 1
  • 1
  • 4