After reading several posts I'm still hopelessly lost. I can't seem to get gd up and running - It come with the current version of php shipped with Mac OSX Server 10.3 and I know that I have to type in a ./configure --with-gd command somewhere.
But where? Can anyone help. I'm new to line commands and alcost helpless dealing with Mac directories Could any kind soul walk me step by step from opening the Terminal application -- to the end -- ???
Sorry to say, but your problem is why I like OS X client better than OS X server as a Moodle server. I solved the GD problem by installing the PHP version prepared especially for OS X by Marc Liyanage http://www.entropy.ch/software/macosx/php/ (which is also listed in the Moodle documentation)
His fairly new version 4.3.4 includes GD version 2 (Apple's version apparently does not). His version is intended for OS X Client but he mentions that it should work with OS X server as well. So I would give it a try. After installing and doing the test.php to see if PHP is running, you should see that GD 2 is enabled in the Admin >> Configuration menus.
Also, be certain to double check ownership of the user directories under your moodledata folder that resides outside of Documents. I had problems initially because "www" was not listed as read and write. "nobody" as owner didn't work for me under 10.3.
Thanks for your comment. However, Mac OSX Server 10.3 is bundled with PHP Version 4.3.2 and version PHP 4.3+ is supposed to include GD.
Basically, my feeling is "If it's not broken, don't fix it!" (especially with only one week before classes start). So, I wonder that re-installing PHP is overdoing things a bit much just to solve the GD problem.
I think that all that needs to be done is to _configure php_ to work with GD
I should be able to type
somewhere as a line command and GD should be up and running. But when I do that I get a "-bash: ./configure: No such file or directory" error message.
Probably I have to go to the directory php is in before I enter the command - but I know so little about Mac's directory system and UNIX configure commands that I am lost. My files are located at http://18.104.22.168/~moodle/
Can anyone help?
Have you been reading the Moodle and Mac topic over in another forum...
Some more experienced Mac server folks over there also report that the bundled PHP that comes with OS X is a "poor version" and needs to be replaced with the entropy version. Actually, I think you will find it very easy to install. It took me less than ten minutes. The bundled Apple PHP *is* broken and needs to be fixed. This is because each provider of PHP makes a custom "build" of PHP and choses which libraries and addons to include. So although PHP 4.3.* supports GD, the person/company who builds it can drop it or disable a module if they decide.
Now the only problem I foresee is that after installing the new PHP, your OS X Server Admin may ignore it (that's the kind of problem that makes me hate the Server edition). But you might as well try it, you will only lose ten minutes.
This is correct, the bundle that comes with Mac OSX does not work well with moodle and the GD lib is off by default. It requires compiling in what you need for moodle. The simplest way to get GD suport for someone new to unix is what has been said here, get the entropy php bundle and install it. It comes as an image so its easy to setup and get installed.