admin/environment/php extension/gd: Difference between revisions
From MoodleDocs
(New page: 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...) |
m (added link to spanish translation of page) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
GD module for php5 | {{Environment}} | ||
== 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. | 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 | == Install GD module for php 5 == | ||
Ubuntu: | '''Ubuntu:''' | ||
Download and install gd | Download and install gd | ||
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) | ||
sudo /etc/init.d/apache2 restart | |||
sudo /etc/init.d/apache2 restart | |||
[[Category:Environment|PHP]] | |||
[[es:admin/environment/php extension/gd]] |
Revision as of 00:49, 5 January 2015
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