1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to enable GD?

Discussion in 'Site & Server Administration' started by killaklown, Jul 20, 2007.

  1. #1
    I want to put a captcha in a checkout for a site of mine, but GD isnt enabled on my server. How do i install it onto my server? I have webmin which i believe i can do it from there.


    Operating system: Ubuntu Linux 6.06.1
    Webmin version 1.330
     
    killaklown, Jul 20, 2007 IP
  2. Neptune

    Neptune Well-Known Member

    Messages:
    1,465
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    108
    #2
    sudo apt-get install GD

    or use imagemagick

    sudo apt-get install imagemagick
     
    Neptune, Jul 20, 2007 IP
  3. killaklown

    killaklown Well-Known Member

    Messages:
    2,666
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    165
    #3
    Not really sure how to use those commands...

    i type "-get install GD" and it gives me:
    And if i do "sudo apt-get install GD" or "apt-get install GD" it says:

     
    killaklown, Jul 20, 2007 IP
  4. Neptune

    Neptune Well-Known Member

    Messages:
    1,465
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    108
    #4
    Are you on a home computer or a remote server? Chances are GD is installed already if you are on a remote server that a company has set up for you.


    check php.ini file whether the "extension=php_gd2" is enabled. In php.ini ifle, there is one line related to gd extension.
     
    Neptune, Jul 20, 2007 IP
  5. killaklown

    killaklown Well-Known Member

    Messages:
    2,666
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    165
    #5
    Remote server. and the GD isnt installed. I just downloaded gd-2.0.35.tar.gz and uploaded to the server, now when i go and do "sudo apt-get install GD" i get:

    Only question.. how do i continue?

    Oh, and i found that command when searching google.
     
    killaklown, Jul 20, 2007 IP
  6. Neptune

    Neptune Well-Known Member

    Messages:
    1,465
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    108
    #6
    yes u continue however, it will do php5 so I hope that is what u have running.
     
    Neptune, Jul 20, 2007 IP
    killaklown likes this.
  7. killaklown

    killaklown Well-Known Member

    Messages:
    2,666
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    165
    #7

    When i go to PHP Configuration in the webmin it shows "/etc/php5/apache2/php.ini" so does that mean php5 is installed?

    And how do i continue? i tryed 'y', '[y]', continue, but none work :p
     
    killaklown, Jul 20, 2007 IP
  8. Neptune

    Neptune Well-Known Member

    Messages:
    1,465
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    108
    #8
    that just means that you have a version of php installed. Not necessarily php5. TO continue you just hit y and then press enter
     
    Neptune, Jul 20, 2007 IP
  9. killaklown

    killaklown Well-Known Member

    Messages:
    2,666
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    165
    #9
    i put y and get:

    bash: y: command not found


    I put yes, it loads for a good minute and then its just a white screen with nothing on it.

    Just checked and PHP 5.1.2 is installed on my server.
     
    killaklown, Jul 20, 2007 IP
  10. Neptune

    Neptune Well-Known Member

    Messages:
    1,465
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    108
    #10
    ok u said u downloaded the file

    then u untar it and then run the installer that comes with it. Most of the time u can do it by ./configure make make install.
     
    Neptune, Jul 20, 2007 IP