Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Member
    Join Date
    Aug 2006
    Posts
    9

    Default Help with GD2 Library - new to cpanel

    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!

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by nichollsd
    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?
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  3. #3
    Member
    Join Date
    Aug 2006
    Posts
    9

    Default

    I'm just working on a website for a client and using the cpanel, but I do know that they own the dedicated server.

  4. #4
    Member
    Join Date
    Mar 2006
    Location
    UK
    Posts
    12

    Default

    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.

  5. #5
    Member
    Join Date
    Aug 2006
    Posts
    9

    Default 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?

  6. #6
    Member
    Join Date
    Jan 2005
    Location
    /dev/null
    Posts
    770

    Default

    that will be in the php.ini, it defaults to 2MB, i suggest not changing it from that for security/load reasons, you will need to check the file size client side to not allow files bigger than 2MB to be posted.

  7. #7
    Member
    Join Date
    Aug 2006
    Posts
    7

    Default 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

  8. #8
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    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!

  9. #9
    Member
    Join Date
    Aug 2006
    Posts
    9

    Default 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 by nichollsd; 08-29-2006 at 02:44 PM.

  10. #10
    Member
    Join Date
    Jan 2005
    Location
    /dev/null
    Posts
    770

    Default

    Do you have Zend Optimizer running?

    if you do the php.ini will be in /usr/local/Zend/etc/

    failing that, type at the shell: updatedb

    then once thats done, type: locate php.ini

    and it will return any files matching php.ini

  11. #11
    Member Murtaza_t's Avatar
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    471

    Default

    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.

  12. #12
    Member
    Join Date
    Aug 2006
    Posts
    9

    Default

    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 by nichollsd; 08-30-2006 at 11:00 AM.

  13. #13
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by nichollsd
    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
    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.
    Andy Reed
    RHCE and CCNA
    ServerTune.com

Similar Threads & Tags
Similar threads

  1. Wrong JPEG library version: library is 62, caller expects 70
    By flashweb in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-12-2011, 10:32 AM
  2. GD2 Library
    By lblanchardiii in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-14-2008, 06:12 PM
  3. need help with gd2 error
    By [ah] phu in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-29-2004, 04:40 AM
  4. gd2 @ php 4.3.3
    By kahoz in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 03-16-2004, 11:55 AM
  5. GD2 with PHP
    By danielaugustus in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-21-2003, 02:01 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube