yum install libmcrypt \
libmcrypt-devel
#cd /usr/local/src/apm
tar zxvf php-5.3.3.tar.gz
cd php-5.5.5
./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--disable-debug \
--disable-posix \
--disable-rpath \
--disable-dmalloc \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-zlib \
--with-iconv \
--with-xmlrpc \
--with-config-file-path=/usr/local/apache2/conf \
--with-mcrypt \
--with-curl \
--with-mhash \
--with-openssl \
--with-mcrypt \
--with-kerberos \
--with-gmp \
--enable-bcmath \
--enable-mbstring \
--enable-ftp \
--enable-sockets \
--enable-calendar \
--enable-safe-mode \
--enable-magic-quotes \
--enable-gd-native-ttf \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx
# make
# make install
# cp php.ini-production /usr/local/apache/conf/php.ini
# vi /usr/local/apache/conf/httpd.conf
// ServerName 변경
ServerName localhost:80
// DirectoryIndex 에 추가
DirectoryIndex index.html index.htm index.php
// AddType 추가
AddType application/x-httpd-php .php .phtml .php3 .html .htm
AddType application/x-httpd-php-source .phps
// 권한 변경
<Directory />
Optionis FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all 을 Allow from all 으로 변경
</Directory>
# vi /usr/local/apache/conf/mime.types
// 끝에 mime type 추가
application/x-httpd-php php ph inc
application/x-httpd-php-source phps
'Linux' 카테고리의 다른 글
apache에서 mp4 스트리밍하기 (0) | 2014.03.07 |
---|---|
SSL 인증서 비밀번호 제거하는 방법 (0) | 2013.06.07 |
아파치 설치 (0) | 2010.10.28 |
[Mysql] characterset이 euckr인 mysql 서버에서 utf8 Database 생성하기 (0) | 2010.10.28 |
CentOS5에 mysql5 설치 (0) | 2010.10.28 |