LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-17-2005, 07:11 PM   #1
sdduuuude
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Rep: Reputation: 0
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
 
Old 10-20-2005, 04:29 PM   #2
ricstirato
Member
 
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174

Rep: Reputation: 24
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.
 
Old 10-20-2005, 05:33 PM   #3
sdduuuude
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Any idea why I can't locate the gd.so file?
Possible that gd didn't load properly?
 
Old 10-24-2005, 05:13 AM   #4
ricstirato
Member
 
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174

Rep: Reputation: 24
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 and php4 in Debian swmok Debian 1 06-09-2005 05:21 PM
Apache PHP4 Debian Sarge (2.6.8) Mauler Linux - Software 1 11-24-2004 06:24 PM
php4 with apache2? the debian way, how? Tisch Debian 4 08-19-2004 09:35 AM
Apache + PHP4 on Debian Mikessu Linux - Networking 3 12-31-2003 12:59 AM
Debian, apache2 and php4 Pasi Linux - Distributions 1 03-20-2003 07:28 PM


All times are GMT -5. The time now is 07:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration