Skip to content

Commit

Permalink
Changed setup.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bochoven committed Oct 19, 2013
1 parent 7d761dc commit 71ab64a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/helpers/site_helper.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

// Munkireport version (last number is number of commits)
$GLOBALS['version'] = '2.0.0.329';
$GLOBALS['version'] = '2.0.0.335';

//===============================================
// Uncaught Exception Handling
Expand Down
38 changes: 23 additions & 15 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,15 @@ First setup the server, the clients use the server to pull down the installation

On the server
---
1. Put all files in the root directory of your website (for subdirs,
see below). Make sure you also copy the .htaccess file.
2. Create config.php in the root directory of your website. This file overrides the settings in config_default.php
3. Check if the directory /app/db/ is writeable by the webserver.

Munkireport is able to detect if it is running from a subdirectory. If automatic detection fails, you can also specify the subdirectory in config.php.
So if you want to run munkireport from http://munki.mysite.org/report/
add the following to config.php:

$conf['subdirectory'] = '/report/';

You're done with the server and should be able to see a webpage with an empty
table when you visit the website with a browser.
1. Use git to checkout the latest version or download the zip file and put all files in the root directory of your website (for subdirs, see below).
2. Create config.php in the root directory of your website. Write `<?php` in the top of the file. config.php overrides the settings in config_default.php
3. Check if the directory /app/db/ is writeable by the webserver (only when using sqlite)

Create the first user
---
1. Visit the site with a webbrowser, you'll be prompted to create a user and password
2. Add the generated hash line to config.php
3. In the browser login with your username and password

Setting up a client manually
---
Expand All @@ -33,10 +28,23 @@ Setting up clients with munki
2. Copy MunkiReport.plist into your Munki repository
3. Run /usr/local/munki/makecatalogs

Advanced setup
---

### Running MunkiReport from a subdir

Munkireport should able to detect if it is running from a subdirectory. If automatic detection fails, you can also specify the subdirectory in config.php.
So if you want to run munkireport from http://munki.mysite.org/report/
add the following to config.php:

$conf['subdirectory'] = '/report/';

You're done with the server and should be able to see a webpage with an empty
table when you visit the website with a browser.


#### Running MunkiReport with mod_rewrite

Running MunkiReport with mod_rewrite
---
If youre running munkireport on an apache webserver and you want to use mod_rewrite (which gives you nicer urls), you'll have
to change the following:

Expand Down

0 comments on commit 71ab64a

Please sign in to comment.