LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2012, 01:18 PM   #1
conflicker
Member
 
Registered: Sep 2011
Posts: 89

Rep: Reputation: Disabled
php GD image extension


Hi everybody I'm having wordpress plugin for contact form with captcha on my site, but it give some error like
Quote:
GD image support not detected in PHP
Quote:
imagepng function not detected in PHP
When I do a search I found out that extension=php_gd2.dll should be enabled to use the imagepng function. I remove the ";" before extension=php_gd2.dll on /usr/local/lib/php.ini and restart the apache..

But when I do
Quote:
php -m
the gd is not showing and still got the error above..
Did I missed something or I'm editing the wrong php.ini.

Any help...
 
Old 04-19-2012, 01:33 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Run the following to see where the php.ini file for your PHP instance is.

Code:
 php -i | grep "Loaded Configuration File"


---------- Post added 04-19-12 at 10:34 AM ----------

Also, it sounds like you are using cPanel is that correct?
 
Old 04-19-2012, 01:36 PM   #3
conflicker
Member
 
Registered: Sep 2011
Posts: 89

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Kustom42 View Post
Run the following to see where the php.ini file for your PHP instance is.

Code:
 php -i | grep "Loaded Configuration File"


---------- Post added 04-19-12 at 10:34 AM ----------

Also, it sounds like you are using cPanel is that correct?
The result of the command that you gave is
Quote:
<tr><td class="e">Loaded Configuration File </td><td class="v">/usr/local/lib/php.ini </td></tr>
It seems I'm modifying the right file, right?
And yes I'm using cPanel, does it have another php.ini?

Last edited by conflicker; 04-19-2012 at 01:39 PM.
 
Old 04-19-2012, 01:40 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Yes cPanel is crazy with PHP/Apache. You will need to use its "EasyApache" interface to recompile with the GD2 extension. You can access it from within the web based cpanel by searching for it in the upper righ tor running the following command as root via ssh:

Code:
/usr/local/cpanel/scripts/easyapache
It is a walkthrough wizard that will ask you what version of PHP, Apache, what extensions you want and so on and it will re-compile it for you. That will do the trick.
 
1 members found this post helpful.
  


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
[SOLVED] OpenSSL PHP extension have to be enabled to use extension repository system. jsaravana87 Linux - Server 2 09-09-2011 01:00 AM
GD2 extension for PHP moiseszaragoza Linux - Software 1 11-18-2010 11:59 PM
Is it possible to extract a file from FAT16 image by it's name/extension??? hhanff Linux - Hardware 3 10-17-2008 02:23 AM
PHP: how can I return an image - not the html img src tag, but the image data BrianK Programming 3 05-18-2007 03:28 PM
php image blob managing cannot get image from html ilpadrino Programming 6 04-15-2007 10:05 AM


All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration