S
S
Schuller2015-12-24 09:47:25
PHP
Schuller, 2015-12-24 09:47:25

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

2 answer(s)
A
Alexey Ukolov, 2015-12-24
@alexey-m-ukolov

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.

A
Alexander Leonovich, 2015-12-24
@atlantech

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 question

Ask a Question

731 491 924 answers to any question