wp-local-dev Set a variable i wp-config.php This plugin never changes wp-config.php, but you have to add a line or two for it to work. Explained on plugin page under Tools menu.