Change The Maximum Upload File Size in Php
By Fahad Ahammed
- One minute read - 154 wordsThis is annoying to get file exceeds the max size allowed when you try for uploading files. How can you be able to upload bigger files without any caution or error ? We have to find php.ini file from your system.
From terminal run this code : (For Total work you have to be in su mood in terminal)
In my system i got this :
Now keep backup of those every file . How ? Do this : (Copy full text and paste in terminal and press enter)
Now edit every php.ini file and search for :
upload_max_filesize
post_max_size
How to edit ? let you want to edit /etc/php5/fpm/php.ini just do this :
and find upload_max_filesize by ctrl+w and paste in the box . change the value as you desire . You have to give double size of upload_max_filesize in post_max_size .