How to increase the file upload size in your php.ini or .htaccess file?

How to increase the file upload size in your php.ini or .htaccess file?

Junior Developer Asked on July 7, 2017 in MAGENTO.
Add Comment
1 Answer(s)

Step 1: Find out your PHP configuration
Create a phpinfo.php file and upload the file using FTP to your root directory and you’ll get all the details information about your server.
Just search “Server API” and you’ll find the name of module if it is – Apache module or – CGI Module

<?php phpinfo();?>

Step 2:For Server API: Apache {Update .htaccess}

If your server runs PHP as an “Apache module”, you can update your PHP settings via a .htaccess file.Update .htaccess file OR create a new one and paste the below code in it.

 php_value upload_max_filesize 10M
 php_value post_max_size 50M

Step 3:For Server API: CGI {Update php.ini}

If your server runs PHP as an “CGI module”, you can update your PHP settings via php.ini file.Update php.ini file OR create a new one and paste the below code in it.

upload_max_filesize = 20M
 post_max_size = 20M
Team Leader Answered on July 7, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.