Hướng dẫn wordpress install gd library

Do you know how can I install GD Library for use it in PHP files of a Wordpress website?

I'm creating my own captcha and I need this library to create my different images.

sanyassh

7,61213 gold badges30 silver badges62 bronze badges

asked May 22, 2019 at 15:43

The GD Library will need to be installed on the server that is hosting your website. This is not something that you can simply install in WordPress. The installation will depend on your server configuration and if you have access to do this.

If you do not maintain your server, then you should reach out to your host for help with this issue.

If you do manage your own server, you can install this yourself. Here are the commands that you would use to install the GD Library on an Ubuntu server that is running PHP 7. If your server is set up differently or running a different version of PHP then you would need to find the proper instructions.

$ apt-get update
$ apt-get install php7.0-gd php7.0

Here are some further instructions: https://linoxide.com/linux-how-to/install-php7-gd-ubuntu-16-04/

answered May 22, 2019 at 16:24

MarcMarc

4,4393 gold badges40 silver badges59 bronze badges

1

Trang chủ » Hướng dẫn sửa lỗi The required PHP extension GD could not be found trên xampp và VPS

Hướng dẫn fix lỗi The required PHP extension GD could not be found. Please ask your host to install this extension khi cài xenforo trên xampp và máy chủ ảo (VPS)

Lỗi này có nghĩa là phần mở rộng (extension) GD chưa được kích hoạt trên xampp , thông thường thì PHP 7 trở lên sẽ không có sẵn phần mở rộng GD, khi cài đặt một số script ví dụ như xenforo thì sẽ báo lỗi như trên. Vậy làm sao để sửa lỗi này?

Cách sửa lỗi The required PHP extension GD could not be found. Please ask your host to install this extension trên Xampp:

  • Bạn tắt Apache đi rồi ấn vào config, sửa file php.ini
  • sau đó tìm dòng ;extension=gd
  • Xoá dấu chấm phẩy ; ở đầu dòng đi và lưu lại
  • Khởi động lại xampp là xong

Cách fix lỗi The required PHP extension GD could not be found. Please ask your host to install this extension trên Vps:

  • Đối với vps thì các bạn mở teminal lên và chạy lệnh sau

sudo apt-get install php7.0-gd

Trên đây tôi đã hướng dẫn anh em các fix lỗi The required PHP extension GD could not be found. Please ask your host to install this extension  trên xamppvà VPS rồi.

Chúc anh em cồng thanh!

View Discussion

Improve Article

Save Article

  • Read
  • Discuss
  • View Discussion

    Improve Article

    Save Article

    XAMPP is a free, easy-to-install Apache distribution containing MariaDB, PHP, and Perl. It allows you to build WordPress sites offline, on a local web server on your computer. It was first released in 2002. It is owned by Apache Friends and The PHP GD Graphics Library is a graphics software library for dynamically manipulating images. Its native programming language is ANSI C. 

    In this article, we will know how can we install PHP GD in Xampp.

    Installing PHP GD in Xampp:

    Follow the below steps to install PHP GD in Xampp:

    Step 1: Openthe XAMPP Control Panel from the taskbar of your system.

    Step 2: Start Apache & MySQL

    Step 3: Click on Config of Apache

    Step 4: Click on php.ini Which will further open a document file.

    Step 5: Open that file search for extension=fileinfo

    Step 6: Add extension=gd on the next line after extension=fileinfo and then save the file and close it.

    Step 7: Again navigate to your Xampp control panel and restart the apache server.

    That’s it Now PHP GD is successfully installed in your XAMPP.