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?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
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