Monday, September 25, 2017

Replace HTTP to HTTPS

To quickly replace all of the http to https within a file can be easily done by
sed -i 's|http:|https:|g' *.html
 
or find
find . -name "*.html" -exec sed -i 's|http:|https:|g' {} \; 

Thursday, September 14, 2017

Increase Max Filesize Upload in Wordpress



This address specifically to the Media Library upload limitation within Wordpress

NGINX Configuration

Modified /etc/nginx/nginx.conf within the http section

http {
      # set client body size to 200M #
      client_max_body_size 200M;

PHP Configuration


Modified php.ini with three items within /etc/php/7.0/cli/php.ini and /etc/php/7.0/fpm/php.ini

  • upload_max_filesize = 200MB
  • post_max_size = 200MB
  • memory_limit = 128MB

WP Plugin


Used Increase Upload Max Filesize