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
- Apache
- Apache Configuration
- Update Apache to serve PHP by running from the command line (You will need Super User access):
sudo su - vi /etc/apache2/httpd.conf- Uncomment the following lines
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
- Uncomment the following lines
- Create Virtual Hosts
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> - Restart Apache
apachectl restart
- Update Apache to serve PHP by running from the command line (You will need Super User access):
- MySQL Setup
- Download and install MySQL
- Setup root username and root password
- Import Marketplace Database
mysql -u <mysql username> -p < database_backup.sql- Enter your mysql password, the same password created during setup
- Wordpress Plugin Config
-
http://blocpower:8888/wp-admin
- Login info:
Login: Blocpower Password: get password from 1Password - Go to Plugins, and “activate” any plugins that need activating
- “Advanced Custom Fields” & “User Role Editor” are usual suspects.
- Login info:
- Browse the Marketplace
-
http://blocpower:8888/wp-admin
- Requirements