The following is my solution for creating a multi-user mint installation. Keep in mind that in order to do this, you should have knowledge of PHP, htaccess, and Apache configuration. I’ll try to walk you through a lot of the configuration but your configuration will vary.
I’d like to thank Shaun once again for creating such an awesome codebase to make this solution so simple. Thanks Shaun! :)
Two things before you try this solution: (1) Read the whole walkthrough before trying it. (2) Don’t ask me to post code samples as doing so would be a violation of the Mint license.
- This will break the auto-update system due to the
Mint Locationsetting not being the actual location of the core.
- Move your mint installation to a sub-directory of the mint folder and call it
panel, so you get a structure like this:
mint/index.phpand make the following changes to it.
- Change the
if (!isset($_GET['js']) && !isset($_GET['record'])) header('Location: panel/');right before where
- Change the
This basically creates an entry point for all users but restricts the entry point to
&record requests. All other requests are routed to the
panel/ where you can see your stats.
/mint/panel/?js. It should be
- Run the
/mint/panel/to let Mint readjust.
- Log-in and make sure
Mint Locationis set to
http://www.example.com/mint/(it shouldn’t have
panel/at the end of it)
You are now free to password protect the
panel/ folder without adversely affecting your stats gathering. I’ve been using this solution for almost a week without problems.
You can secure the folder using htaccess authentication. There are dozens of tutorials around the web about this.