Solved

GD Library installation in PHP - Centos

Posted on 2008-06-18
15
2,044 Views
Last Modified: 2013-11-05
Hello! I am 100% newbie. I have a VPS with centos and cpanel. When I try to run my vbulltin forum or a contact form, the captcha doesn't work. Someone told that I have to install GD Library. Could anyone tell me, how can I install GD Library?

Or is any onther way to use the captcha?
0
Comment
Question by:alexandros_noob
  • 8
  • 4
  • 3
15 Comments
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 21811477
yum install php-gd
0
 

Author Comment

by:alexandros_noob
ID: 21811519
What I have to do with yum? Could you please explain it to me?
0
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 21811534
yum does install packages..you have asked to install the gd library executing the command above will install the needed libraries and change your php config file to load the module.
0
 

Author Comment

by:alexandros_noob
ID: 21811599
Well. I have download yum, but how can I install the packages? And what i have to do in my php config file? I am completely newbie, sorry.
0
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 21811640
have you tried just to execute

yum install php-gd
0
 

Author Comment

by:alexandros_noob
ID: 21811651
OK Where I have to give that command?
0
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 21811672
in the command line shell
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

Author Comment

by:alexandros_noob
ID: 21814126
Well, i just installed  the GD library with that command. Then, i restart apache and server. Now, what I have to do?
0
 
LVL 29

Expert Comment

by:Michael W
ID: 21823404
To see if the GD module loaded correctly under PHP, create a simple webpage like info.php and add the following statement into it:

<?php phpinfo(); ?>

As an example of the output, use my development site to see what the above statement shows:

http://www.ignitewireless.com/info.php

0
 

Author Comment

by:alexandros_noob
ID: 21823463
Well, this is my results: http://208.53.183.97/~noobgr/info.php
0
 

Author Comment

by:alexandros_noob
ID: 21823477
I have to change something in cpanel's files to load the gd library?
0
 
LVL 29

Expert Comment

by:Michael W
ID: 21823514
It seems the php-gd library didn't take or something else isn't correctly configured. Let's first see what you currently have loaded under the CentOS rpm libraries.

Using ssh shell to the VPS you are on, run the following commands:

rpm -qa | grep php

rpm -qa | grep http

The cut/paste the output given here so we can look at it closer.
0
 
LVL 29

Accepted Solution

by:
Michael W earned 500 total points
ID: 21823565
Since you are using cpanel & WHM, I also found this link that 'might' help:
http://www.webhostingtalk.com/showthread.php?t=515694
0
 

Author Comment

by:alexandros_noob
ID: 21829140
Hello! I did that http://www.webhostingtalk.com/showthread.php?t=515694  and i installed GD. But now, take a loot what appears: http://208.53.183.97/~noobgr/index.php?option=com_rsform&Itemid=61

(error message: the function imagettext does not exist)

And vbulletin does not appear the image, at all. What I have to do now?
0
 

Author Comment

by:alexandros_noob
ID: 21831924
Well, wants and FreeType Library. I install it with the same way. Thanks!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 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

19 Experts available now in Live!

Get 1:1 Help Now