{"action":"closed","issue":{"url":"https://api.github.com/repos/librenms/librenms/issues/1996","labels_url":"https://api.github.com/repos/librenms/librenms/issues/1996/labels{/name}","comments_url":"https://api.github.com/repos/librenms/librenms/issues/1996/comments","events_url":"https://api.github.com/repos/librenms/librenms/issues/1996/events","html_url":"https://github.com/librenms/librenms/issues/1996","id":108464305,"number":1996,"title":"LibreNMS on nginx+HHVM","user":{"login":"Diftraku","id":171226,"avatar_url":"https://avatars.githubusercontent.com/u/171226?v=3","gravatar_id":"","url":"https://api.github.com/users/Diftraku","html_url":"https://github.com/Diftraku","followers_url":"https://api.github.com/users/Diftraku/followers","following_url":"https://api.github.com/users/Diftraku/following{/other_user}","gists_url":"https://api.github.com/users/Diftraku/gists{/gist_id}","starred_url":"https://api.github.com/users/Diftraku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diftraku/subscriptions","organizations_url":"https://api.github.com/users/Diftraku/orgs","repos_url":"https://api.github.com/users/Diftraku/repos","events_url":"https://api.github.com/users/Diftraku/events{/privacy}","received_events_url":"https://api.github.com/users/Diftraku/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-26T13:39:08Z","updated_at":"2015-11-22T18:00:53Z","closed_at":"2015-11-22T18:00:53Z","body":"So far, I have a working nginx configuration I am using for LibreNMS and switching over to HHVM was easy. See below for the nginx config (and a similar issue, #1904, for getting LibreNMS running with nginx+PHP-FPM):\r\n```\r\nserver {\r\n        listen 80;\r\n        server_name librenms;\r\n        root /opt/librenms/html;\r\n        index index.php;\r\n\r\n        ##\r\n        # Logging\r\n        ##\r\n        access_log /var/log/nginx/librenms.access.log;\r\n        error_log  /var/log/nginx/librenms.error.log;\r\n\r\n        location / {\r\n                try_files $uri $uri/ /index.php;\r\n        }\r\n\r\n        ##\r\n        # HHVM\r\n        ##\r\n        include hhvm.conf;\r\n}\r\n```\r\n\r\nThe only difference to the issue mentioned before, HHVM does not provide a ```ORIG_SCRIPT_FILENAME``` to the PHP-script. A one-liner to the ``hhvm.conf`` at least gets the stuff running:\r\n```\r\nfastcgi_param  ORIG_SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n```\r\nWhile it is similar to ``SCRIPT_FILENAME``, I believe this will get us at least somewhere. The next issue is the lack of SNMP extension on HHVM.\r\n\r\nSo, to conclude:\r\n* LibreNMS runs beautifully with nginx+PHP-FPM\r\n* HHVM is a special case and thus requires tweaking your nginx configuration\r\n* Lack of an SNMP-extension built into HHVM prevents further testing"}}