Skip to content

Instantly share code, notes, and snippets.

@webarthur
Last active November 15, 2017 06:24
Show Gist options
  • Select an option

  • Save webarthur/c3af1571bb55e72f810d to your computer and use it in GitHub Desktop.

Select an option

Save webarthur/c3af1571bb55e72f810d to your computer and use it in GitHub Desktop.
Very easy way to run WordPress multisite on localhost!
# wp-config.php
define('DOMAIN_CURRENT_SITE', 'localhost:8081');
# $wpdb->blogs
domain=localhost:8081
path=/
# terminal
sudo php -S localhost:8081 -t /var/www/html/centro-europeu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment