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
OR
$ sudo apt-get install php5-gd

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

Copy from http://www.cyberciti.biz/faq/ubuntu-linux-install-or-add-php-gd-support-to-apache/

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s