I'm running Moodle (learning management software) from the school
server and need to know how to update php so that GD is installed.
The server is running 10.3 Server with the latest updates. PHP is
version 4.3.2, Apache is 1.3.28 and I don't know what version of MySQL
is on it - but, it's whatever was standard. I need a version of php
that supports GD so that photos can be uploaded and displayed.
I'll make this as easy as I know how for everyone. :)
You'll see a directory called something like no-debug-non-zts-20020429.
Remember that name.
Type:
sudo cp gd.so /usr/lib/php/extensions/no-debug-non-zts-20020429 (or
whatever it was above)
sudo cp gd.a /usr/lib/php/extensions/no-debug-non-zts-20020429
That puts the PHP GD module (which I compiled against the stock Panther
PHP and statically linked against GD) into the PHP modules directory.
Finally,
sudo vi /etc/php.ini
(If you've never used vi before, it's a bit unfriendly...)
You're wanting to add the line
extension=gd.so
to the file. If you don't know how:
Press "esc", then ":", then "/". Type "Dynamic Extensions" (w/o quotes).
Press "j", then "o". Type the "extension=gd.so" line (try not to mess
up, vi editing is tricky) and press "esc" ":" "wq" and hit "return".
From system preferences, stop web sharing and then start it again. Run
that phpinfo() script and you should see GD listed.
I have not tested this on any other machine (I only have the one) and
only on Panther (10.3.4 specifically) client, not server. But it should
theoretically work on any PHP 4.3.x install.
If this works for you, you don't have to replace your Apple provided
PHP, install any extra junk, or attempt to get through a compile of
PHP.
I should probably bundle that up into a .pkg installer. Maybe
someday... :)
Good luck. If it doesn't work I'll try to help if I can.
-Steve
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.