Difference between revisions of "Mesh/Website/Local"

1,623 bytes added ,  18:09, 3 November 2013
adds more
(adds basic outline)
 
(adds more)
Line 11: Line 11:
** 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.
** Apache site config file: https://gist.github.com/wrought/7296693 for /etc/apache2/sites-available/peoplesopen.loc
** Apache site config file: https://gist.github.com/wrought/7296693 for /etc/apache2/sites-available/peoplesopen.loc
**: <code>$ sudo nano /etc/apache2/sites-available/peoplesopen.loc.conf</code>
**** 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
**: <code>$ sudo mkdir /var/www/peoplesopen.loc/public_html -p
** Need to enable site with:
** Need to enable site with:
**: <code>$ sudo service apache2 restart</code>
**: <code>$ sudo a2ensite peoplesopen.loc</code>
**: <code>$ sudo a2ensite peoplesopen.loc</code>
*** You may need to
* Edit <code>/etc/hosts</code> file to include something like this line (unless you have a specific configuration):
* Edit <code>/etc/hosts</code> file to include something like this line (unless you have a specific configuration):
*: <code>127.0.1.1      peoplesopen.loc</code>
*: <code>127.0.1.1      peoplesopen.loc</code>
** If you happen to be using a local dns caching system, you may need clear it with something like:
** If you happen to be using a local dns caching system, you may need clear it with something like:
**: <code>$ sudo service nscd restart</code>
**: <code>$ sudo service nscd restart</code>
*
** Now visit <code>http://peoplesopen.loc</code> 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 <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.
** Once you've finished and logged in to this new local site, clone the github repository to your local machine.
**: <code>$ git clone https://github.com/sudomesh/peoplesopen</code>
*** If you don't have git installed, install it this way:
***: <code>$ sudo apt-get install git</code>