Difference between revisions of "Mesh/Website/Local"
Jump to navigation
Jump to search
→Debian / Ubuntu / General? Linux
(adds final instruction) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
* Install [https://en.wikipedia.org/wiki/LAMP_(software) LAMP server] which is a common software stack of Linux with Apache, MySQL, and PHP (but also can refer to Perl/Python). | * Install [https://en.wikipedia.org/wiki/LAMP_(software) LAMP server] which is a common software stack of Linux with Apache, MySQL, and PHP (but also can refer to Perl/Python). | ||
*: <code>$ sudo apt-get install tasksel</code> | *: <code>$ sudo apt-get install tasksel</code> | ||
*:* Select the "LAMP server" option with the space bar, then press enter or select the "OK" button. | |||
*: or, possibly use: | *: or, possibly use: | ||
*: <code>$ sudo apt-get install lamp-server</code> | *: <code>$ sudo apt-get install lamp-server</code> | ||
*: if that doesn't work, try installing lamp via the following: | |||
*:<code>$ sudo apt-get install apache2</code> | |||
*: Then install PHP: | |||
*:<code>$ sudo apt-get install php5 libapache2-mod-php5 </code> | |||
* Examine how Apache runs, can be managed as a <code>service</code> to "reload" or "restart", and how it works with PHP. | * Examine how Apache runs, can be managed as a <code>service</code> to "reload" or "restart", and how it works with PHP. | ||
** For most of this, having a full LAMP install saves a bit of configuration time to get running. | ** For most of this, having a full LAMP install saves a bit of configuration time to get running. | ||
Line 25: | Line 30: | ||
**: <code>$ sudo service nscd restart</code> | **: <code>$ sudo service nscd restart</code> | ||
** Now visit <code>http://peoplesopen.loc</code> in your browser | ** Now visit <code>http://peoplesopen.loc</code> in your browser | ||
* Install WordPress (it's easy! | * Install WordPress (it's easy!) | ||
** Grab a copy of latest wordpress: | ** Grab a copy of latest wordpress: | ||
**: $ cd /var/www/peoplesopen.loc | **: <code>$ cd /var/www/peoplesopen.loc</code> | ||
**: $ wget http://wordpress.org/latest.zip | **: <code>$ wget http://wordpress.org/latest.zip</code> | ||
**: $ unzip latest.zip | **: <code>$ unzip latest.zip</code> | ||
**: $ mv wordpress/* public_html/ | **: <code>$ mv wordpress/* public_html/</code> | ||
**: $ rm -r wordpress/ | **: <code>$ rm -r wordpress/</code> | ||
** Change owners (this lets the Apache users, who goes by www-data on debian/ubuntu own the files and write to them, but you can too as the group owner) | ** Change owners (this lets the Apache users, who goes by www-data on debian/ubuntu own the files and write to them, but you can too as the group owner) | ||
**: $ sudo chown www-data:YOURUSERNAME ./ -R | **: <code>$ sudo chown www-data:YOURUSERNAME ./ -R</code> | ||
**: $ sudo chmod g+w ./ -R | **: <code>$ sudo chmod g+w ./ -R</code> | ||
** Create a MySQL database. | ** Create a MySQL database. | ||
**: $ mysql -u root -p | **: <code>$ mysql -u root -p</code> | ||
**: mysql> create database peoplesopen; | **: <code>mysql> create database peoplesopen;</code> | ||
**: mysql> show databases; | **: <code>mysql> show databases;</code> | ||
**: mysql> quit; | **: <code>mysql> quit;</code> | ||
** Browse to <code>http://peoplesopen.loc</code> to proceed with the installation process, filling out with the information from the previous steps. | ** Browse to <code>http://peoplesopen.loc</code> to proceed with the installation process, filling out with the information from the previous steps. | ||
*** Fill out the basic site information (doesn't really matter, use whatever is helpful), including a local user account. Don't forget the password, it'll be easier not to. | *** Fill out the basic site information (doesn't really matter, use whatever is helpful), including a local user account. Don't forget the password, it'll be easier not to. | ||
Line 51: | Line 56: | ||
** Finally, since the "child theme" specifies some custom colors, we need to save them so they show up: | ** Finally, since the "child theme" specifies some custom colors, we need to save them so they show up: | ||
*** Go to http://peoplesopen.loc/wp-admin/themes.php?page=options-framework and select "Save options" at the bottom of the page. | *** Go to http://peoplesopen.loc/wp-admin/themes.php?page=options-framework and select "Save options" at the bottom of the page. | ||
=== Mac OSX Flavas..=== | |||
So, the big difference between going the MAMP route and installing on Linux, is that on MAMP your local dev environment is not in <code>$ /var/www </code>but instead in <code>$ /Applications/htdocs</code> | |||
'''1. Install MAMP:''' | |||
http://www.mamp.info/en/index.html | |||
Note: Just download the free version, the pro automatically comes bundled with it. | |||
'''2. Download WordPress:''' | |||
http://en-ca.wordpress.org/download/ | |||
'''3. move it from your Downloads folder and put it here:''' | |||
<code>$ /Applications/MAMP/htdocs</code> | |||
<code> $ unzip </code> [Your WP zip file] | |||
'''4. You're going to need to do some minor configuration:''' | |||
- Build a database on phpMyAdmin | |||
- Create users, etc | |||
- If you've never installed WP, read this: | |||
http://codex.wordpress.org/Installing_WordPress | |||
-Once WP is installed and ready to go, then proceed to the next step | |||
'''5. Get the conf file''' | |||
Now that you know where things are, go get the Apache conf file from here: | |||
https://gist.github.com/wrought/7296693 | |||
Save it as <code>peoplesopen.loc.conf</code> and put is here: | |||
<code>$ /Applications/MAMP/conf</code> | |||
6. Now, go download the 'wp-foundation' theme and move it to your 'themes' folder | |||
http://320press.com/wp-foundation/ | |||
themes folder is located at <code>$ /Applications/MAMP/htdocs/peoplesopen/wordpress/wp-content/themes</code> | |||
7. Next, clone the People's Open theme and put it in your 'themes' folder: | |||
go to your themes folder and type: | |||
<code>$ git clone git@github.com:sudomesh/peoplesopen.git </code> | |||
Note: PeoplesOpen theme is built on top of the WP-Foundation theme | |||
8. Now that you have all the necessary files, log into your wp-damin GUI and activate the PeoplesOpen theme. And voila! You're done ;) |