In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how wordpress modifies php.ini. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
How wordpress modifies php.ini: first find and open the php.ini file; then configure the content as "file_uploads = on; upload_tmp_dir;", etc.; finally, save the changes.
The php.ini of wordpress explains in detail the method of modifying the size limit of php uploaded files.
Open php.ini and find it first.
File_uploads = on; switch on whether to allow files to be uploaded through HTTP. Default is ON, that is, on.
Upload_tmp_dir; files are uploaded to the server where temporary files are stored, and if not specified, the system default temporary folder will be used
Upload_max_filesize = 8m; Wangwen business, that is, the maximum file size allowed to be uploaded. The default is 2m
Post_max_size = 8m; refers to the maximum value that can be received to PHP through the form POST, including all values in the form. The default is 8m
Generally speaking, after setting the above four parameters, uploading 8m large files, only setting the above four items will certainly work.
Further configure the following parameters
Max_execution_time = 600,30 seconds max_input_time = 600m for each PHP page, 60 seconds memory_limit = 8m for each PHP page, and 8m memory for each PHP page.
After the above parameters are modified, large files can be uploaded under the normal circumstances allowed by the network.
Max_execution_time = 600max_input_time = 600memory_limit = 32mfile_uploads = onupload_tmp_dir = / tmpupload_max_filesize = 32mpost_max_size = 32m Thank you for reading! This is the end of wordpress's method of modifying php.ini. I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.