The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php build?..

Discussion in 'General Discussion' started by bigpy2003, Aug 1, 2004.

  1. bigpy2003

    bigpy2003 Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    I have a website that happens to use PHP's GD functions. I run a phpinfo() file and anyhow, it says I have 2.0.23 of GD. Note: When using version 4.3.7 of php this site worked fine. Then, I upgraded and PHP/GD has removed all GIF support, until version 2.0.28

    http://www.zend.com/zend/week/week194.php#Heading12

    Says that they compiled in 2.0.28. Maybe CPanel can update it's PHP Package or atleast give a tutorial on how to do it?
     
  2. ISNScott

    ISNScott Member

    Joined:
    Jul 16, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    login via root and type

    /scripts/easyapache

    and when it asks choose option 5
     
  3. bigpy2003

    bigpy2003 Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    I do that, however it still does not give me the newest version of GD. I've done that multiple times before you even mentioned it.
     
  4. ISNScott

    ISNScott Member

    Joined:
    Jul 16, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
  5. bigpy2003

    bigpy2003 Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Code:
    root@drawing [~]# php -r "var_dump(gd_info());";
    array(11) {
      ["GD Version"]=>
      string(27) "bundled (2.0.23 compatible)"
      ["FreeType Support"]=>
      bool(true)
      ["FreeType Linkage"]=>
      string(13) "with freetype"
      ["T1Lib Support"]=>
      bool(false)
      ["GIF Read Support"]=>
      bool(true)
      ["GIF Create Support"]=>
      bool(false)
      ["JPG Support"]=>
      bool(true)
      ["PNG Support"]=>
      bool(true)
      ["WBMP Support"]=>
      bool(true)
      ["XBM Support"]=>
      bool(true)
      ["JIS-mapped Japanese Font Support"]=>
      bool(false)
    }
    I can read but not create. I am wanting to create them though. I have went to GD's homepage, I have compiled, and have installed. GD is now integrated to PHP though so it has to be built into the PHP version.
     
  6. bigpy2003

    bigpy2003 Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    I fixed it.

    I went to: http://snaps.php.net/

    Copied the link of their most recent PHP version

    I then did:
    cd /home/cpapachebuild/buildapache

    wget <most recent php link here>

    It'll then create a .tar.gz file named.. php-STABLE..

    You then run the following command:
    tar -zxvf php-STABLE... (whatever the file name is)

    Once you do this, you then do:
    mv php-STABLE..(whatever folder name is) php-4.3.8

    This will rename the folder to 'php-4.3.8'
    Then type:
    /scripts/easyapache

    Choose option 5, or option 7 (if you want to recompile your old apache conf)

    It should then run fine..

    Also note, that I am not in no way a technical expert when it comes to cpanel, so use this at your own discretion.

    I now get:
    Code:
    root@drawing [/home/cpapachebuild/buildapache]# php -r "var_dump(gd_info());";
    array(11) {
      ["GD Version"]=>
      string(27) "bundled (2.0.28 compatible)"
      ["FreeType Support"]=>
      bool(true)
      ["FreeType Linkage"]=>
      string(13) "with freetype"
      ["T1Lib Support"]=>
      bool(false)
      ["GIF Read Support"]=>
      bool(true)
      ["GIF Create Support"]=>
      bool(true)
      ["JPG Support"]=>
      bool(true)
      ["PNG Support"]=>
      bool(true)
      ["WBMP Support"]=>
      bool(true)
      ["XBM Support"]=>
      bool(true)
      ["JIS-mapped Japanese Font Support"]=>
      bool(false)
    }
    
     
    #6 bigpy2003, Aug 2, 2004
    Last edited: Aug 2, 2004
  7. bigpy2003

    bigpy2003 Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Can a cpanel dev comment on this ? heh
     
Loading...

Share This Page