Increasing the upload_max_filesize in WordPress (such as from 2MB to 1GB)

By default ,WordPress limits the size of media files you can upload to 2MB. Sometimes we need to increase the maximum file upload size in the WordPress Admin > Media to a number higher than this.

For chang it ,please follow this steps:

(1)find the file php.ini in directory /etc

(2)find this line in php,inc ,replace it with high value :

upload_max_filesize = 1024M

post_max_size = 1024M

max_execution_time = 1000

max_input_time = 1000

(3) service httpd restart

(4)Go back to the Media > Add New screen to see if your changes are in place.