Skip to content

Instantly share code, notes, and snippets.

# Do the following command in terminal
# Chown / Chmod wordpress folder
$ sudo chown -R :_www wordpress
$ sudo chmod -R g+w wordpress
# Add to "wp-config.php"
define('FS_METHOD', 'direct');
# Source: http://soderlind.no/archives/2011/08/26/running-wordpress-locally-on-mac-os-x-lion/
@yannisdran
yannisdran / jetpack-localhost-hack
Last active December 11, 2015 20:09
A hack for being able to run Jetpack in WP locally.
# Go to plugins/jetpack/jetpack.php into the folder of your WP local website.
# Find the line (276) below:
/**
* Is Jetpack active?
*/
public static function is_active() {
return (bool) Jetpack_Data::get_access_token( JETPACK_MASTER_USER );
}