Ubuntu Linux install or add php gd support to Apache

Q. I am using Apache server and PHP5. How do I install install php gd support?

A. PHP is used mainly in server-side application software along with various addons.

PHP includes a large number of free and open source libraries with the core build. PHP is a fundamentally Internet-aware system with modules built in for accessing FTP servers, many database servers, embedded SQL libraries such as embedded MySQL and SQLite, LDAP servers, and others. Many functions familiar to C programmers such as those in the stdio family are available in the standard PHP build.

The GD Graphics Library for dynamically manipulating images. You will need to compile PHP with the GD library of image functions for this to work.

However Ubuntu (and Debian) comes with package called php5-gd

Just type following command to install this module:
# apt-get install php5-gd
$ sudo apt-get install php5-gd

Restart Apache
# /etc/init.d/apache2 restart

Test your php application.

标签: none

已有 4 条评论

  1. It looks like you've misspelled the word "fait" on your website. I thought you would like to know :). Silly mistakes can ruin your site's credibility. I've used a tool called SpellScan.com in the past to keep mistakes off of my website.


  2. I was looking at your website and noticed it appears the word "fait" is spelled wrong. I had similar problems on my site until someone mentioned it to me and I also now use software from SpellPerfect.com to keep my site error free.

  3. Hi,

    I thought I would mention that it looks like the word "fait" is spelled incorrectly on your website. I've seen some tools to help with problems like this such as SpellAlert.com or WebsiteChecker.com. I just thought you should know!


  4. Hello,

    You misspelled the word "fait" on your website. Sometimes errors like can hurt your web traffic. Maybe check out a service that alerts you to issues like SpellReport.com or CheckMySite.com.