1. XE 설치 시, php gd 라이브러리가 필요함
2. 아파치 종료
[root@test ~]# /usr/local/apache/bin/apachectl stop
3. yum 으로 gd 라이브러리 설치
[root@test ~]# yum install libjpeg-devel libpng-devel giflib*
[root@test ~]# yum install php-gd php5-gd
4. 에러대비 기존 apache, php 백업
[root@test ~]# cd /usr/local
[root@test ~]# cp apache apache-20160629
[root@test ~]# cp php php-20160629
5. php 재컴파일
[root@test ~]# cd /usr/local/src/php-5.3.25
[root@test ~]# ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --with-regex=php --with-zlib --disable-debug --enable-calendar --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --with-gd
[root@test ~]# make
[root@test ~]# make test
[root@test ~]# make install
6. 기존 php.ini copy
[root@test ~]# cd /usr/local/apache/conf
[root@test ~]# cp /usr/local/apache-20160609/conf/php.ini .
7. 아파치 시작
[root@test ~]# cd /usr/local/apache/bin/apachectl start
8. XE 설치과정에서 gd 라이브러리 확인
9. phpinfo 확인

