Home> CMS Tutorial> WordPress> body text

How to modify php.ini in wordpress

藏色散人
Release: 2020-10-22 09:08:09
Original
3813 people have browsed it

How to modify php.ini in wordpress: first find and open the php.ini file; then configure the content as "file_uploads = on ;upload_tmp_dir;" etc.; finally save the modification.

How to modify php.ini in wordpress

Recommended: "PHP Video Tutorial"

wordpressDetailed explanation of the method of modifying the size limit of PHP upload files in php.ini

Open php.ini, first find

file_uploads = on; switch to allow uploading files through HTTP. The default is ON which means open

upload_tmp_dir; Files are uploaded to the place where temporary files are stored on the server. If not specified, the system default temporary folder will be used

upload_max_filesize = 8m; Wangwen Business , that is, the maximum allowed upload file size. The default is 2M

post_max_size = 8m; refers to the maximum value that can be received through form POST to PHP, including all values in the form. The default is 8M

Generally, after setting the above four parameters, uploading files of

But if you want to upload a large file >8M, it will definitely work if you only set the above four items.

Further configure the following parameters

max_execution_time = 600 ;每个PHP页面运行的最大时间值(秒),默认30秒 max_input_time = 600 ;每个PHP页面接收数据所需的最大时间,默认60秒 memory_limit = 8m ;每个PHP页面所吃掉的最大内存,默认8M
Copy after login

After modifying the above parameters, you can upload large files under normal circumstances allowed by the network

max_execution_time = 600 max_input_time = 600 memory_limit = 32m file_uploads = on upload_tmp_dir = /tmp upload_max_filesize = 32m post_max_size = 32m
Copy after login

The above is the detailed content of How to modify php.ini in wordpress. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!