Solved

How to enable gd on Apache2 SUSE10

Posted on 2006-07-07
4
831 Views
Last Modified: 2013-12-16
Suse 10
I installed apache2, apxs, mysql, ... and php4 as module also php4-gd (gd) php4-mysql etc .. all using yast
started and stoped apache2 server

but my phpinfo() shows all the time this
 './configure' '--prefix=/usr' '--datadir=/usr/share/php' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-inline-optimization' '--enable-memory-limit' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild' '--disable-ctype' '--disable-session' '--without-mysql' '--disable-cli' '--without-pear' '--with-openssl' '--with-apxs2=/usr/sbin/apxs2-prefork' 'i586-suse-linux'

note '--without-mysql'  but mysql support works

Server API       Apache 2.0 Handler

I have error log from apache Unable to load dynamic library '/usr/lib/php/extensions/gd.s' ...  undefined symbol gdImagePngCtx in Unknown

Please
I want to enable gd I have all packages installed and restarted server and I think that problem is in
Unable to load dynamic library '/usr/lib/php/extensions/gd.s' ...  undefined symbol gdImagePngCtx in Unknown
How to solve this

0
Comment
Question by:mirzaAbazovic
  • 2
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 125 total points
ID: 17060937
Appears to be a fairly common problem this. Normally solved by:

Add the following line to /etc/ld.so.conf:

/usr/lib/php/extensions/

This adds the directory to your library directory list. Then run:

/sbin/ldconfig

To load the new library list into the system and then retry:)

(   (()
(`-' _\
 ''  ''

0
 
LVL 1

Author Comment

by:mirzaAbazovic
ID: 17067290
Still not helping
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17067371
'/usr/lib/php/extensions/gd.s'

from your post....I presume that this is a spelling mistake?...or did you cut and paste? I'd expect the file to be:

/usr/lib/php/extensions/gd.so

Can you check that this file exists, If so, then check the /etc/php.ini and files in the /etc/php.d/ for a directive "extension=gd.so" or similar.

>note '--without-mysql'  but mysql support works.

mySQL support for php, apache, and other systems within your server are all different. The --without-mysql refers to only the phpinfo() directive. Provided the necessary libraries are loaded as moduels, then mySQL databases may still be useable.

(   (()
(`-' _\
 ''  ''






0
 
LVL 1

Author Comment

by:mirzaAbazovic
ID: 17070757
Yes I have included line /usr/lib/php/extensions/gd.so in php.ini and i have go.so in that dir. I heard that suse 10 does not support gd is that true ?????
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now