Hướng dẫn the requested php extension ext-gd is missing from your system install or enable phps gd extension - tiện ích mở rộng php được yêu cầu ext-gd bị thiếu trong cài đặt hệ thống của bạn hoặc bật tiện ích mở rộng phps gd

Trước khi cài đặt phụ thuộc còn thiếu, bạn cần kiểm tra phiên bản PHP nào được cài đặt trên hệ thống của bạn.

php -v
PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies

Trong trường hợp này là PHP7.2. apt search php7.2 Trả về tất cả các tiện ích mở rộng PHP có sẵn.

apt search php7.2
Sorting... Done
Full Text Search... Done
libapache2-mod-php7.2/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  server-side, HTML-embedded scripting language (Apache 2 module)

libphp7.2-embed/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  HTML-embedded scripting language (Embedded SAPI library)

php-all-dev/bionic,bionic 1:60ubuntu1 all
  package depending on all supported PHP development packages

php7.2/bionic-updates,bionic-updates,bionic-security,bionic-security 7.2.10-0ubuntu0.18.04.1 all
  server-side, HTML-embedded scripting language (metapackage)

php7.2-bcmath/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  Bcmath module for PHP

php7.2-bz2/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  bzip2 module for PHP

php7.2-cgi/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  server-side, HTML-embedded scripting language (CGI binary)

php7.2-cli/bionic-updates,bionic-security,now 7.2.10-0ubuntu0.18.04.1 amd64 [installed,automatic]
  command-line interpreter for the PHP scripting language

php7.2-common/bionic-updates,bionic-security,now 7.2.10-0ubuntu0.18.04.1 amd64 [installed,automatic]
  documentation, examples and common module for PHP

php7.2-curl/bionic-updates,bionic-security,now 7.2.10-0ubuntu0.18.04.1 amd64 [installed]
  CURL module for PHP

php7.2-dba/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  DBA module for PHP

php7.2-dev/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  Files for PHP7.2 module development

php7.2-enchant/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  Enchant module for PHP

php7.2-fpm/bionic-updates,bionic-security,now 7.2.10-0ubuntu0.18.04.1 amd64 [installed]
  server-side, HTML-embedded scripting language (FPM-CGI binary)

php7.2-gd/bionic-updates,bionic-security,now 7.2.10-0ubuntu0.18.04.1 amd64 [installed]
  GD module for PHP

php7.2-gmp/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  GMP module for PHP

php7.2-imap/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  IMAP module for PHP

php7.2-interbase/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  Interbase module for PHP

php7.2-intl/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  Internationalisation module for PHP

php7.2-json/bionic-updates,bionic-security,now 7.2.10-0ubuntu0.18.04.1 amd64 [installed,automatic]
  JSON module for PHP

php7.2-ldap/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  LDAP module for PHP

php7.2-mbstring/bionic-updates,bionic-security,now 7.2.10-0ubuntu0.18.04.1 amd64 [installed,automatic]
  MBSTRING module for PHP

php7.2-mysql/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  MySQL module for PHP

php7.2-odbc/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  ODBC module for PHP

php7.2-opcache/bionic-updates,bionic-security,now 7.2.10-0ubuntu0.18.04.1 amd64 [installed,automatic]
  Zend OpCache module for PHP

php7.2-pgsql/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  PostgreSQL module for PHP

php7.2-phpdbg/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  server-side, HTML-embedded scripting language (PHPDBG binary)

php7.2-pspell/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  pspell module for PHP

php7.2-readline/bionic-updates,bionic-security,now 7.2.10-0ubuntu0.18.04.1 amd64 [installed,automatic]
  readline module for PHP

php7.2-recode/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  recode module for PHP

php7.2-snmp/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  SNMP module for PHP

php7.2-soap/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  SOAP module for PHP

php7.2-sqlite3/bionic-updates,bionic-security,now 7.2.10-0ubuntu0.18.04.1 amd64 [installed]
  SQLite3 module for PHP

php7.2-sybase/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  Sybase module for PHP

php7.2-tidy/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  tidy module for PHP

php7.2-xml/bionic-updates,bionic-security,now 7.2.10-0ubuntu0.18.04.1 amd64 [installed]
  DOM, SimpleXML, WDDX, XML, and XSL module for PHP

php7.2-xmlrpc/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  XMLRPC-EPI module for PHP

php7.2-xsl/bionic-updates,bionic-updates,bionic-security,bionic-security 7.2.10-0ubuntu0.18.04.1 all
  XSL module for PHP (dummy)

php7.2-zip/bionic-updates,bionic-security 7.2.10-0ubuntu0.18.04.1 amd64
  Zip module for PHP

Bây giờ bạn có thể tiến hành cài đặt sự phụ thuộc còn thiếu bằng cách chạy:

sudo apt install php7.2-gd

Làm cách nào để kích hoạt mở rộng GD của PHP?

Bước 1: Mở Bảng điều khiển XAMPP từ thanh tác vụ của hệ thống của bạn ...
Bước 2: Bắt đầu Apache & MySQL ..
Bước 3: Nhấp vào cấu hình của Apache ..
Bước 4: Nhấp vào PHP. ....
Bước 5: Mở tìm kiếm tệp đó cho tiện ích mở rộng = FileInfo ..
Bước 6: Thêm tiện ích mở rộng = GD trên dòng tiếp theo sau khi mở rộng = FileInfo và sau đó lưu tệp và đóng nó ..

Làm thế nào tôi có thể biết nếu GD được bật trong PHP?

Để biết điều này, chúng tôi có thể sử dụng chức năng PHPINFO và kiểm tra hỗ trợ GD hay không. Dưới đây là hình ảnh của hàm Phpinfo hiển thị trong hệ thống kích hoạt GD. Hình ảnh trên được hiển thị bởi hàm PHPINFO cho thấy hỗ trợ GD được bật trong hệ thống PHP và sẵn sàng sử dụng.use phpinfo function and check GD support is available or not. Here is an image of what phpinfo function displays in a GD enabled system. The above image displayed by phpinfo function shows that GD support is enabled in the php system and ready to use.

Phần mở rộng GD là gì?

Tệp GD chứa mã nguồn được viết bằng GDScript, là ngôn ngữ kịch bản được sử dụng để tạo và sửa đổi nội dung trong động cơ Godot.Nó lưu trữ mã trong một cú pháp tương tự như Python, có thể bao gồm các định danh, từ khóa, toán tử, biến, hằng số, chức năng và nhận xét.contains source code written in GDScript, which is a scripting language used to create and modify content in Godot Engine. It stores code in a syntax similar to Python, which may include identifiers, keywords, operators, variables, constants, functions, and comments.

Làm cách nào để cài đặt hoặc bật tiện ích mở rộng GMP của PHP?

Cách kích hoạt các tiện ích mở rộng cần thiết với quyền truy cập dòng lệnh..
Via CommandLine: Sudo apt-get Cài đặt libgmp-dev PHP7.0-GMP Curl Php7.0-Curl ..
Thêm dòng bên dưới vào PHP.ini (ví dụ:/etc/php7. 0/apache2/php. ini) [?] Extension = gmp.so ..
Khởi động lại máy chủ web của bạn (ví dụ: Apache):.