Solved

GD Library installation in PHP - Centos

Posted on 2008-06-18
15
2,059 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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
 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…
The viewer will learn how to count occurrences of each item in an array.

813 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

10 Experts available now in Live!

Get 1:1 Help Now