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 开发者_C百科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!
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!!!
If you're hosting it yourself and you installed PHP properly, you just have to enable php_gd2
in php.ini.
create a simple php script like this
<?php
echo phpinfo();
?>
run the script and search for php_gd2. If you did not find it... then ...
Yes, you need to have GD installed somewhere, either on your development/production server or on a shared service host. Since there is no information about your web server, this is more of a general answer. All installation instructions can be found in manual and in the package itself.
Installing it on Ubuntu for example is as simple as running sudo apt-get install php5-gd
.
To check whether it is successfully installed, run php -m | grep gd
in CLI or create a simple PHP script <?php phpinfo()
and search for GD.
In either case, make sure to have extension=gd.so
in your php.ini
file and restart Apache, again for Ubuntu sudo /etc/init.d/apache2 restart
.
Added: Based on your additional information, you already have GD installed and enabled and the Bytehost states both GD and Image Magick are enabled.
精彩评论