{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/4698","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/4698/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/4698/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/4698/events","html_url":"https://github.com/facebook/hhvm/issues/4698","id":55284535,"number":4698,"title":"Porting WebApp - WSOD - no erros / were to start?","user":{"login":"EugenMayer","id":136934,"avatar_url":"https://avatars.githubusercontent.com/u/136934?v=3","gravatar_id":"","url":"https://api.github.com/users/EugenMayer","html_url":"https://github.com/EugenMayer","followers_url":"https://api.github.com/users/EugenMayer/followers","following_url":"https://api.github.com/users/EugenMayer/following{/other_user}","gists_url":"https://api.github.com/users/EugenMayer/gists{/gist_id}","starred_url":"https://api.github.com/users/EugenMayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EugenMayer/subscriptions","organizations_url":"https://api.github.com/users/EugenMayer/orgs","repos_url":"https://api.github.com/users/EugenMayer/repos","events_url":"https://api.github.com/users/EugenMayer/events{/privacy}","received_events_url":"https://api.github.com/users/EugenMayer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/hhvm/labels/needs%20more%20info","name":"needs more info","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-23T14:06:41Z","updated_at":"2015-01-23T23:33:01Z","closed_at":null,"body":"Hello,\r\n\r\niam trying to port a quite big Drupal app to hhvm. \r\n\r\n**As os/LAMP am running**\r\n - php 5.5.20-1~dotdeb.1\r\n - percona 5.6 \r\n - apache2.2\r\n - under wheezy 7.8\r\n\r\nOf course, under FPM the app works flawlessly (so this is not a general PHP issues).\r\n\r\n**When running with HHVM, iam running**\r\n - HipHop VM 3.6.0-dev (rel) (1.23) **OR** HipHop VM 3.5.0-dev~nightly.2015.01.07 (dbg) \r\n - the php.ini is: http://pastie.org/9854487 and the server.ini is http://pastie.org/9854486\r\n - this are the vhost additions for HHVM, iam using the fastcgi mode http://pastie.org/9854511\r\n - running under www-data/www-data\r\n\r\n**Preamble**\r\nRunning a Drupal 7 standard, configured with hhvm works without issues, so generally hhvm is capable to operrate in this enviroment.\r\nIn my case i have a quite heavy modiefied Drupal 6 in terms to run under php 5.5, removed all deprecated php calls and so forth\r\n\r\n**Problems**\r\nAs you see i tried to enable the maximum amount of logging / debug to get an idea were i run into issues. But i dont really get any helpfull logging and when i try to startup the app, i get a WSOD with a \"Stack Overflow\" message, logs are: http://pastie.org/9854492\r\n\r\n**Questions**\r\n - what did i do wrong with the logging that i can really see anything usefull in /var/log/hhvm/error.log?\r\n - can i use a xdebug-session to maybe step through the code one by one?\r\n - what is the general approach for step-by-step debuggin hhvm web-apps startup issue?\r\n - do i somehow get not as good debuggin logging since iam using the fastcgi mode?\r\n - i dont even have /tmp/stacktrace-pid to further analyze the issue\r\n - i seems like the hvvm-nightly builds are newer then hvvm-nightl-dbg ... is this supposed to be?\r\n - what is about wheezy-dev? what are those repos for, should i use those?\r\n\r\nThanks a lot in advance"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/71284947","html_url":"https://github.com/facebook/hhvm/issues/4698#issuecomment-71284947","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/4698","id":71284947,"user":{"login":"EugenMayer","id":136934,"avatar_url":"https://avatars.githubusercontent.com/u/136934?v=3","gravatar_id":"","url":"https://api.github.com/users/EugenMayer","html_url":"https://github.com/EugenMayer","followers_url":"https://api.github.com/users/EugenMayer/followers","following_url":"https://api.github.com/users/EugenMayer/following{/other_user}","gists_url":"https://api.github.com/users/EugenMayer/gists{/gist_id}","starred_url":"https://api.github.com/users/EugenMayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EugenMayer/subscriptions","organizations_url":"https://api.github.com/users/EugenMayer/orgs","repos_url":"https://api.github.com/users/EugenMayer/repos","events_url":"https://api.github.com/users/EugenMayer/events{/privacy}","received_events_url":"https://api.github.com/users/EugenMayer/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T23:33:01Z","updated_at":"2015-01-23T23:33:01Z","body":"Seriously why do i meet people like you so rarely. You guys dont talk arround, you just analyze and do implications, picking what is the most likely one. This is a freaking compliment :) Thanks!\r\n\r\nTo the case:\r\nI first though you would not explain every piece here, sine the yaml_parse_file test was isolated, i used a seperated test.php with just 3 lines of code ( like the screenshot ). But then i remembered that drupal has an interesting \"best practice\" vhost settings, which would be in affect, since that test.php was in the same docroot as the drupal installation (i just tried to run simple test, so i reused it).\r\n\r\n># Error handler for Drupal > 4.6.7\r\n    <Directory \"/var/www/drupal/sites/my.domain/files\">\r\n      SetHandler This_is_a_Drupal_security_line_do_not_remove\r\n    </Directory>\r\n\r\nsorrry i had to obfuscated the path and sites name - the odd thing is, this should actually just be in affect when accessing files, not index.php.\r\nBut, i then tried to completly ensure, the error is not in any way related to anything drupal based and created a fresh vhost: http://pastie.org/9855748 and ensured nothing is in there except the test.php file: http://pastie.org/9855753\r\n\r\nStill, running that page gives me just an error in the browser \"Call to undefined function yaml_parse_file()\" but no error in the error log excpet the one provoked by error_log( \"Hello, errors!\" );\r\n\r\nI excluded every special conf.d in the apache config to ensure a clean setup as far as possible - for now, still no errors logged.\r\n\r\nSo before we go on and i touch the error handler which are for sure...to be deactivated (why i did not think about this before), we should first get this single script up and running i guess\r\n\r\n    <?php\r\n    yaml_parse_file(\"\");\r\n\r\nthis should produce and error logged in the error logged right? Do you agree to keep on working on this before continuing with the webapp?\r\n\r\n> How customized is your Drupal 6 install?\r\n\r\nWell Drupal6 does not even fully support 5.2. The core is adjusted, patched to ensure working with php5.3, later 5.5 and smaller other changes - but more or less is Drupal 6. But we have more then 130 own contrib modules installed, which makes this drupal \"more complicated\" - but i dont expect you guys to care about anyhing arround thats - thats all my duty. All i need is getting help to see a bit of those errors to let me take care of what i have to adjust :)\r\n\r\nThanks a lot, really.\r\n\r\n\r\n"}}