Skip to content

Instantly share code, notes, and snippets.

@neopunisher
Last active December 25, 2015 12:49
Show Gist options
  • Save neopunisher/6978863 to your computer and use it in GitHub Desktop.
Save neopunisher/6978863 to your computer and use it in GitHub Desktop.
1st argument is new Mb upload limit
sed -iE 's/upload_max_filesize = [0-9]\+M/upload_max_filesize = '$1'M/g' /etc/php.ini
sed -iE 's/post_max_size = [0-9]\+M/post_max_size = '$1'M/g' /etc/php.ini
grep -n upload_max_filesize /etc/php.ini
grep -n post_max_size /etc/php.ini
/sbin/service httpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment