Installing Moodle on new macbook

Installing Moodle on new macbook

by Larry Ruch -
Number of replies: 14
I have a new macbook, downloaded moodle for mac. Where it says appache- it always says "stopped". MYSQL says "running". Can't go further . Any suggestions?

Thanks
Average of ratings: -
In reply to Larry Ruch

Re: Installing Moodle on a new MacBook

by Ralf Krause -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
Sorry, you can't install Moodle4OSX on an Intel-Mac. There is still no version of XAMPP for Intel-Macs. The friends from http://www.apachefriends.org/en/xampp-macosx.html write that they need to have a new hardware before they could do the development. For this time Moodle4OSX can't help you any more because Moodle4OSX uses XAMPP for Mac OS X.

Please look here http://moodle.org/mod/forum/discuss.php?d=37501

There was written that there were the same problems. You can use MAMP from http://mamp.info/en/home for your local Moodle installation on your Apple MacBook. They offer a version specially for Intel-Mac and it's free. I tested it and it works very well. So I hope to have time to write a documentation for this because there are more people who have the same problem.

If you want to get more information about MAMP please look at http://www.mamp.info/en/home/ or http://www.apple.com/downloads/macosx/unix_open_source/mamp.html

Ralf
In reply to Ralf Krause

Re: Installing Moodle on a new MacBook

by Larry Ruch -
Thanks Ralf for your reply. I am not really a programmer, just a teacher who knows how important learning management systems are today in the classroom. So what I understand is that there is no way to run moodle on my macbook? In one of your statements, there seemed to be a possibility?

Thanks again,
Larry
In reply to Larry Ruch

Re: Installing Moodle on a new MacBook

by Carlos Kiyan Tsunami -
Picture of Plugin developers
Hello Larry
I dont understand why is not possible to run Moodle on your MacBook
I am running Moodle on my MacBookPro.
Well I tried this:
http://www.apachefriends.org/en/xampp-macosx.html

But I had some problems with some ports.

I am using this (MAMP) now:
http://www.webedition.de/en/serviceCenter/download/mamp.php

1. First you have to install the MAMP
2. copy the "moodle file" into Aplications>MAMP>htdocs>
3.within htdocs create "moodledata"
4.start your server,and type in your browser:
http://localhost:8888/moodle....

Remember the user and password are:root but you can change it, you will need this information to install moodle.

If you need my help dont hesitate to contact me
Best regards
Carlos
In reply to Carlos Kiyan Tsunami

Re: Installing Moodle on a new MacBook

by Larry Ruch -
Thanks Carlos,
Ralf is also trying to help me. I am not the best when it comes to undersatnding computer languag. All I am trying to do is to install moodle on my new macbook- I am not using any server, just my internet connection. Walking me through "easy steps" would be very much appreciated. Should I delete the moodle I already installed?
Thanks
Larry
In reply to Larry Ruch

Re: Installing Moodle on a new MacBook

by Ralf Krause -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
Hi Larry,

you misunderstood ... I said that there would be no chance with XAMPP for Mac OS X on an Intel-Mac for this time. I don't know what the guys are doing in near future ... for now I would use MAMP with Moodle.

It:s really easy to install Moodle with MAMP. Please wait a few days so I can write the instructions for this installation. If you want to see what I have in german language please look at http://homepage.mac.com/ralf.krause/moodle/macosx/

If you don't understand german then you can see the pictures of this instruction. Perhaps this could be the star into your own installation.

I hope this would help

Ralf
In reply to Ralf Krause

Re: Installing Moodle on a new MacBook

by Larry Ruch -
Hi Ralf,
Thanks for your help. I will wait for your instructions. Step-by step info would be much appreciated. Should I delete the Moodle I already downloaded and start from scratch?

Thanks again,
Larry
In reply to Larry Ruch

Re: Installing Moodle on a new MacBook

by Ralf Krause -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
Hi Larry,

my Moodle 1.6 is running on my Intel MacBook using MAMP. It's great ....

Please look to my step by step instructions. They are still in german language but there are a lot of pictures so you can see the sequence. From the software download to the ready installed Moodle you will find all important steps in a picture.
http://homepage.mac.com/ralf.krause/moodle/mamp/

Ralf
In reply to Ralf Krause

Re: Installing Moodle on a new MacBook

by Camille M. O'Reilly -
Thank you Ralf!

I'm brand new to Moodle and a returning Mac user with a new MacBook Pro. Your step-by-step instructions for installing the MAMP software and Moodle were terrific. Since I don't speak German I carefully followed the pictures and 'wide eyes 'Shazam!' ~ Moodle's off and running beautifully on my laptop!

Camille
In reply to Camille M. O'Reilly

Re: Installing Moodle on a new MacBook

by bob therriault -
Ralf

I can only echo what Camille has posted.  MAMP is a very elegant solution and your instructions are clear even to a non German speaker.  My MacBook Pro is now happily moodling!  Thank you.  Cheers, bob
In reply to bob therriault

Re: Installing Moodle on a new MacBook

by Ralf Krause -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
Thanks for your encouragement!!
I hoped that the pictures will tell the most things about the installation steps ... big grin

Ralf
In reply to Larry Ruch

Re: Installing Moodle on new macbook

by Geof Duncan -
The only problem I've had while running moodle on my own laptop is if I don't have a static ip address then dhcp will change the address I have to tell my students where to go to access moodle.

To overcome this I've done two things for my own ease of use:

1 created a "custom" page for my wwwroot directory that uses php to redirect any visitors to that address, just copy the text below in a text editor, save it as "index.php" in the wwwroot directory.

-------START--------
<?php
/* Redirect to a different page in the current directory that was requested */
$host  = $_SERVER['HTTP_HOST'];
$uri  = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'moodle/';
header("Location: http://$host$uri/$extra");
exit;
?>
-------START--------

The second thing I've done is modified the config.php file that moodle uses to serve up it's pages. I've changed it so that it always uses the correct ip address no matter what network I've plugged in to. Just open up the config.php file in your wwwroot/moodle directory and make the following change.

Find the line in your config.php file that looks something like this:
$CFG->wwwroot   = 'http://example.com/moodle';

replace the line above with the following lines:
$domain = GetHostByName($REMOTE_ADDR);
$CFG->wwwroot   = 'http://'.$domain.'/moodle';

This would mean your modified config.php should look something like this:

<?php  /// Moodle Configuration File

unset($CFG);

$CFG->dbtype    = 'mysql';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'moodle';
$CFG->dbuser    = 'username';
$CFG->dbpass    = 'password';
$CFG->prefix    = 'mdl_';

$domain = GetHostByName($REMOTE_ADDR);
$CFG->wwwroot   = 'http://'.$domain.'/moodle';
$CFG->dirroot   = '/home/example/public_html/moodle';
$CFG->dataroot  = '/home/example/moodledata';
$CFG->admin     = 'admin';

$CFG->directorypermissions = 00777;  // try 02777 on a server in Safe Mode

require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>

These two changes allow you to tell your students to type your ip address in their browser and automatically pull up moodle when MAMP is running.

Happy moodling!
-Geof
In reply to Geof Duncan

Re: Installing Moodle on new macbook

by Ray Lawrence -
..... if I don't have a static ip address then dhcp will change the address I have to tell my students where to go to access moodle.

Might this help?

http://www.no-ip.com/services/managed_dns/free_dynamic_dns.html



In reply to Ray Lawrence

Re: Installing Moodle on new macbook

by Ralf Krause -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
If you are working with a laptop in a local network it would not be a good idea to get a dynamic dns.

I think it would be much better to ask the network admin to get a static ip address for the school network. If the admin gets the mac address of the laptop he will be able to configurate the network server so that the personal laptop always gets a static address from dhcpd.

Ralf