Advertisement
metalx1000

Increase file upload size limit in PHP-Apache

Apr 25th, 2017
658
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #notes from https://www.cyberciti.biz/faq/increase-file-upload-size-limit-in-php-apache-app/
  2. Increase file upload size limit in PHP-Apache
  3.  
  4. Type the following command to edit the php.ini:
  5. $ sudo vim /etc/php/7.0/apache2/php.ini
  6.  
  7. Find and set the following two values:
  8. post_max_size = 100M
  9. upload_max_filesize = 100M
  10.  
  11. Save and close the file. Where,
  12.  
  13. post_max_size = 100M :
  14. upload_max_filesize = 100M : Maximum allowed size for uploaded files.
  15. Restart Apache server
  16.  
  17. Type the following command to restart the Apache2 server:
  18. $ sudo service apache2 restart
  19.  
  20. OR
  21. $ systemctl restart apache2.service
  22.  
  23. Now you should able to upload file upto 100MB:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement