Archive for March 2016

Php increase memory limit

<?php   ini_set(’memory_limit’,’2048M’);

WordPress change site url

UPDATE wp_options SET option_value = REPLACE(option_value, ‘http://www.oldurl’, ‘http://www.newurl’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;   UPDATE wp_posts SET guid = REPLACE(guid, ‘http://www.oldurl’,’http://www.newurl’);   UPDATE wp_posts SET post_content = REPLACE(post_content, ‘http://www.oldurl’, ‘http://www.newurl’);   UPDATE wp_postmeta SET meta_value = REPLACE(meta_value,’http://www.oldurl’,’http://www.newurl’);

Git change remote url

git remote set-url origin https://username@hostname:port/project.git