wiki:jazz/13-09-02

Version 2 (modified by jazz, 11 years ago) (diff)

--

2013-09-02

lighttpd + PHP + f-motif

  • [目的] 準備 f-motif 展示用 VM
  • [參考] https://wiki.ubuntu.com/Lighttpd%2BPHP
  • [測試環境] http://easycloud.nchc.org.tw 的 Ubuntu 12.04 VM
    ###### 切換成 root
    ~# su -
    ###### 安裝 subversion lighttpd 與 PHP client
    ~# apt-get install subversion lighttpd php5-cgi
    ###### 啟用 lighttpd 的 fastcgi 與 fastcgi-php 模組
    ~# lighty-enable-mod fastcgi 
    ~# lighty-enable-mod fastcgi-php
    ###### 重新啟動 lighttpd 
    ~# service lighttpd force-reload
    ###### 安裝 Sun JDK 6
    add-apt-repository -r 'deb http://free.nchc.org.tw/debian squeeze non-free'
    apt-get update
    cat << EOF | sudo /usr/bin/debconf-set-selections
    sun-java6-bin   shared/accepted-sun-dlj-v1-1    select true
    sun-java6-jdk   shared/accepted-sun-dlj-v1-1    select true
    sun-java6-jre   shared/accepted-sun-dlj-v1-1    select true
    EOF
    apt-get -y --force-yes install sun-java6-jdk sun-java6-plugin
    add-apt-repository -r 'deb http://free.nchc.org.tw/debian squeeze non-free'
    apt-get autoremove --purge openjdk-6-jre
    ###### 安裝 f-motif
    cd /var/www
    svn co https://trac.nchc.org.tw/svn/bioinfo/f-motif/
    cd /var/www/f-motif
    make weblogo; make build; make update