Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP: How to install the GD Modul for making and editing images on the fly?

Im confused about the things in the internet...

must I install the GD Library on my webserver.. it sounds like i must install it on my computer.

so please i need an easy step by step way to install it on my webserver.

thx in advance.. and sry for my bad english.

edit: solved! thx!

like image 534
Igramul Avatar asked Nov 23 '10 10:11

Igramul


People also ask

How do I know if GD extension is installed?

Use the phpinfo() method to check whether the GD library is installed in the PHP server. It will display information about the PHP's configuration. Search for GD Support, you'll see the information about the GD configuration.

How do I install imagick?

Install ImageMagick extension: Now install the ImageMagick PHP extension by using the following command. Install Imagick extension: After completion of ImageMagick package, the Imagick PHP extension will install. Restart Apache Server: Restart the apache server by using the following command.


2 Answers

Assuming your have sudo privileges and command line access to the server hosting your site, you should do the following to get the PHP graphics library that Elementor requires to be enabled.

1) sudo apt-get install php-gd

2) In php.ini (normally /ete/php/7.0/apache2/php.ini):

CHANGE

;extension=php_gd2.dll

to

extension=php_gd2.dll

(You're just un-commenting it)

3) Restart Apache: sudo service apache2 restart

Hope this helps someone!!!

like image 53
John Smith Avatar answered Oct 25 '22 22:10

John Smith


If you're hosting it yourself and you installed PHP properly, you just have to enable php_gd2 in php.ini.

like image 30
bcosca Avatar answered Oct 25 '22 21:10

bcosca