개발자의 끄적끄적

[php] centos gd library 설치하기 본문

개발/php

[php] centos gd library 설치하기

효벨 2020. 8. 26. 02:00
728x90
반응형

[php] centos gd library 설치하기

 

 

서버 환경은 linux centOS & apache 에 맞춰진 설명입니다.

 

비슷하긴 하지만 서버 환경 체크후 참고하세요~

 

1. php gd library 설치 확인

[root@localhost ~]# php -m | grep gd

 

2. php gd library 설치

[root@zetawiki ~]# yum install php-gd
... (생략)
============================================================================================================
 Package                      Arch                  Version                       Repository           Size
============================================================================================================
Installing:
 libjpeg-turbo                x86_64                1.2.1-1.el6                   base                174 k
     replacing  libjpeg.x86_64 6b-46.el6
 php-gd                       x86_64                5.3.3-22.el6                  base                106 k
Installing for dependencies:
 libXpm                       x86_64                3.5.10-2.el6                  base                51 k

Transaction Summary
============================================================================================================
Install       3 Package(s)

Total download size: 330 k
Is this ok [y/N]: y

... (생략)
Installed:
  libjpeg-turbo.x86_64 0:1.2.1-1.el6                      php-gd.x86_64 0:5.3.3-22.el6                     

Dependency Installed:
  libXpm.x86_64 0:3.5.10-2.el6                                                                              

Replaced:
  libjpeg.x86_64 0:6b-46.el6                                                                                

Complete!

 

3. php gd library 설치 결과 재확인

[root@zetawiki ~]# php -m | grep gd
gd

 

4. apache restart ( was restart )

[root@zetawiki ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

 

php gd library 를 사용하는 경우에는

 

위처럼 설치하시고 개발진행하시면 됩니다!

 

참고들 하세요!

 

 

출처 : https://zetawiki.com/wiki/CentOS_GD%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC_%EC%84%A4%EC%B9%98

 

반응형
Comments