GD with FreeType or ImageMagick PHP extensions is required. Error resolution

Source: Internet
Author: User
Tags imagemagick yii

GD with FreeType or ImageMagick PHP extensions is required.

FreeType OR ImageMagick request the GD library PHP extension. The reason I found this problem is that the Yii background verification code needs to introduce the graphics processing function of this library, the path is not correct and the Extension=php_gd2.dll library file is not opened.

Extension_dir = "C:/wamp/php/ext";(Note: This is my local extension library path and needs to be modified to the correct path, i.e.

Extension=php_gd2.dll
Extension=php_pdo.dll
Extension=php_pdo_sqlite.dll
Extension=php_pdo_mysql.dll
Extension=php_sqlite.dll

The path to the folder where the delimiter "/" or "\" is available. )


Let's fix it, A. First find your own php.ini file, my file in C:\wamp\Apache2\bin, remember that this change to correct. Open it, find Extension_dir, and change to the absolute path of the folder where the DLL dynamic link library files are located.

B. Second, search extension to find the above 5 files, one after the other, remove the previous ";" Number. Note: If you do not open Php_pdo.dll, you will receive the following prompt:

Yiibase::include (pdo.php) [<a href= ' function. Yiibase-include ' >function. Yiibase-include</a>]: Failed to open stream:no such file or directory

If the C.php_pdo_sqlite.dll does not open, a hint will appear that the user name does not exist. is used to connect to the database. Therefore, you do not open a hint that the user name does not exist.

d.php_pdo_mysql.dll if it does not open, it appears:

cdbconnection failed to open the DB connection.

Tip the database connection is not open.

e. php_sqlite.dll does not open, there is a case where the user name does not appear with the C open.


The above is in the use of YII framework problems, I hope that the need for a friend to help, I am also in the network to find a lot of answers have not been the case, the integration of our experience to get my solution experience and approach. qq:284053253

GD with FreeType or ImageMagick PHP extensions is required. Error resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.