Difference between revisions of "Mesh/Website/Local"
Jump to navigation
Jump to search
(adds final instruction) |
(adds code tags) |
||
Line 25: | Line 25: | ||
**: <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. |
Revision as of 16:51, 4 November 2013
How to set up a local instance of a sudo mesh sites, namely peoplesopen.net.
peoplesopen.net website
Debian / Ubuntu / General? Linux
- Install LAMP server which is a common software stack of Linux with Apache, MySQL, and PHP (but also can refer to Perl/Python).
$ sudo apt-get install tasksel
- or, possibly use:
$ sudo apt-get install lamp-server
- Examine how Apache runs, can be managed as a
service
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.
- Apache site config file: https://gist.github.com/wrought/7296693 for /etc/apache2/sites-available/peoplesopen.loc
$ sudo nano /etc/apache2/sites-available/peoplesopen.loc.conf
- For some reason, modern Ubuntu needs the ".conf" on the end--it shouldn't really matter, but it's convenient.
- Create the directories for your site
$ sudo mkdir /var/www/peoplesopen.loc/public_html -p
- Need to enable site with:
$ sudo service apache2 restart
$ sudo a2ensite peoplesopen.loc
- You may need to
- Edit
/etc/hosts
file to include something like this line (unless you have a specific configuration):
127.0.1.1 peoplesopen.loc
- If you happen to be using a local dns caching system, you may need clear it with something like:
$ sudo service nscd restart
- Now visit
http://peoplesopen.loc
in your browser
- Install WordPress (it's easy!)
- Grab a copy of latest wordpress:
$ cd /var/www/peoplesopen.loc
$ wget http://wordpress.org/latest.zip
$ unzip latest.zip
$ mv wordpress/* public_html/
$ rm -r wordpress/
- 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
$ sudo chmod g+w ./ -R
- Create a MySQL database.
$ mysql -u root -p
mysql> create database peoplesopen;
mysql> show databases;
mysql> quit;
- Browse to
http://peoplesopen.loc
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.
- Once you've finished and logged in to this new local site, we need to install the themes, including making a clone of the github repository of the peoplesopen "child theme" to your local machine.
$ cd /var/www/peoplesopen.loc/wp-content/themes/
$ wget https://github.com/downloads/320press/wordpress-foundation/wp-foundation-v2.0.zip
$ unzip wp-foundation-v2.0.zip
$ git clone git@github.com:sudomesh/peoplesopen.git
- If you don't have git installed, install it this way:
$ sudo apt-get install git
- 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.