Blue sky, wind, cloud and knulf

CentOS에 PHP 5.3.6 소스설치 본문

라이브러리/시스템

CentOS에 PHP 5.3.6 소스설치

눌프 2011. 6. 3. 12:20
#1. Download
http://kr2.php.net/get/php-5.3.6.tar.gz/from/kr.php.net/mirror
http://kr.php.net/get/php-5.2.17.tar.gz/from/this/mirror

#2. 설치
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --enable-sigchild --with-libxml-dir=/usr/local/libxml2
make
make install


# 오류 발생시
httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: 
Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied

restorecon -R -v /usr/local/apache/modules/libphp5.so

파일 설정이 아닌 문맥 오류

chcon -t texrel_shlib_t /usr/local/apache/modules/libphp5.so
Comments