Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

admin/environment/php extension/gd: diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
(environment template)
 
(Hi ha 2 revisions intermèdies del mateix usuari que no es mostren)
Línia 1: Línia 1:
 
{{Environment}}
== GD module for php5 ==
== 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]]

Revisió de 09:42, 25 abr 2012

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