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
- Update Apache to serve PHP by running from the command line (You will need Super User access):
- Requirements
<ul>
<li>Restart Apache<br />
apachectl restart
</ul>