Home>Article>Backend Development> What should I do if changing php.ini in php7 does not work?

What should I do if changing php.ini in php7 does not work?

藏色散人
藏色散人 Original
2022-11-07 09:54:29 2216browse

php7 Solution to the problem that changing php.ini does not work: 1. Check the path of the configuration file; 2. Modify the parameters of "php.ini" under windows; 3. Set the parameters of "post_max_size" It is N times of "upload_max_filesize"; 4. Restart apache.

What should I do if changing php.ini in php7 does not work?

The operating environment of this tutorial: Windows 7 system, PHP 7 version, Dell G3 computer.

php7 Modifying php.ini does not take effect?

Solution:

I am working on the php file today A problem occurs when uploading: it always prompts

Warning: POST Content-Length of 10880209 bytes exceeds the limit of 8388608 bytes in Unknown on line 0. Follow the online solution to find the settings of post_max_size and upload_max_filesize in php.ini I modified the parameters, but found that there was no response after restarting apache.

What should I do if changing php.ini in php7 does not work?

So I output phpinfo on the page and found that my effective configuration file was not in the php installation directory, but under C://windows, and then I checked under windows. Modify the parameters in php.ini

What should I do if changing php.ini in php7 does not work?

What should I do if changing php.ini in php7 does not work?

It should be noted that the post_max_size parameter is best set to N times the upload_max_filesize, and finally restart apache Found that the upload was successful.

What should I do if changing php.ini in php7 does not work?

Recommended study: "PHP Video Tutorial"

The above is the detailed content of What should I do if changing php.ini in php7 does not work?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn