| ... | @@ -17,41 +17,34 @@ |
... | @@ -17,41 +17,34 @@ |
|
|
*** Update your Hosts file with the following
|
|
*** Update your Hosts file with the following
|
|
|
**** <pre><code>sudo vi /etc/hosts</code></pre>
|
|
**** <pre><code>sudo vi /etc/hosts</code></pre>
|
|
|
**** Add the following lines
|
|
**** Add the following lines
|
|
|
<pre><code>
|
|
***** <pre><code>127.0.0.1 blocpower
|
|
|
127.0.0.1 blocpower
|
|
|
|
|
127.0.0.1 blocpower.local
|
|
127.0.0.1 blocpower.local
|
|
|
</code></pre>
|
|
</code></pre>
|
|
|
## Apache Configuration
|
|
## Apache Configuration
|
|
|
*** Update Apache to serve PHP by running from the command line (You will need Super User access):
|
|
*** Update Apache to serve PHP by running from the command line (You will need Super User access):
|
|
|
**** <pre><code>
|
|
**** <pre><code>sudo su -
|
|
|
sudo su -
|
|
|
|
|
vi /etc/apache2/httpd.conf
|
|
vi /etc/apache2/httpd.conf
|
|
|
</code></pre>
|
|
</code></pre>
|
|
|
**** Uncomment the following lines
|
|
**** Uncomment the following lines
|
|
|
***** <pre><code>
|
|
***** <pre><code>LoadModule deflate_module libexec/apache2/mod_deflate.so
|
|
|
LoadModule deflate_module libexec/apache2/mod_deflate.so
|
|
|
|
|
LoadModule expires_module libexec/apache2/mod_expires.so
|
|
LoadModule expires_module libexec/apache2/mod_expires.so
|
|
|
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
|
|
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
|
|
|
LoadModule php5_module libexec/apache2/libphp5.so
|
|
LoadModule php5_module libexec/apache2/libphp5.so
|
|
|
</code></pre>
|
|
</code></pre>
|
|
|
*** Create Virtual Hosts
|
|
*** Create Virtual Hosts
|
|
|
<pre><code>
|
|
**** <pre><code>mkdir /etc/apache2/vhosts
|
|
|
mkdir /etc/apache2/vhosts
|
|
|
|
|
touch /etc/apache2/vhosts/default.conf
|
|
touch /etc/apache2/vhosts/default.conf
|
|
|
vi /etc/apache2/vhosts/default.conf
|
|
vi /etc/apache2/vhosts/default.conf
|
|
|
</code></pre>
|
|
</code></pre>
|
|
|
**** <pre><code>
|
|
***** <pre><code><VirtualHost *:80>
|
|
|
<VirtualHost *:80>
|
|
|
|
|
DocumentRoot "/Library/WebServer/Documents"
|
|
DocumentRoot "/Library/WebServer/Documents"
|
|
|
</VirtualHost>
|
|
</VirtualHost>
|
|
|
</code></pre>
|
|
</code></pre>
|
|
|
*** <pre><code>
|
|
*** <pre><code>mkdir /etc/apache2/vhosts
|
|
|
mkdir /etc/apache2/vhosts
|
|
|
|
|
touch /etc/apache2/vhosts/marketplace.conf
|
|
touch /etc/apache2/vhosts/marketplace.conf
|
|
|
vi /etc/apache2/vhosts/marketplace.conf
|
|
vi /etc/apache2/vhosts/marketplace.conf
|
|
|
</code></pre>
|
|
</code></pre>
|
|
|
**** <pre><code>
|
|
**** <pre><code><VirtualHost *:8888>
|
|
|
<VirtualHost *:8888>
|
|
|
|
|
DocumentRoot "[path to local Marketplace repo]"
|
|
DocumentRoot "[path to local Marketplace repo]"
|
|
|
ServerName blocpower.local
|
|
ServerName blocpower.local
|
|
|
ErrorLog "/private/var/log/apache2/blocpower.local-error_log"
|
|
ErrorLog "/private/var/log/apache2/blocpower.local-error_log"
|
| ... | @@ -63,21 +56,18 @@ vi /etc/apache2/vhosts/marketplace.conf |
... | @@ -63,21 +56,18 @@ vi /etc/apache2/vhosts/marketplace.conf |
|
|
</VirtualHost>
|
|
</VirtualHost>
|
|
|
</code></pre>
|
|
</code></pre>
|
|
|
*** Restart Apache
|
|
*** Restart Apache
|
|
|
**** <pre><code>
|
|
****<pre><code>apachectl restart
|
|
|
apachectl restart
|
|
|
|
|
</code></pre>
|
|
</code></pre>
|
|
|
## MySQL Setup
|
|
## MySQL Setup
|
|
|
*** Download and install MySQL
|
|
*** Download and install MySQL
|
|
|
*** Setup root username and root password
|
|
*** Setup root username and root password
|
|
|
*** Import Marketplace Database
|
|
*** Import Marketplace Database
|
|
|
**** <pre><code>
|
|
**** <pre><code>mysql -u <mysql username> -p < database_backup.sql
|
|
|
mysql -u <mysql username> -p < database_backup.sql
|
|
|
|
|
</code></pre>
|
|
</code></pre>
|
|
|
***** Enter your mysql password, the same password created during setup
|
|
***** Enter your mysql password, the same password created during setup
|
|
|
## Wordpress Config
|
|
## Wordpress Config
|
|
|
*** Update the file
|
|
*** Update the file
|
|
|
**** <pre><code>
|
|
**** <pre><code>…/Marketplace/wordpress/wp-config.php
|
|
|
…/Marketplace/wordpress/wp-config.php
|
|
|
|
|
</code></pre>
|
|
</code></pre>
|
|
|
***** <pre><code>
|
|
***** <pre><code>
|
|
|
define('DB_NAME', 'marketplace');
|
|
define('DB_NAME', 'marketplace');
|
| ... | @@ -90,8 +80,7 @@ define('WP_SITEURL','http://blocpower:8888'); |
... | @@ -90,8 +80,7 @@ define('WP_SITEURL','http://blocpower:8888'); |
|
|
## Wordpress Plugin Config
|
|
## Wordpress Plugin Config
|
|
|
*** Navigate to: [[http://blocpower:8888/wp-admin]]
|
|
*** Navigate to: [[http://blocpower:8888/wp-admin]]
|
|
|
**** Login info:
|
|
**** Login info:
|
|
|
***** <pre><code>
|
|
***** <pre><code>Login: Blocpower
|
|
|
Login: Blocpower
|
|
|
|
|
Password: get password from 1Password
|
|
Password: get password from 1Password
|
|
|
</code></pre>
|
|
</code></pre>
|
|
|
**** Go to Plugins, and "activate" any plugins that need activating
|
|
**** Go to Plugins, and "activate" any plugins that need activating
|
| ... | | ... | |