Skip to content

Instantly share code, notes, and snippets.

@ConoHa
Created February 2, 2014 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ConoHa/8766498 to your computer and use it in GitHub Desktop.
Save ConoHa/8766498 to your computer and use it in GitHub Desktop.
【ConoHa】[WordPressテンプレート] アップロードファイルサイズ制限を20Mバイトにする
sed -i.bak -e 's/\(upload_max_filesize.*\) [0-9].*M$/\1 20M/' /etc/php-fpm.d/www.conf
sed -i.bak -e 's/\(post_max_size.*\) [0-9].*M$/\1 20M/' /etc/php-fpm.d/www.conf
sed -i.bak -e 's/\(client_max_body_size.*\) [0-9].*m\(.*\)$/\1 20m\2/' /etc/nginx/nginx.conf
service php-fpm restart && service nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment