Talk:Installation InstructionsG2

From GeeklogWiki
Revision as of 17:09, 27 May 2008 by Wbushey (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Installation Instructions

Step One: Dependencies

To run Geeklog 2 you will need to have the following software installed and running:

Step Two: Checkout Geeklog 2 Code

Use SVN to check out the latest Geeklog 2 code tree. You can either place the code tree in a folder accessable by your web server or, if you are running a *nix system, you can place a system link in a web accessable folder that links to the root of the Geeklog 2 code tree.

Step Three: Configure The Database

REVISIT: I noticed there is a database.php file. Should that be used for setting up the database instead? --Wbushey 13:09, 27 May 2008 (EDT)
You are going to need to add a user to your database server for Geeklog 2 as well as a set of tables.
Login to your MySQL server and issue the following command to add a Geeklog 2 user:
grant all on <db_name>.* to '<db_user>'@'localhost' identified by '<db_pass>';
Now exit MySQL and navigate to <Geeklog_2_Root>/sql/. In this folder issue the following commands:
mysql -u <db_user> -p < create.sql
mysql -u <db_user> -p < base_data.sql
This will create the neccessary database and tables for Geeklog 2.

Step Four: Configure Geeklog 2

With your favorite editor open <Geeklog_2_Root>/config.php and edit the various settings to work with your computer. The file is well commented so this step should be pretty straight forward. Be sure to edit the database settings to match the values that you choose earlier. Also, you may need to change the value of $appConf['db_host'] to 'localhost'.

Step Five: Visit check.php

Once you have edited <Geeklog_2_Root>/config.php and saved you can now run a simple configuration check. Open your browser and go to <site_url>/check.php. If all the tests pass then you have properly setup Geeklog 2. If a test fails the script will display an error message indicating what is wrong.