Help with GD2 Library - new to cpanel

nichollsd

Member
Aug 18, 2006
9
0
151
Hello everyone,

I'm brand-new to using cPanel, and I need some help setting up the GD2 Library on my Unix server for a website I'm working on. I've download the GD2 folder with all the files I need, but I don't know where to put it or what to do with it.

If anyone can offer me some help I would greatly, greatly appreciate it. Please use layman terms as I am very new and don't know my way around cPanel very well!

Thank you in advance for your help!
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,221
4
193
Minneapolis, MN
nichollsd said:
I'm brand-new to using cPanel, and I need some help setting up the GD2 Library on my Unix server for a website I'm working on. I've download the GD2 folder with all the files I need, but I don't know where to put it or what to do with it.
Do you own a dedicated server? Or just working on a Web site and only using the cPanel?
 

nichollsd

Member
Aug 18, 2006
9
0
151
I'm just working on a website for a client and using the cpanel, but I do know that they own the dedicated server.
 

globule

Member
Mar 20, 2006
12
0
151
UK
You'll only be able to install GD2 if you have root access.

If you log into WHM as root, you can choose to include GD2 PHP extension when rebuilding Apache.
 

nichollsd

Member
Aug 18, 2006
9
0
151
WHM Image Upload Size

Thank you for your help! I was able to get GD2 installed through the WHM.

The problem now is, when I try to do an image upload and resize from a hi-res image, it won't let me. The image simply doesn't resize or upload, but when I do a smaller image it works fine.

Is there another setting in the WHM or somewhere else in cPanel where I'm able to change the max upload size of a file?
 

ipet

Member
Aug 29, 2006
7
0
151
A Little More

Hi, following this topic...I am new to this and clieless. I have a virtual dedicated server and can't seem to find how to install GD in WHM, can someone point in the right direction?

Thanks,

Lena
:confused:
 

mctDarren

Well-Known Member
Jan 6, 2004
665
4
168
New Jersey
cPanel Access Level
Root Administrator
You have to recompile Apache and check the option for the GD library. In WHM under Software Click the "Update Apache" link and then check the items that you would like to be installed.

Keep in mind, the options checked are the DEFAULTS - not what you currently have compiled with PHP!!

With this in mind, you should probably have a look at a phpinfo page to see what is currently installed with PHP. A quick and easy way to check is to create a php page with phpinfo(); as the only content and viewing it in a browser. This will show you at the very top what was installed at the last compile.

After you get that info, you can go through and recompile with GD checked (plus all your other options from your phpinfo page above) and anything else you might like to install. Then you should be set. A word of caution though: compiling without knowing what you're doing can be dangerous. Do so at your own risk. If you don't feel comfortable doing it, an admin company can do it for you very cheaply. Hope that helps, GL!
 

nichollsd

Member
Aug 18, 2006
9
0
151
PHP.ini

Thanks, nickp666. I found A php.ini file, modified the upload file size, but it still won't work. Is there another line of code I have to uncomment or something to make it work properly?

I ran a phpinfo() on the server, and it says the php.ini file is located in /usr/local/lib/php.ini but I can't find/access that path. The other php.ini file I updated obviously isn't the right one, as the phpinfo still says I've got a 2M max upload size. Does anyone have any ideas/suggestions?
 
Last edited:

Murtaza_t

Well-Known Member
Jan 24, 2005
476
0
166
Earth
cPanel Access Level
Website Owner
Did you restarted Apache after making changes in php.ini..?

You can find your php.ini in /usr/lib/php.ini.. if not you will have to follow nickp666
Modify it and don't forget you restart apache for changes to reflect.
 

nichollsd

Member
Aug 18, 2006
9
0
151
Ok i think I figured it out...I had to log in as my username, and then log in as "root" using the same password as I use for my username. After that, I was able to edit the file and then I used your suggestions and restarted apache.

So far, so good! Thank you all for your help! I think I'll be good with it (for now, anyways)!
 
Last edited:

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,221
4
193
Minneapolis, MN
nichollsd said:
I've entered in pico /usr/local/lib/php.ini, have found what i need to changed and typed in what the new values should be, but then when I try to save it it says "permission denied".

I don't know how to get permission to change that, nor does the person who owns the server :confused:
Because you don't have root access to the server. That's why! Ask your host to do that for you; if they don't know, find a different host.