ヘルプ:PHPからGDを使う(CentOS7)
提供: すだちWiki
メインページ > ヘルプ:目次 > ヘルプ:自宅サーバー構築(CentOS7) > PHPからGDを使う(CentOS7)
CentOS7 で PHP を使用していたら、GD が入っていないことに気がついた。
確認
- 下記の例はインストール済みです。
[root@host4 ~]# yum info php-gd
インストール済みパッケージ
名前 : php-gd
アーキテクチャー : x86_64
バージョン : 5.4.16
リリース : 36.el7_1
容量 : 342 k
リポジトリー : installed
提供元リポジトリー : updates
要約 : A module for PHP applications for using the gd graphics library
URL : http://www.php.net/
ライセンス : PHP and BSD
説明 : The php-gd package contains a dynamic shared object that will add
: support for using the gd graphics library to PHP.
インストール
[root@host4 ~]# yum -y install php-gd
Apache再起動
[root@host4 ~]# systemctl restart httpd
