Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to modify the upload file size limit of phpmyadmin

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to modify the phpmyadmin upload file size limit, I believe that most people do not know much, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Resolving the size limit of phpmyadmin uploaded files involves modifying php.ini configuration files and phpmyadmin configuration files.

To modify the size limit of phpmyadmin uploaded files, you can modify the php.ini configuration file (in the php installation file) and the phpmyadmin configuration file (config.inc.php).

Step 1: modify the file upload size configuration in the php.ini configuration file

This step is consistent with the general method of uploading PHP.INI configuration files, and you need to modify the values of upload_max_filesize and post_max_size options in the php.ini configuration file.

Open the php.ini configuration file and find file_uploads

File_uploads = On

HTTP file upload is allowed by default, and this option cannot be set to OFF.

Upload_tmp_dir =

The default is empty, and this option is easy to forget when configuring the PHP environment manually. If you do not configure this option, the file upload function cannot be realized. This option sets the temporary directory where files are stored when uploading files, and you must assign a value to this option. For example, upload_tmp_dir ='/ leapsoulcn', represents a leapsoulcn directory under C disk directory, which is the same as session configuration, if you are in linux environment. You must give this directory writeable access.

Step 2: modify the execution time and memory limit of php to realize the function of phpmyadmin uploading large files

If you want phpmyadmin to upload large files, you also need to modify the three configuration options in the php.ini configuration file: max_execution_time (maximum time for php pages to execute), max_input_time (maximum time for php pages to accept data), and memory_limit (maximum memory consumed by php pages).

This is because when phpmyadmin uploads large files, the execution time and memory footprint of php pages are bound to become longer and larger, which requires the cooperation of php running environment, so it is not enough to modify the size limit of uploaded files.

Step 3: modify the phpmyadmin configuration file

After completing the relevant configuration of php.ini, you also need to modify the phpmyadmin configuration.

1. Modify the $cfg ['ExecTimeLimit'] configuration option in the phpmyadmin config configuration file. The default value is 300, which needs to be changed to 0, that is, there is no time limit.

2. Modify the $memory_limit in the import page under the root directory of the phpmyadmin installation

Description: first of all, read the memory configuration option memory_limit in the php.ini configuration file, if it is empty, the default memory size is limited to 2m, if there is no limit, the memory size is limited to 10m, you can modify this code with the relevant information in your php.ini configuration file.

At this point, after modifying the file upload configuration options in the php.ini configuration file and the phpmyadmin configuration file, you can solve the phpmyadmin upload file size limit, thus realizing the phpmyadmin upload large file feature.

The above is all the contents of the article "how to modify the upload file size limit of phpmyadmin". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report