php5.4 mysql5.5

apache
==================
yum install pcre-devel openssl-devel ncurses-devel libtool
==================
apr-1.4.6.tar.bz2 apr-util-1.4.1.tar.bz2
==================
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-ssl --enable-dav --enable-so --enable-maintainer-mode --enable-rewrite --enable-cache --enable-expires --enable-deflate --enable-headers

------------------

php
=============
yum install gd-devel curl-devel libxml2-devel
==============
libmcrypt-2.5.8.tar.bz2

./configure --with-mcrypt
make && make install
=============

icu

wget http://download.icu-project.org/files/icu4c/55.1/icu4c-55_1-src.tgz

tar -zxpf icu4c-55_1-src.tgz

cd icu/source

chmod +x runConfigureICU configure install-sh

./configure

make && make install

=============

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-intl --enable-xml --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curlwrappers --enable-mbregex --enable-mbstring --with-mcrypt --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-apxs2=/usr/local/apache/bin/apxs --with-pdo-mysql=/usr/local/mysql --with-openssl-dir --enable-sockets --enable-mysqlnd --with-curl --with-gd

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql --with-mysqli --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-xml --enable-intl --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curlwrappers --enable-mbregex --enable-mbstring --with-mcrypt --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-apxs2=/usr/local/apache/bin/apxs --with-pdo-mysql --with-openssl-dir --enable-sockets --enable-mysqlnd --with-curl --with-gd

subversion
==========
yum install sqlite-devel

yum install libserf-devel 支持http协议访问,svn1.7以前用neon,1.8后用serf 否则svn co 时报错:

svn: E170000: Unrecognized URL scheme for 'http://127.0.0.1'
==========
./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-openssl --with-zlib --with-serf --enable-maintainer-mode
=============

如果yum安装的sqlite版本不够,用sqlite 原码包

tar -zxpf sqlite-autoconf-3071501.tar.gz

cd ../subversion-VERSION

./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-openssl --with-zlib --with-serf --enable-maintainer-mode --with-sqlite=/data/software/sqlite-autoconf-3071501/sqlite3.c

请注意红色部分为源码目录,而非安装后的目录

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

如果/usr/local/apache/modules目录下没有以上两个so文件,用

cd /usr/local/apache/modules

ln -s /usr/local/subversion/libexec/* .

=============
LoadModule php5_module modules/libphp5.so

allow from all
deny from all
DAV svn
SVNListParentPath on
SVNParentPath /mydisk/server_data/subversion/repository
AuthType Basic
AuthName " Subversion repository "
AuthUserFile /mydisk/server_data/subversion/authz/passwd
AuthzSVNAccessFile /mydisk/server_data/subversion/authz/authz
Require valid-user

iptables
=======
ACCEPT tcp -- 221.226.93.118 0.0.0.0/0 multiport dports 21,30000:50000
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22

oauth
====================
wget http://pecl.php.net/get/oauth
mv oauth oauth-1.2.2.tgz
tar -zxpf oauth-1.2.2.tgz
cd oauth-1.2.2
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
===================
vi php.ini
extension_dir="/usr/local/php/lib/php/extensions/no-debug-zts-20100525"
extension=oauth.so

发表评论

电子邮件地址不会被公开。 必填项已用*标注