2012/11/21

Create self signed certificate


openssl req -new -x509 -key server.key -out server.cert -newkey rsa:1024

-req: request
-x509: self-signed

2012/11/20

Install python module


python setup.py install --home=$topt

installs the module to $topt/lib/python

or

python setup.py install --prefix=$topt

will install the module to $topt/lib/pythonX.Y/site-packages

2012/11/19

Build apache2.4

  1. get apr
    wget http://ftp.mirror.tw/pub/apache/apr/apr-1.4.6.tar.gz
     
  2. get berkeley db
    wget http://download.oracle.com/berkeley-db/db-5.3.21.tar.gz
    tar xzf db-5.3.21.tar.gz
    cd db-5.3.21/build_unix
    ../dist/configure --prefix=$topt --enable-cxx --enable-stl
    make && make install
  3. get apr-util
    wget http://ftp.mirror.tw/pub/apache//apr/apr-util-1.5.1.tar.gz
  4. build apache
    ./configure --prefix=$topt/apache2 --with-apr=$topt/bin/apr-1-config --with-apr-util=$topt/bin/apu-1-config --enable-mods-shared=all --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http --enable-dav --enable-dav-fs --enable-so --with-mpm=worker --enable-mpms-shared --sysconfdir=$HOME/etc/httpd