{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/3730","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/3730/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/3730/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/3730/events","html_url":"https://github.com/facebook/hhvm/issues/3730","id":42513496,"number":3730,"title":"fastcgi_param PHP_VALUE not working in Apache/Nginx","user":{"login":"tbulla","id":4988587,"avatar_url":"https://avatars.githubusercontent.com/u/4988587?v=3","gravatar_id":"","url":"https://api.github.com/users/tbulla","html_url":"https://github.com/tbulla","followers_url":"https://api.github.com/users/tbulla/followers","following_url":"https://api.github.com/users/tbulla/following{/other_user}","gists_url":"https://api.github.com/users/tbulla/gists{/gist_id}","starred_url":"https://api.github.com/users/tbulla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbulla/subscriptions","organizations_url":"https://api.github.com/users/tbulla/orgs","repos_url":"https://api.github.com/users/tbulla/repos","events_url":"https://api.github.com/users/tbulla/events{/privacy}","received_events_url":"https://api.github.com/users/tbulla/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/hhvm/labels/php5%20incompatibility","name":"php5 incompatibility","color":"837ced"},{"url":"https://api.github.com/repos/facebook/hhvm/labels/webserver","name":"webserver","color":"22CCAA"}],"state":"open","locked":false,"assignee":{"login":"JoelMarcey","id":3757713,"avatar_url":"https://avatars.githubusercontent.com/u/3757713?v=3","gravatar_id":"","url":"https://api.github.com/users/JoelMarcey","html_url":"https://github.com/JoelMarcey","followers_url":"https://api.github.com/users/JoelMarcey/followers","following_url":"https://api.github.com/users/JoelMarcey/following{/other_user}","gists_url":"https://api.github.com/users/JoelMarcey/gists{/gist_id}","starred_url":"https://api.github.com/users/JoelMarcey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoelMarcey/subscriptions","organizations_url":"https://api.github.com/users/JoelMarcey/orgs","repos_url":"https://api.github.com/users/JoelMarcey/repos","events_url":"https://api.github.com/users/JoelMarcey/events{/privacy}","received_events_url":"https://api.github.com/users/JoelMarcey/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2014-09-11T11:20:24Z","updated_at":"2015-01-29T09:10:29Z","closed_at":null,"body":"According to several comments on various sites, it should be possible to set PHP/HHVM configuration values via the fastcgi_param settings of your webservers host file.\r\n\r\nI tried this with Apache 2.4 and nginx 1.4.1 on Ubuntu. In both cases the contents of the variable PHP_VALUE showed up within my script's $_SERVER variable, but had no effect on any ini setting.\r\n\r\nSample Nginx config:\r\n\r\n    location ~ \\.(hh|php)$ {\r\n        fastcgi_keep_conn on;\r\n        fastcgi_pass   unix:/var/run/hhvm/sock;\r\n        # fastcgi_pass   127.0.0.1:9000;\r\n        fastcgi_index  index.php;\r\n        fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n        fastcgi_param  PHP_VALUE \"include_path=\\\"$document_root/../includes\\\" \\n error_log=\\\"$do\r\n        fastcgi_param  SERVERTYPE dev;\r\n        include        fastcgi_params;\r\n    }\r\n\r\nTried as local and TCP Socket. Both with PHP_VALUE and PHP_ADMIN_VALUE. Tried as a single setting and as multiple settings seperated by \\n with and without quotes. No change whatsoever.\r\n\r\nTested with this PHP code:\r\n\r\n    <?php\r\n    header(\"Content-type: text/plain\");\r\n    echo \"Inc: \".ini_get(\"include_path\").\"\\n\";\r\n    echo \"Err: \".ini_get(\"error_log\").\"\\n\";\r\n    print_r($_SERVER);\r\n\r\nOutput in all cases is this:\r\n\r\n    Inc: .\r\n    Err: \r\n    Array\r\n    (\r\n    // shortened\r\n        [PHP_VALUE] => include_path=\"/var/www/default/root/../includes\" \r\n     error_log=\"/var/www/default/root/../log\"\r\n    // shortened\r\n    )\r\n\r\nThe expected result would be that all settings in PHP_VALUE/PHP_ADMIN_VALUE are used as configuration settings.\r\nA documentation page about what can and what can not be used and how would also be great.\r\n\r\n    Version: HipHop VM 3.0.1 (rel)"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/71991784","html_url":"https://github.com/facebook/hhvm/issues/3730#issuecomment-71991784","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/3730","id":71991784,"user":{"login":"tbulla","id":4988587,"avatar_url":"https://avatars.githubusercontent.com/u/4988587?v=3","gravatar_id":"","url":"https://api.github.com/users/tbulla","html_url":"https://github.com/tbulla","followers_url":"https://api.github.com/users/tbulla/followers","following_url":"https://api.github.com/users/tbulla/following{/other_user}","gists_url":"https://api.github.com/users/tbulla/gists{/gist_id}","starred_url":"https://api.github.com/users/tbulla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbulla/subscriptions","organizations_url":"https://api.github.com/users/tbulla/orgs","repos_url":"https://api.github.com/users/tbulla/repos","events_url":"https://api.github.com/users/tbulla/events{/privacy}","received_events_url":"https://api.github.com/users/tbulla/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T09:10:29Z","updated_at":"2015-01-29T09:10:29Z","body":"Any news on this issue?"}}