2011年7月4日月曜日

USVNインストールメモ PHP5.3

http://www.usvn.info/

SVNのアカウント管理・リポジトリ管理用のWEB UI
便利です
どうやらphp5.3で動かすとエラーを吐くので
http://forum.usvn.info/viewtopic.php?f=13&t=61125
こちらの手順でfix

あとは
https://trac.usvn.info/wiki/Documentation/Install
こちらに従うだけだが、
DirectoryIndex index.php
を入れないとforbiddenなので、↑に記述されているDirectory内に追記

ここまで設定するとインストールされたディレクトリ or VirtualHostへアクセスして、
Stepに従って設定していくのみとなります。
環境変更時の引越しが簡単なので私はPDO_sqliteを使っています。
また、svnディレクトリの指定時、パーミッション空けてもfilesが作れないとエラーを吐くので、これは手動で作ってあげる。

といったところで、利用可能です。
Version 1からそれなりに綺麗なUIになっていて気持ちいいですね。

LAMP環境構築メモ2011

開発環境用
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
Apache compile option
 ./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/apr
make; make check; make install


Apache config

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps


で、とりあえずphpinfo起動