0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PHP Fatal error: Uncaught Error: Call to undefined function ImageCreateFromJPEG()の対処法

Posted at

AWSで運用中のサービスでPImageCreateFromJPEG()関数使った時に出たエラー。
エラー内容は以下

PHP Fatal error:  Uncaught Error: Call to undefined function ImageCreateFromJPEG()

サーバー内にphp-gdが入っていなかっただけなので、インストールをする。

php-gdをインストール

$ sudo -i

$ yum install php-gd -y

$service httpd restart

yum install時にバージョンを指定しないとphpの最新バージョンがインストールされてしまうので、
yum install phpバージョン-gdとすればphpのバージョンにあったgdがインストールされます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?