GD library is used khổng lồ manipulate image file in PHP. You will need lớn install GD library for image functions lớn work. If you are using Apache web hệ thống with PHP 5 server side scripting language lớn create dynamic website pages for your website. Then this tutorial will help you a lot.
Bạn đang xem: How to install php gd support on windows server
In this tutorial I will describe how you can install php5-gd on Ubuntu and Debian system.
Installing PHP-GD
Follow the below simple steps khổng lồ enable GD extension on Ubuntu & Debian system.
$ sudo apt-get install php5-gdAfter installation is complete, restart the Apache web server using below command.
$ sudo service apache2 restartNow verify the PHP GD tư vấn is enabled or not using below command.
Xem thêm: Bí Quyết Chọn Kèo Trước Trận Đấu Của Cao Thủ, 5 Kinh Nghiệm Chọn Kèo Trước Trận Đấu Của Cao Thủ
$ php -i | grep -i --color gdYou will get some output like below:
/etc/php5/cli/conf.d/20-gd.ini,gdGD support => enabledGD Version => 2.1.1-devgd.jpeg_ignore_warning => 0 => 0GDM_LANG => en_USGDMSESSION => ubuntu_SERVER<"GDM_LANG"> => en_US_SERVER<"GDMSESSION"> => ubuntuYou can also kiểm tra GD extension is enable or not using phpinfo.php page. You will need lớn create a phpinfo.php with below code.
$ vim phpinfo.phpSave and close file.
Now open browser & access phpinfo.php page.
http://domain_name_or_IP/phpinfo.php

