admin/environment/php extension/gd: Difference between revisions
From MoodleDocs
Helen Foster (talk | contribs) m (category) |
Helen Foster (talk | contribs) (Centos info copied from 21 wiki) |
||
Line 9: | Line 9: | ||
sudo apt-get install php5-gd | sudo apt-get install php5-gd | ||
You might need to restart Apache (not necessary) | |||
sudo /etc/init.d/apache2 restart | |||
'''Centos:''' | |||
Download and install gd | |||
yum install php-gd | |||
You might need to restart Apache (not necessary) | You might need to restart Apache (not necessary) |
Revision as of 10:16, 30 November 2011
GD module for php5
This package provides a module for handling graphics directly from PHP scripts. It supports the PNG, JPEG, XPM formats as well as Freetype/ttf fonts.
Install GD module for php 5
Ubuntu: Download and install gd
sudo apt-get install php5-gd
You might need to restart Apache (not necessary)
sudo /etc/init.d/apache2 restart
Centos: Download and install gd
yum install php-gd
You might need to restart Apache (not necessary)
sudo /etc/init.d/apache2 restart