Mahoodle Install on Mac OS X Tips

Mahoodle Install on Mac OS X Tips

by Hayden Middlin -
Number of replies: 9
I have just completed an install of Mahoodle (Mahara with Single Sign On thru Moodle) on our Mac OS X server and had a few install problems.
Here is how I got it all working.
Mac OS 10.5.7 on Xserve
Moodle 1.9+ installed first and linked to our LDAP.
Mahara latest build running on the same server.

Mahara requires PHP extensions installed that do not come with the standard Mac Server install.
The PHP extensions are part of the Entropy download from Marc Liyanage site http://www.entropy.ch
Do not install the 5.3 PHP package as Moodle does not work with the mktime and date.timezone extensions.
Use the older 5.2 version.
Follow Marc's install instructions and then Mahara will work.

This then allows you to configure Mahara and Moodle for SSO as per instructions on the Mahara site.

Hope this saves someone else the days I spent solving the problem.

Average of ratings: -
In reply to Hayden Middlin

Re: Mahoodle Install on Mac OS X Tips

by Ralf Krause -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
What do you mean with your sentences? How would I see the problem?

Do not install the 5.3 PHP package as Moodle does not work with the mktime and date.timezone extensions.
Use the older 5.2 version.
In reply to Ralf Krause

Re: Mahoodle Install on Mac OS X Tips

by Hayden Middlin -
Errors and warnings appear all over the front page.
It seems from other posts that PHP 5.3 is also a problem for Moodle 2.0
In reply to Hayden Middlin

Re: Mahoodle Install on Mac OS X Tips

by Ralf Krause -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
I have no problems with Entropy PHP 5.3.0-3.pkg for the Mac OS X server installation. Can you please tell more about these errors and warnings? I'm very interested. The server works with two Moodle instances ... Moodle 1.9.5+ (20090806) and Moodle 2.0 dev (20090806)

Please look at my documentation http://docs.moodle.org/en/Step_by_Step_Installation_on_a_Mac_OS_X_10.5_Server
In reply to Ralf Krause

Re: Mahoodle Install on Mac OS X Tips

by Ralf Krause -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
Okay ... I found the messages. I switched on the debugging for the server and got the following messages on the first page.

Warning: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/lib/moodlelib.php on line 1305

Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/lib/moodlelib.php on line 1259

Warning: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/lib/moodlelib.php on line 1305

Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/calendar/lib.php on line 976

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/calendar/lib.php on line 976

Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/calendar/lib.php on line 112

Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/calendar/lib.php on line 113

Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/lib/moodlelib.php on line 1779

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/lib/moodlelib.php on line 1779

Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/lib/moodlelib.php on line 1132

Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/lib/moodlelib.php on line 1259

Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/lib/moodlelib.php on line 1255

Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/lib/moodlelib.php on line 1256

Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/lib/moodlelib.php on line 1255

Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/moodle19/lib/moodlelib.php on line 1256
In reply to Ralf Krause

Re: Mahoodle Install on Mac OS X Tips

by kevin metcalf -
I had this same problem today. I just opened up /usr/local/php5/lib/php.ini and added the following line under [date]
date.timezone = America/Los_Angeles

That made the problem go away for me. You can find a list of OK time zones at:
http://php.net/timezones

- Kevin

In reply to kevin metcalf

Re: Mahoodle Install on Mac OS X Tips

by Hayden Middlin -
Hello Kevin,
I tried that using my time zone but it didn't work. I guess I must of made a syntax error somewhere. I will try again when I build our next production server.
In reply to Ralf Krause

Re: Mahoodle Install on Mac OS X Tips

by Hayden Middlin -
Yes Ralph that was what I was seeing.
I wish I had seen your documentation some time ago, it would have saved me a great deal of time.
I use a free app called Lingon to run my cron jobs. It has a GUI so it is a bit easier to setup than creating files.
I also use a purchased app, Navicat, to manage the Mysql databases.
In reply to Hayden Middlin

Re: Mahoodle Install on Mac OS X Tips

by Ralf Krause -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
I wrote about the warnings in the Entropy forum
http://www.entropy.ch/phpbb2/viewtopic.php?p=13282#13282