input license here

Sửa lỗi the uploaded file exceeds the upload_max_filesize directive in php.ini




The uploaded file exceeds the upload_max_filesize directive in php.ini What is the error? Do you often encounter this error when uploading data to the website? Please refer to the following article of BKNS for detailed information!


Khắc phục lỗi the uploaded file exceeds the upload_max_filesize directive in php.ini

Khắc phục lỗi the uploaded file exceeds the upload_max_filesize directive in php.ini


1. Nguyên nhân gây lỗi the uploaded file exceeds the upload_max_filesize directive in php.ini


Plugins and Themes are important components when building a website WordPress. However, in some cases, when you install Plugin or Theme you get the error "the uploaded file exceeds the upload_max_filesize directive in php.ini. Of course, when you encounter that error, you will not be able to install Plugin or Theme anymore.


The above error appears because the Hosting provider defaults to the maximum capacity uploaded to Hosting. Therefore, when you upload a file larger than the specified amount, an error message will appear. If you want to check the maximum limit when uploading a file Hosting you can go to: Media menu => Add file => Check


2. Khắc phục lỗi the uploaded file exceeds the upload_max_filesize directive in php.ini


2.1 Fix the uploaded file exceed the upload_max_filesize directive in php.ini by editing php.ini via cPanel


Step 1: Find to "MultiPHP INI Editor


Fix the error that the uploaded file exceeds the upload_max_filesize directive in php.ini by editing php.ini via cPanel


Step 2: Choose your website


Step 3: Edit "upload_max_filesize“Based on your needs


Fix the error the uploaded file exceeds the upload_max_filesize directive in php.ini by editing php.ini via cPanel 1


2.2 Fix the error that the uploaded file exceeds the upload_max_filesize directive in php.ini by editing the php.ini file on DirectAdmin Hosting


Step 1: Login Hosting


Step 2: Select the domain you want to change PHP version


Step 3: Choose "Select PHP version


Fix the error that the uploaded file exceeds the upload_max_filesize directive in php.ini by editing the php.ini file on DirectAdmin Hosting 2


Step 4: Customize PHP version including PHP Extension, PHP Settings


Fix the error that the uploaded file exceeds the upload_max_filesize directive in php.ini by editing the php.ini file on DirectAdmin Hosting 3

Customize PHP Extension Version



Fix the error that the uploaded file exceeds the upload_max_filesize directive in php.ini by editing the php.ini file on DirectAdmin Hosting 4


2.3 Fix lỗi the uploaded file exceeds the upload_max_filesize directive in php.ini bằng cách sửa php.ini qua FTP


Step 1: Connect to the server via FTP


Step 2: Go to the root directory of the website


Step 3: Find the file php.ini in the root directory (if not found, create a new directory and name it php.ini)


Fix the error that the uploaded file exceeds the upload_max_filesize directive in php.ini by editing php.ini via FTP


Step 4: Add or edit the following code:


upload_max_filesize = 12M

post_max_size = 13M

memory_limit = 15M

Fix the error the uploaded file exceeds the upload_max_filesize directive in php.ini by editing php.ini via FTP 1



2.4 Fix the error that the uploaded file exceeds the upload_max_filesize directive in php.ini by editing the .htaccess file


Step 1: Connect the website via FTP to edit the .htaccess file


Step 2: Add the following code to adjust the value based on your needs:


php_value upload_max_filesize 12M

php_value post_max_size 13M

php_value memory_limit 15M

3. Parameters affecting file upload limit in php.ini


3.1 Upload in MB



  • upload_max_filesize =500M

  • post_max_size =500M

  • max_allowed_packet =500M

  • memory_limit =500M


3.2 Timeout in milliseconds



  • default_socket_timeout =30

  • max_execution_time =30

  • max_input_time =30


The article helps you understand the cause and how to fix it lỗi the uploaded file exceeds the upload_max_filesize directive in php.ini. Did you follow the instructions correctly but no success? Do you have a faster and more effective fix? You want to discuss with BKNS about IT services, network solutions? Leave a comment right below the article. Visit often https://www.bkns.vn/ so you don't miss out on other posts!


Related Posts
Diệp Quân
Nguyen Manh Cuong is the author and founder of the vmwareplayerfree blog. With over 14 years of experience in Online Marketing, he now runs a number of successful websites, and occasionally shares his experience & knowledge on this blog.
SHARE

Related Posts

Subscribe to get free updates

Post a Comment

Sticky