1. Upload db to local MySQL database
2. Add the following to your wp-config.php file. This sets the urls in your DB without having to change them in your DB itself.
1. define(‘WP_HOME’,‘http://yourlocalhost’);
2. define(‘WP_SITEURL’,‘http://yourlocalhost’);
3. Login as an Admin, go to Settings=>Permalinks, change the “Common Settings” to “Default”, and Save. Then, select “Post Name” and Save again.
4. You should be all set!
-
Mac OS X Setup
- Requirements
- Apache
- Mac OS X comes with Apache preinstalled
-
PHP
- Mac OS X comes with PHP preinstalled
- MySQL
- Clone the Marketplace Repo to your machine
- Update your Hosts file with the following
sudo vi /etc/hosts
- Apache
- Requirements
127.0.0.1 blocpower
127.0.0.1 blocpower.local
<ol>
<li>Apache Configuration
<ul>
<li>Update Apache to serve <span class="caps">PHP</span> by running from the command line (You will need Super User access):<br />
sudo su -
vi /etc/apache2/httpd.conf
<ul>
<li>Uncomment the following lines<br />
LoadModule deflate_module libexec/apache2/mod_deflate.so
LoadModule expires_module libexec/apache2/mod_expires.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
LoadModule php5_module libexec/apache2/libphp5.so
</ul></li>
<li>Create Virtual Hosts<br />
mkdir /etc/apache2/vhosts
touch /etc/apache2/vhosts/default.conf
vi /etc/apache2/vhosts/default.conf
<VirtualHost *:80>
DocumentRoot "/Library/WebServer/Documents"
</VirtualHost>
mkdir /etc/apache2/vhosts
touch /etc/apache2/vhosts/marketplace.conf
vi /etc/apache2/vhosts/marketplace.conf
<VirtualHost *:8888>
DocumentRoot "[path to local Marketplace repo]"
ServerName blocpower.local
ErrorLog "/private/var/log/apache2/blocpower.local-error_log"
CustomLog "/private/var/log/apache2/blocpower.local-access_log" common
<Directory "[path to local Marketplace repo]">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<li>Restart Apache<br />
apachectl restart
</ul></li>
<li>MySQL Setup
<ul>
<li>Download and install MySQL</li>
<li>Setup root username and root password</li>
<li>Import Marketplace Database<br />
mysql -u <mysql username> -p < database_backup.sql
<ul>
<li>Enter your mysql password, the same password created during setup</li>
</ul></li>
</ul></li>
<li>Wordpress Plugin Config
<ul>
<li>Navigate to: [[http://blocpower:8888/wp-admin]]
<ul>
<li>Login info:<br />
Login: Blocpower
Password: get password from 1Password
<li>Go to Plugins, and “activate” any plugins that need activating
<ul>
<li>“Advanced Custom Fields” & “User Role Editor” are usual suspects.</li>
</ul></li>
</ul></li>
<li>Browse the Marketplace
<ul>
<li>[[ http://blocpower:8888]]</li>
</ul></li>
</ul></li>
</ol>