Home  >  Article  >  CMS Tutorial  >  How to modify php.ini in wordpress

How to modify php.ini in wordpress

藏色散人
藏色散人Original
2020-10-22 09:07:343950browse

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"

wordpress Detailed 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

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

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!

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