Difference between revisions of "Automatic Installer for 2.4 on Mac OS 10.5 for Intel processors"

From WeBWorK_wiki
Jump to navigation Jump to search
Line 23: Line 23:
   
 
adminname="wwadmin";
 
adminname="wwadmin";
  +
 
groupname="wwdata";
 
groupname="wwdata";
   
Line 28: Line 29:
   
 
adminname="youraccountname";
 
adminname="youraccountname";
groupname="staff"; (* Note: "Staff" is the usual default group name for a user-account. You can check that this is correct
 
  +
on your machine by opening Terminal and typing "ls -l". You should see "youraccountname staff" listed as the owner's of your files *)
 
  +
groupname="staff";
  +
  +
(* Note: "staff" is the usual default group name for a user-account. You can check that this is correct
  +
on your machine by opening Terminal and typing "ls -l". You should see "youraccountname staff" listed as the owner of your files *)
   
 
4. From the Terminal program, run the command ". Master_Script.sh" (there should be a space between the period and Master_Script.sh") to execute the script.
 
4. From the Terminal program, run the command ". Master_Script.sh" (there should be a space between the period and Master_Script.sh") to execute the script.

Revision as of 17:51, 15 September 2008

The script installs a personal copy of WeBWorK to run on one's computer. It is not designed to install WeBWorK on a server that will run a school's WeBWorK installation. It also assumes that you will only be running one version of Apache and MySQL at a time. You also need to know the administrator password for your machine (not the root password) to run the script successfully.


Directions:

1. Download and install the most recent version of MacPorts (currently, it's 1.6.0). Macports is a project aimed to facilitate the installation of unix/linux software on the Mac. The website is www.macports.org. A .dmg image is available at

http://svn.macports.org/repository/macports/downloads/MacPorts-1.6.0/MacPorts-1.6.0-10.5-Leopard.dmg

2. Save the attached script "Master_Script.sh" to a directory. Open Terminal and change the directory so that "Master_Script.sh" is in your directory.

3. Decide on account and group names for WeBWorK. The defaults are:

account name = wwadmin

group name = wwdata

If you use these names, you need to goto "Account" under "System Preferences" (under the apple in the upper left corner) and create an account named "wwadmin" (with administrator privileges) and a group name called "wwdata". After creating "wwdata", please make sure that the group contains the "wwadmin" account by clicking on "wwadmin."

3b. Alternatively, you could run WeBWorK in your own account and use the default group name. In which case, edit the lines (at the top of the Master_Script.sh file).

adminname="wwadmin";

groupname="wwdata";

to

adminname="youraccountname";

groupname="staff";

(* Note: "staff" is the usual default group name for a user-account. You can check that this is correct on your machine by opening Terminal and typing "ls -l". You should see "youraccountname staff" listed as the owner of your files *)

4. From the Terminal program, run the command ". Master_Script.sh" (there should be a space between the period and Master_Script.sh") to execute the script.

5. The script is compiling programs and will take about 30 minutes. You'll need to enter your administrator password several times.

6. Webwork should then run by opening a browser and typing in the address "127.0.0.1/webwork" in your browser. If that doesn't bring up the course administrator menu, then try "http://127.0.0.1" (if this works, then the apache installation is working fine, but something didn't work with the Webwork installation.)

Here is the file to download: Master_Script.sh