Linux - SoftwareThis 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.
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.
This could just have easily gone under Linux Newbie since I have no idea what I am doing, but since it is a software question I thought I would try this forum.
I am missing the GD library on my server so the Captcha is not working.
I looked for the php_gd2.dll in the php.ini but did not see it anywhere.
I am running Fedora 11.0-64 and PHP 5.2.13.
The steps I have tried are:
From the root doing "yum install php-gd"
Then did a "service httpd restart"
I did a grep of various pieces of "extension=php_gd2.dll" in the php.ini but did not see this line anywhere.
My file path is /etc/php.ini
Is there some where else I should be looking? Other steps I can take?
You said its not included;but its there in my fedora.What you do is serach inside the file.Its commented.
PHP includes a version of gd as "standard equipment." php_gd2.dll is included in a standard PHP installation which is not enabled by default. To turn it on, the user may simply uncomment the line "extension=php_gd2.dll" in php.ini and restart the PHP extension.
Change:
Quote:
#extension=php_gd2.dll
To:
Quote:
extension=php_gd2.dll
You may also have to correct the extension directory setting from:
Quote:
extension_dir = "./"
Or:
Quote:
extension_dir = "./extensions"
Last edited by prayag_pjs; 10-13-2010 at 11:59 PM.
dll files are windows dynamic libraries. For linux the dynamic (shared) library should be gd.so.
Since you used yum to install php-gd, I guess it's already installed. To verify, run fro CLI:
Code:
php -i|grep GD
You need also to restart the web server in order to use the extension.
prayag_pjs, thanks for the help.
Bear with me as I am new at this.
From the directory /root/etc
I type
grep "php_gd2.dll" php.ini
and nothing shows up.
I type in
grep extension php.ini
and all I get is
"[root@server2 etc]# grep extension php.ini
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.
; leading '/'. You must also specify the file extension being used including
; If you wish to have an extension loaded automatically, use the following
; extension=modulename.extension
; extension=msql.so
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.
; Note: packaged extension modules are now loaded via the .ini files
; Sets the directory name where SOAP extension will put cache files.
[root@server2 etc]#
so I don't see the line I am supposed to uncomment.
Am I in in the wrong file? wrong directory? Missing complete chunks of code?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.