Scripts Thread, mrbs installation in Coding and Web Development; Good Morning,
Could someone please give me a hand with my installation of mrbs on a school intranet site? Never ...
1st November 2011, 09:28 AM #1
- Rep Power
Could someone please give me a hand with my installation of mrbs on a school intranet site? Never really used IIS 7 before and I certainly won't be using it again! I am more used to using apache and to be honest it is much easier.
I have installed php and myphpadmin on to the server. I the proceeded to copy all of the mrbs folder on to the site directory and renamed the folder "booking" I then created the database in myphpadmin and created the tables within the database.
I navigated through to the address (http://intranet/booking/web/index.php) which asked me to change the php config file for the time (Configuration error: $timezone has not been set.) I changed this by removing the // in the php config file but I am now getting this error:
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Is there something I have missed or possibly something I need to do on the IIS server?
1st November 2011, 09:38 AM #2
I would suggest you enable logging for the site so you can see what is being requested and what is being sent from the server just until you get it running.
Also try firebug or developer tools to see what your browser is requesting and what the error is.
If you turn on remote error messages you can get a more details error on your browser or you can browse to the site on the IIS server and your 500 error should be explained
edit: I do have it set up here on IIS 7.5 but I can't remember every step I needed to get it working
1st November 2011, 10:10 AM #3
- Rep Power
Sorry but I did a noobie move and didn't put in the database login credentials. However I have now and it seems to be up and running. Just the fun of trying to integrate with active directory now!
1st November 2011, 10:12 AM #4
I didn't bother with that I just set it to windows authentication and the ntlm-auth login method. Logs them in automagically and you just need to put the admins in the config file
1st November 2011, 10:41 AM #5
- Rep Power
I think I am being thick again and not being able to log in to the administrators panel, is their a default logon or do we have to create the user? if so how
Could you also give me an idea on how to do the windows authentication method?
1st November 2011, 10:56 AM #6
Here is the Authentication section from my config.inc.php
The $auth["session"] variable is the important one here. It gets the user id from the logged on users windows account the ["type"] variable is obsolete with this method so can be ignored
/*********************************************** * Authentication settings - read AUTHENTICATION
$auth["session"] = "nt"; // How to get and keep the user ID. One of
// "http" "php" "cookie" "ip" "host" "nt" "omni"
$auth["type"] = "ldap"; // How to validate the user/password. One of "none"
// "config" "db" "db_ext" "pop3" "imap" "ldap" "nis"
// "nw" "ext".
// Configuration parameters for 'cookie' session scheme
// The encryption secret key for the session tokens. You are strongly
// advised to change this if you use this session scheme
$auth["session_cookie"]["secret"] = "This isn't a very good secret!";
// The expiry time of a session, in seconds. Set to 0 to use session cookies
$auth["session_cookie"]["session_expire_time"] = (60*60*24*30); // 30 days
// Whether to include the user's IP address in their session cookie.
// Increases security, but could cause problems with proxies/dynamic IP
$auth["session_cookie"]["include_ip"] = TRUE;
// Configuration parameters for 'php' session scheme
// The expiry time of a session, in seconds
// N.B. Long session expiry times rely on PHP not retiring the session
// on the server too early. If you only want session cookies to be used,
// set this to 0.
$auth["session_php"]["session_expire_time"] = (60*60*24*30); // 30 days
// Cookie path override. If this value is set it will be used by the
// 'php' and 'cookie' session schemes to override the default behaviour
// of automatically determining the cookie path to use
//$cookie_path_override = '/mrbs/';
// The list of administrators (can modify other peoples settings).
// This list is not needed when using the 'db' authentication scheme EXCEPT
// when upgrading from a pre-MRBS 1.4.2 system that used db authentication.
// Pre-1.4.2 the 'db' authentication scheme did need this list. When running
// edit_users.php for the first time in a 1.4.2 system or later, with an existing
// users list in the database, the system will automatically add a field to
// the table for access rights and give admin rights to those users in the database
// for whom admin rights are defined here. After that this list is ignored.
unset($auth["admin"]); // Include this when copying to config.inc.php
$auth["admin"] = "127.0.0.1"; // localhost IP address. Useful with IP sessions.
$auth["admin"] = "administrator"; // A user name from the user list. Useful
// with most other session schemes.
$auth["admin"] = "mjf";
$auth["admin"] = "eac";
The $auth["admin"] variable can be set with the usernames you want to have as admin users.
Is IIS select your directory for MRBS and add application if you haven't already and set this to an integrated pipeline .NET 2 application.
You'll need to change the authentication method to windows and turn off extended protection in the advanced settings.
Bit of a faff but I couldn't get ldap to work effectively enough and this eliminates the need for the staff to have to remember to use their windows login again to get in to the system (yes they struggle with single sign on too).
By glennw in forum Web Development
Last Post: 29th November 2010, 09:01 PM
By Dos_Box in forum How do you do....it?
Last Post: 29th June 2010, 06:27 PM
By mark in forum Hardware
Last Post: 20th September 2005, 10:41 PM
Last Post: 16th September 2005, 08:07 AM
By kingswood in forum How do you do....it?
Last Post: 4th August 2005, 04:00 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)