Note: You are currently viewing documentation for Moodle 3.2. Up-to-date documentation for the latest stable version of Moodle is probably available here: admin/environment/php extension/gd.

admin/environment/php extension/gd: Difference between revisions

From MoodleDocs
m (Move Category and Spanish link to the bottom of the page)
 
Line 23: Line 23:


  sudo /etc/init.d/apache2 restart
  sudo /etc/init.d/apache2 restart
[[Category:Environment|PHP]]
[[es:admin/environment/php extension/gd]]


== Install GD module for php 7 ==
== Install GD module for php 7 ==
Line 33: Line 29:


  yum install php70-gd
  yum install php70-gd
[[Category:Environment|PHP]]
[[es:admin/environment/php extension/gd]]

Latest revision as of 13:17, 11 May 2017

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

Install GD module for php 7

Centos: Download and install gd

yum install php70-gd