トップ <前の日記(2007-08-09) 次の日記(2007-09-12)> 最新 編集

あらきだのメモ箱

トータルアクセス:20091, 本日:14, 昨日:50, 月齢:6.2
過去の日記
日記というよりも日々の雑多な備忘録とか雑記帳です

2007-09-11 [長年日記]

_ [Plamo Linux][WWW]Apache 2.0.61

セキュリティフィックスがあるようなので,apache を 2.0.61 へ.

tar zxvf httpd-2.0.61.tar.gz
cd httpd-2.0.61
./configure --prefix=/opt/httpd --enable-mpm=prefork \
--enable-module=so --enable-mods-shared=all \
--enable-proxy --enable-ssl --enable-dav --enable-dav-fs
make
sudo make install
sudo /etc/rc.d/init.d/httpd stop
sudo /etc/rc.d/init.d/httpd start

configure の options は plamo 標準なはず.

_ [Plamo Linux][WWW]PHP 5.2.4

ついでに PHP も 5.2.4 に入れ換え.

tar jxvf php-5.2.4.tar.bz2
cd php-5.2.4
./configure --prefix=/usr --with-config-file-path=/etc \
--with-apxs2=/opt/httpd/bin/apxs --with-pear --enable-zend-multibyte \
--enable-mbstring --enable-mbregex --enable-exif --enable-soap \
--enable-sockets --enable-dbx --with-zlib --enable-sysvmsg \
--enable-sysvsem --enable-sysvshm --enable-shmop --with-readline \
--enable-ftp --with-openssl --with-pdo-pgsql=/opt/pgsql \
--enable-sqlite-utf8 --with-mysql=/usr/local/mysql \
--enable-gd-native-ttf --enable-gd-jis-conv \
--with-freetype-dir=/usr/X11R6 --with-xpm-dir=/usr/X11R6 \
--with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr
make
make test
sudo make install
sudo /etc/rc.d/init.d/httpd stop
sudo /etc/rc.d/init.d/httpd start

基本的に plamo の configure options と同じだが,僕は moodle や nucleus 等の PHP + MySQl な環境を使いたいので,自前でコンパイル. --enable-dbx がないといわれたのと,make test で問題があるようなのだが とりあえずインストールしたところ,いまのところ不具合はないようである.

それからいくつかの extentions をインストール.これらは 展開したアーカイブの ext 配下にある.さしあたって以下の物を インストール.

cd ext/gd
phpize
./configure --enable-gd-native-ttf --enable-gd-jis-conv \
--with-freetype-dir=/usr/X11R6 --with-xpm-dir=/usr/X11R6 \
--with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr
make
sudo make install
cd ../pgsql
phpize
./configure --with-pgsql=/opt/pgsql
make
sudo make install
cd ../bz2
phpize
./configure
make
sudo make install
cd ../calendar
phpize
./configure
make
make install
cd ../ctype
phpize
./configure
make
sudo make install
cd ../curl
phpize
./configure
make
sudo make install
cd ../dba
phpize
./configure --with-gdbm=/usr --with-db4=/usr
make
sudo make install
cd ../dbase
phpize
./configure
make
sudo make install
cd ../gettext
phpize
./configure
make
sudo make install
cd ../mcrypt
phpize
./configure
make
sudo make install
cd ../mhash
phpize
./configure
make
sudo make install
cd ../ncurses
phpize
./configure
make
sudo make install
cd ../xmlreader
phpize 
./configure 
make
sudo make install
cd ../xmlwriter
phpize 
./configure 
make
sudo make install
cd ../xmlrpc
phpize 
./configure 
make
sudo make install
cd ../xsl
phpize 
./configure 
make
sudo make install
cd ../pcntl/
phpize 
./configure 
make
sudo make install
cd ../zip
phpize 
./configure 
make
sudo make install
cd ../mysql
phpize
./configure  --with-mysql=/usr/local/mysql
make
sudo make install

各 *.so のインストール先は /usr/lib/php/extensions/no-debug-non-zts-20060613 になる. 基本的には各 extention dir で phpize: ./configure; make; make install で OK.環境によって適宜 opsion をつける.インストールが終ったら /etc/php.ini で以下のように必要な extentions を有効にする. 僕の場合,とりあえず mysql/pgsql/gd あたりが使えていれば事足りるか.

;extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20050922"
extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20060613"
; Additional modules for Plamo Linux
   extension=gd.so
   extension=dba.so
   extension=pgsql.so
   extension=mcrypt.so
   extension=mhash.so
   ;extension=snmp.so
   ;extension=ldap.so
   extension=zip.so
   extension=mysql.so
   ;extension=namazu.so
   ;extension=apc.so
   extension=xmlreader.so
   extension=xmlwriter.so

編集が終ったら apache を再起動.

Plamo の場合,くわむらさんの Buildscript が大変参考になります.

という分けで,現在は, Apache 2.0.61 + PHP 5.2.4 + MySQL 5.0.26 + Ruby 1.8.6 + Python 2.4.2 でこの cassini.edu.waseda.ac.jp は運用中.

本日のツッコミ(全1件) [ツッコミを入れる]
_ viagra (2010-03-11 13:10)

  http://www.stlouisbusinesslist.com/business/5021837.htm?info=viagra viagra 袢袢

本日のリンク元
  • bing検索 ×3 : 1, 1, 1
その他のリンク元
検索