where is php

trillion

Registered
I an running 10.4.6 and using apache 1.3 and php 4.4.1 as install by default in 10.4 accessed via turning on personal web sharing in system preferences.

It works great but scripts needing gd library did not function so I configured and installed gd library - quite a process really, using terminal and -bash, everything went well with the install and command line tests of gd came out successful, however php is still not recognizing gd library. I have uncommented the 'extension=php_gd.dll' line in php.ini but still no good.

what now - I thought maybe I did not have the php_gd.dll file but I don't know where to look

where is php? where is apache even? where are the php extension files?

And just to mention it, every I look, PHP is supposed to come default with gd library as of php 4.3 so if os 10.4 installs php 4.4.1 then why was the gd library not installed already. or was it - just in some other location that is not typical for php installations?

OK - I hope some one can help me with this.
Thank You
 
What instructions are you following? And what version of GD Library did you download? The Mac will not use DLL files at all: they are for Windows only. INI files also tend to refer to Windows more often than to Mac. It sounds as if you are following some instructions for Windows machines.
 
I used these instructions

http://www.paginar.net/matias/articles/gd_x_howto.html

but when php still did not work I looked at this page also

http://www.phpfreaks.com/tutorials/105/0.php

the info about the dll file came from there under 'How to Configure GD?'

I have php 4.4.1, OS 10.4.6 and Xcode 2.2.1

I used gd-2.0.33

other respective libraries installed
freetype 2.2.1
jpegsrc.v6b
libpng 1.2.12
zlib 1.2.3

freetype gave some error I didn't understand at the end

after compiling. making and istalling these libraries I did the same for gd library

ran tests in terminal

restarted apache

opened info.php for phpinfo();

no gd

did

php -m in a terminal window

Get: Unable to load dynamic library './php_gd2.dll' -(null) ...

So there should be no .dll file but I get this in terminal because I have uncommented /private/ect/php.ini to enable php_gd2.dll.

When I recomment it the above command does not give the error and just shows loaded php modules but gd is not in the list.

What do I do next?
 
Back
Top