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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-17-2005, 08:11 PM
|
#1
|
LQ Newbie
Registered: Oct 2005
Posts: 4
Rep:
|
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
|
|
|
10-20-2005, 05:29 PM
|
#2
|
Member
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174
Rep:
|
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.
|
|
|
10-20-2005, 06:33 PM
|
#3
|
LQ Newbie
Registered: Oct 2005
Posts: 4
Original Poster
Rep:
|
Any idea why I can't locate the gd.so file?
Possible that gd didn't load properly?
|
|
|
10-24-2005, 06:13 AM
|
#4
|
Member
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174
Rep:
|
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 04:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|