LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help loading php4-gd with php4 already installed. (Debian) (https://www.linuxquestions.org/questions/linux-software-2/help-loading-php4-gd-with-php4-already-installed-debian-374073/)

sdduuuude 10-17-2005 07:11 PM

Help loading php4-gd with php4 already installed. (Debian)
 
Greetings. This looks like an outstanding forum. Thank you in advance for your help.

I am a perl/php/mysql/javascript/html programmer and I have recently lost my linux admin so it is time to learn some new things.

I have a server running Debian that has php4 loaded and working.
I want to get jpgraph running. jpgraph was loaded by the former admin but it won't run because php4 was not compiled with GD support.

So, I did the following to load php4-gd:
"aptitude install php4-gd"

It seemed to work, but still jpgraph says php was complied without GD support. So, I'm thinking I need to monkey with one or both of these two files:
/etc/php4/cli/php.ini
/etc/php4/apache2/php.ini

I found this line that seems like it may be the right one to uncomment, but I really don't know. I looked for the file gd.so on the server but couldn't find it:

;extension=gd.so

Also, if I change this line, I probably need to start and stop php so the .ini changes take effect.

I'm stuck and unsure of my next step.

D

ricstirato 10-20-2005 04:29 PM

For using PHP with the web server, /etc/php4/apache2/php.ini is the relevant file. The cli directory containts configuration for "command line PHP".

The line you found is correct; simply uncomment it by removing the leading semicolon.

PHP itself can't be restarted, as it is (typically) loaded as an Apache module. You must restart the webserver. Should be:

/etc/init.d/apache restart

done as root.


Regards
ric.

sdduuuude 10-20-2005 05:33 PM

Any idea why I can't locate the gd.so file?
Possible that gd didn't load properly?

ricstirato 10-24-2005 05:13 AM

gd.so should be located in /usr/lib/php4/20020429

If it isn't there, probably something went wrong during installation.
In this case you should re-install with apt(itude) and post the error message if any appears.

Regards
ric.


All times are GMT -5. The time now is 10:48 AM.