Skip to content

Instantly share code, notes, and snippets.

View g105b's full-sized avatar

Greg Bowler g105b

View GitHub Profile
<?php
/**
* Serve Wordpress locally without having to configure a web server.
*
* You need to have the database served as configured in wp-config.php, then
* run php -S 0.0.0.0:8080 wp-router.php to serve, and access localhost:8080 or
* your.computers.ip:8080 in a browser.
*
* Make sure in the database that within the `wp_options` table, the `siteurl`
* and `home` values are both "/".