S
S
Souznik2014-11-05 15:15:35
PHP
Souznik, 2014-11-05 15:15:35

How to set up your php.ini on Heroku?

Started with this:

Internal Server Error
Fatal error: 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 php 5.6 there is no support for HTTP_RAW_POST_DATA, it is not used in the code anyway, but PHP asks to do 'always_populate_raw_post_data' to '-1' in php.ini
The site is hosted on Heroku and I have no idea how to configure my php.ini for it.
Installed buildpack, it has php.ini, set 'always_populate_raw_post_data' to '-1' there, still the error does not go away. phpinfo() says always_populate_raw_post_data = 0.
What should I do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vit, 2014-11-05
@Souznik

Have you tried setting it in the code using ini_set? cct.me.ntut.edu.tw/ccteducation/chchting/aiahtm/co...
In general, here is the recommended way: https://devcenter.heroku.com/articles/custom-php-s...

X
xmoonlight, 2014-11-05
@xmoonlight

write to hosting support

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question