Skip to main content

Build Apache HTTP Server on fedora 16

Build Apache HTTP Server on fedora 16

# make fedora 16 VM

#!/usr/bin/env bash

set -x

#export TMP=/root/tmp
export TMP=/home/vagrant/tmp
mkdir -p $TMP

# 0) zlib
cd $TMP
wget http://zlib.net/zlib-1.2.8.tar.gz
tar xvfz zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure
make
sudo make install

# 1) openssh
sudo rm -Rf /usr/lib64/openssl /usr/local/openssl /usr/share/man/man1/openssl.1ssl.gz
sudo rm -Rf /usr/local/ssl/bin/openssl /usr/local/ssl/include/openssl /usr/local/include/openssl
sudo rm -Rf /usr/share/bash-completion/openssl /usr/lib/ruby/1.8/openssl
sudo rm -Rf /usr/bin/openssl /usr/include/openssl

cd $TMP
wget https://openssl.org/source/openssl-1.0.2g.tar.gz
tar xvfz openssl-1.0.2g.tar.gz
cd openssl-1.0.2g
./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib shared zlib-dynamic
make
sudo make install
export PATH=$PATH:/usr/bin/openssl:/usr/include/openssl

# 2) apr
cd $TMP
# http://www.linuxfromscratch.org/blfs/view/svn/general/apr.html
wget http://archive.apache.org/dist/apr/apr-1.5.2.tar.bz2
bzip2 -dk apr-1.5.2.tar.bz2
tar xvf apr-1.5.2.tar.bz2
cd apr-1.5.2
#vi configure # error fixed: $RM "$cfgfile" -> $RM -f "$cfgfile"
sed -ie 's/$RM "$cfgfile"/$RM -f "$cfgfile"/g' $TMP/apr-1.5.2/configure
./configure --prefix=/usr --disable-static --with-installbuilddir=/usr/share/apr-1/build
make
sudo make install

# 3) apr-util
cd $TMP
# http://www.linuxfromscratch.org/blfs/view/svn/general/apr-util.html
wget http://apache.osuosl.org/apr/apr-util-1.5.4.tar.gz
tar xvfz apr-util-1.5.4.tar.gz
cd apr-util-1.5.4
./configure --prefix=/usr --with-apr=/usr --with-gdbm=/usr --with-openssl=/usr --with-crypto
make
sudo make install

# 4) pcre
cd $TMP
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz
tar xvfz pcre-8.38.tar.gz
cd pcre-8.38
./configure --prefix=/usr                     \
            --docdir=/usr/share/doc/pcre-8.38 \
            --enable-unicode-properties       \
            --enable-pcre16                   \
            --enable-pcre32                   \
            --disable-static --disable-cpp
make
sudo make install

# 5) build httpd
cd $TMP
wget https://archive.apache.org/dist/httpd/httpd-2.4.18.tar.bz2
bzip2 -dk httpd-2.4.18.tar.bz2
tar xvf httpd-2.4.18.tar
cd httpd-2.4.18
./configure --prefix=/usr/local/httpd --with-apr=/usr --with-apr-util=/usr --with-pcre=/usr

make
sudo make install
ls -al /usr/local/httpd/bin


exit 0

Comments

Post a Comment

Popular posts from this blog

Amazon RDS Blue/Green Deployments

In order to avoid some errors I experienced when proceeding as described in the official documentation, I describe what I did in order. 1) Modify parameters of source_database * error: Blue Green Deployments requires cluster parameter group has binlog enabled. RDS Parameter groups: source-params-group binlog_format => MIXED mysql> show global variables like 'binlog_format'; 2) Insert a row after rebooting the source database, to avoid this error. * error: Correct the replication errors and then switch over. Read Replica Replication Error - IOError: 1236, reason: Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file' => To Fix: You need to change the data in the source database. INSERT INTO dummy_table ( `favorite_id` , `favorite_order` , `user_id` , `board_id` ) VALUES ('100001', '1', '11111', '11111'); 3) Modify the param...

Fluentd for mysql in AWS

(0) preparation ulimit -n If your console shows 1024, it is insufficient. Please add following lines to your /etc/security/limits.conf file and reboot your machine. root soft nofile 65536 root hard nofile 65536 (1) install Fluentd // “Ubuntu 12.04 LTS / Precise” curl -L http://toolbelt.treasuredata.com/sh/install-ubuntu-precise.sh | sh /etc/init.d/td-agent start/stop/restart/status // test curl -X POST -d 'json={"json":"message"}' http://localhost:8888/debug.test /etc/init.d/td-agent stop chown: changing ownership of `/var/run/td-agent/td-agent.pid': Operation not permitted chown: changing ownership of `/var/run/td-agent': Operation not permitted  * Stopping td-agent td-agent                                                                                   ...

Install CoreOs on linode without VM

Install CoreOs on linode without VM 1. Add a Linode 2. Create a new Disk   CoreOS 3. Rescue > Reboot into Rescue Mode 4. Remote Access   Launch Lish Console 5. make an install script cat <<'EOF1' > install.sh # add needed package sudo apt-get update sudo apt-get install -y curl wget whois sudo apt-get install -y ca-certificates #sudo apt-get install gawk -y # get discovery url discoveryUrl=`curl https://discovery.etcd.io/new` # write cloud-config.yml cat <<EOF2 > cloud-config.yml #cloud-config users:   - name: core     groups:       - sudo       - docker coreos:   etcd:     name: node01     discovery: $discoveryUrl hostname: node01 EOF2 # get the coreos installation script #wget https://raw.github.com/coreos/init/master/bin/coreos-install wget https://raw.githubusercontent.com/coreos/init/master/bin/coreos-install # run installation chmod 75...