CentOS 5.5にて
Apache 2.2系最新
PHP 5.3系最新
Subversion 1.6掲載芯
MySQL rpmで5.0系
共通ライブラリ系
- yum install cpp expat-devel gcc sysstat
- yum install libpng-devel libjpeg-devel giflib-devel
- yum install openssl-devel libevent-devel gcc-c++
- yum install autoconf gmp-devel libmcrypt-devel mysql-devel libxml2-devel
- yum install curl-devel libXpm-devel freetype-devel libtool-ltdl-devel
- yum install postfix
- yum install mysql-server
./configure --enable-so --enable-rewrite --enable-cgi --enable-ssl --enable-dav
PHP compile option
./configure \
--with-libdir=lib64 \
--with-pcre-regex \
--with-pear \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-openssl \
--with-layout \
--with-mcrypt \
--with-gd \
--with-mysql \
--enable-zend-multibyte \
--enable-calendar \
--enable-mbstring \
--enable-mbregex \
--enable-bcmath \
--enable-sockets \
--enable-ftp \
--enable-exif \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--with-xpm-dir \
--with-freetype-dir \
--enable-magic-quotes \
--with-iconv \
--with-gmp \
--with-curl \
--enable-soap
pecl install Memcached
pecl install apc
Apr
cd /usr/local/src/httpd-2.2.4/srclib/apr
./configure --prefix=/usr/local/apr --enable-threads
make;make test; make install
cd /usr/local/src/httpd-2.2.4/srclib/apr-util
./configure --prefix=/usr/local/apr --with-apr=/usr/local/apr
make;make test; make install
SQLite
http://www.sqlite.org/download.html
sqlite-autoconf-*をダウンロード
./configure ; make; make install
Subversion
download subversion-deps-1.6.17.tar.gz
download subversion1.6.17.tar.gz
./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/aprmake; make check; make install
Apache config
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
で、とりあえずphpinfo起動
0 件のコメント:
コメントを投稿