Modify php.ini does not take effect problem resolution (upload files larger than 8M) _php tutorial

Source: Internet
Author: User
Abstract: uploading files larger than 8M requires the configuration of PHP to be modified to take effect. But I found a lot of information on the Internet to modify the configuration, but I did not take effect after the modification.

Workaround:

Modify php.ini This option, there are a lot of tutorials on the Web, you can search casually.
1, first use the root account, login to the nobody account.
2, then use whereis PHP command to view, php.ini location, modify the php.ini file on it.
3, the final restart Apache, it will be effective.

The nobody account here is Apache's account, with very low authority.
The main concern here is that the configuration file you are modifying must be a configuration file that is used by nobody.
In general, the configuration is modified but not effective, you can consider whether there are multiple configurations on the machine.

Report:
PHP configuration parameters related to file uploads

http://www.bkjia.com/PHPjc/327619.html www.bkjia.com true http://www.bkjia.com/PHPjc/327619.html techarticle Abstract: Uploading files larger than 8M requires the configuration of PHP to be modified to take effect. But I found a lot of information on the Internet to modify the configuration, but I did not take effect after the modification. Solution Side ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.