Answer the question
In order to leave comments, you need to log in
How to configure php.ini in Xampp for Linux?
Good afternoon. It is Xampp on Linux, I change the value of always_populate_raw_post_data in php.ini to -1 , but for some reason the change does not occur. I open phpinfo and there is a value of 0 , although in php.ini the value is -1 . Please tell me why and what to do.
Answer the question
In order to leave comments, you need to log in
You corrected in the wrong file or did not restart the web server after editing.
The phpinfo output, at the very beginning, indicates which configuration files were used.
In addition to the comments above, make sure that the function is not called in the code ini_set('always_populate_raw_post_data', 0)
, it has a higher precedence and can overwrite the configuration. php.net/manual/en/function.ini-set.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question