Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong "Unknown Database Server Host" message during web wizard with PHP 5.6 #1057

Closed
samm-git opened this issue Feb 23, 2015 · 2 comments
Closed
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@samm-git
Copy link
Contributor

I was installing Magento with PHP-FPM 5.6.5 using web wizard and found that on database connection stage it fails with "Unknown Database Server Host.". I was using localhost (also tried 127.0.0.1) so it was a bogus message. With firebug i was able to find a root cause. Query to the http://127.0.0.1/setup/index.php/database-check returns this text:
<br /> <b>Deprecated</b>: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in <b>Unknown</b> on line <b>0</b><br /> <br /> <b>Warning</b>: Cannot modify header information - headers already sent in <b>Unknown</b> on line <b>0</b><br /> {"success":true}
This is not magento issue, but PHP 5.6 limitation discussed at https://bugs.php.net/bug.php?id=66763.
After i changed always_populate_raw_post_data to -1 installation was successful. I would recommend to add check if PHP is 5.6 and 'always_populate_raw_post_data' is not set to '-1'. Also it would be great to improve parsing of the database-check script response to paste warning to user if such broken response is returned. Also it would affect not only magento installer but probably magento itself if not set correctly.

P.S. here is a long discussion about this problem https://www.bram.us/2014/10/26/php-5-6-automatically-populating-http_raw_post_data-is-deprecated-and-will-be-removed-in-a-future-version/

@anupdugar
Copy link
Contributor

@samm-git Thanks for reporting the issue!. We will process it internally through ticket MAGETWO-33491. Also, feel free to submit fixes, if any, as a Pull request.

@joanhe joanhe added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Mar 3, 2015
@sshrewz
Copy link

sshrewz commented Mar 9, 2015

@samm-git, the solution for this issue is being processed in PR #1062 and should be available by end of this week. To avoid any miscommunication, we'll go ahead and close this issue, please refer to PR #1062 instead for updates. Thank you for submitting this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

5 participants